Trond Myklebust wrote:
> On Tue, 2008-01-08 at 11:50 +0100, Michael Kerrisk wrote:
>> Hi Trond,
>>
>> I suspect you and Timo are coming at this from different angles, and I
>> think Timo's angle is closer to what I was thinking of when I asked my
>> question.  What I'm wondering about is this: two naive programs that use
>> O_APPEND, unaware that the file they are writing to is on NFS.  Will
>> O_APPEND work in the expected way.  It sounds to me as though the answer is
>> (still, even with NFSv4) no, right?
> 
> If the two programs are running on the same client, then the answer is
> (and always has been), that O_APPEND will work correctly.
> 
> If the two programs are not both running on the same client, then as far
> as NFS is concerned, the question is nonsensical: there is no support
> for two clients writing to the same file at the same time. Applications
> that wish to do so have to use an appropriate file locking scheme.

Ahh -- okay.  Here we see that my NFS knowledge is thin indeed ;-)

Thanks for the info Trond!

Cheers,

Michael

-- 
Michael Kerrisk
Maintainer of the Linux man-pages project
http://www.kernel.org/doc/man-pages/
Want to report a man-pages bug?  Look here:
http://www.kernel.org/doc/man-pages/reporting_bugs.html




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to