Coda File System

Re: which one is correct?

From: Greg Troxel <>
Date: Sat, 02 Aug 2014 09:02:16 -0400 writes:

> On Fri, Aug 01, 2014 at 02:27:28PM -0400, Jan Harkes wrote:
>> >                 ph = m->GetPrimaryHost(&ph_ix);
>> >             ph = ntohl(m->GetPrimaryHost(&ph_ix)->s_addr);
>> Yes both are correct, different uses. The non-converted one is only used
>> client-side, the one that is converted is shipped off to the server and
>> was used at some point in Coda's past to reduce the number of callbacks
>> that were kept. Only the 'primary host' replica used to track client
>> callbacks, now all replicas do.
> Thanks a lot Jan! This helps.

But perhaps doxygen-style (semantically) function header docs explaining
calling conventions would be good, too.

Received on 2014-08-02 09:02:30