From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 18 Dec 2008 19:06:30 -0800 From: Roman Shaposhnik In-reply-to: <13426df10812181603l56910094m7165f27179047a3a@mail.gmail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-id: <8FC3CE71-0E96-4A7E-82E3-0A32722F0EFD@sun.com> MIME-version: 1.0 Content-type: text/plain; delsp=yes; format=flowed; charset=US-ASCII Content-transfer-encoding: 7BIT References: <59EE20C6-0043-4517-ADDA-4BC5C4D24D74@sun.com> <13426df10812181603l56910094m7165f27179047a3a@mail.gmail.com> Subject: Re: [9fans] 9pfuse and O_APPEND Topicbox-Message-UUID: 6a1ea2fc-ead4-11e9-9d60-3106f5b1d025 On Dec 18, 2008, at 4:03 PM, ron minnich wrote: > On Thu, Dec 18, 2008 at 3:57 PM, Russ Cox wrote: >> I would just seek to the end. >> That's fine unless you have multiple >> programs writing O_APPEND simultaneously, >> in which case you are asking for trouble. >> > > yep. The code in nfs clients to support O_APPEND is a wonder to > behold. A nicer combination of rubber bands and paper clips you never > did see. Its fun, yes. But I believe this is more of a testament to the statelessness of the NFS plus the fact that the "end of file" is not a well defined offset (unlike beginning of the file). Thanks, Roman.