From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4bdece4cd73b46e7fe957da67fa215c6@plan9.bell-labs.com> To: 9fans@9fans.net Date: Thu, 18 Dec 2008 23:13:08 -0500 From: geoff@plan9.bell-labs.com In-Reply-To: <41C79A6A-3A01-4AD3-A73C-BFDA28439FE5@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] 9pfuse and O_APPEND Topicbox-Message-UUID: 6a32514e-ead4-11e9-9d60-3106f5b1d025 The places that DMAPPEND is used most commonly are log files and mail boxes. In both cases, I don't want the decision of whether to truncate or append left to the whims of some program. I want writes to append, by god, and DMAPPEND on actual disk-based file servers such as fossil and fs does that. (Yes, a malicious program could perhaps clear DMAPPEND and truncate, but the more likely cause of disaster in a system without DMAPPEND is someone forgetting to set a hypothetical `append mode' on a fid or equivalent. You only have to slip up once to ruin someone's day.)