From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Boyd Roberts Message-ID: <99udqs$189a$1@news6.isdnet.net> References: <20010328034613.20C2F199ED@mail.cse.psu.edu>, <200103281926.f2SJQnl94482@orthanc.ab.ca> Subject: Re: [9fans] 9fs/9auth for FreeBSD Date: Thu, 29 Mar 2001 08:27:10 +0000 Topicbox-Message-UUID: 76848d32-eac9-11e9-9e20-41e7f4b1d025 Lyndon Nerenberg a crit dans le message : 200103281926.f2SJQnl94482@orthanc.ab.ca... > >>>>> "Russ" == Russ Cox writes: > > Russ> the biggest shortcoming > Russ> is the lack of a portable way to implement append-only > Russ> files. freebsd (and presumably the other unix clones) take > Russ> append-only to mean "only appends succeed" rather than "all > Russ> writes are treated as appends", and there's no standard way > Russ> to enable even this. > > On 4.4BSD-derived systems you should be able to get the behaviour you > want with chflags(path, UF_APPEND) after creating the file Nope, you just don't get it. An auto-apend file means that it works in general. Great for security logs when the file lies on some sort of write once media: echo foo > f Or should we build O_APPEND into _every tool_? cat -v city -- Boyd Roberts http://www.insultant.net boyd@insultant.net What do you know about surfing, Major? You're from goddamn New Jersey. -- Lt. Colonel Kilgore