9fans archive / 2001 / 03 / 292 /    prev next

From: Boyd Roberts <boyd@pla...>
Subject: Re: [9fans] 9fs/9auth for FreeBSD
Date: Thu, 29 Mar 2001 08:27:10 GMT

Lyndon Nerenberg <lyndon@ort...> a crit dans le message :
200103281926.f2SJQnl94482@ort......
> >>>>> "Russ" == Russ Cox <rsc@pla...> 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@ins...

What do you know about surfing, Major?  You're from goddamn New Jersey.

    -- Lt. Colonel Kilgore