From: Alexander Viro <viro@math.psu.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 9fs/9auth for FreeBSD
Date: Mon, 2 Apr 2001 06:23:01 -0400 [thread overview]
Message-ID: <Pine.GSO.4.21.0104020604580.12034-100000@weyl.math.psu.edu> (raw)
In-Reply-To: <3AC4D947.54205AD6@arl.army.mil>
On Mon, 2 Apr 2001, Douglas A. Gwyn wrote:
> Alexander Viro wrote:
> > ... I'm not sure that it's the right thing to do, though.
>
> UNIX has always had files that have an innate append-only
> characteristic,
> although it didn't let you specify that a different kind of file should
> be treated as having that characteristic. The UNIX behavior was that
> write to such a file succeeded, appending to the end of course, and
> seek attempts (to other than the end) would fail. If some "modern"
Erm. There is a little problem with lseek() returning errors -
reading these files is perfectly sane thing. Pipes et.al. have
innate append-only characteristic, indeed, but append-only regular
files are different - think of that as enforcement (silent or
not - that's where the differences are) of O_APPEND.
> UNIX-like system wants to support user designation of files as having
<shrug> "modern" is a relative term - whether you want to consider
4.4BSD as such or not is a matter of taste, but behaviour in question goes
back at least to '93 (I don't have CVS logs at hand; most likely
the thing was added not just before the release, so s/93/early 90s/)
> an append-only characteristic, then files that have that characteristic
> innately ought to report that the corresponding flag is always set, and
> serve as the model for how I/O is performed.
IIRC, rationale for append-only _inode_ flag (not O_APPEND) was handling
of the logs and similar animals. That's definitely the most frequent
use of that thing. The only real question being: what's better -
complaining about echo foo > append_only_file or silently assuming that
>> was implied.
next prev parent reply other threads:[~2001-04-02 10:23 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-28 21:50 Russ Cox
2001-03-28 21:58 ` Lyndon Nerenberg
2001-03-28 22:23 ` Alexander Viro
2001-03-28 22:28 ` Alexander Viro
2001-03-28 22:56 ` Lyndon Nerenberg
2001-03-28 23:30 ` Lyndon Nerenberg
2001-03-28 23:35 ` Alexander Viro
2001-03-28 23:44 ` Lyndon Nerenberg
2001-03-29 0:20 ` Alexander Viro
2001-04-02 8:48 ` Douglas A. Gwyn
2001-04-02 10:04 ` Alexander Viro
2001-04-02 12:58 ` Boyd Roberts
2001-03-28 22:22 ` Alexander Viro
2001-04-02 8:49 ` Douglas A. Gwyn
2001-04-02 10:23 ` Alexander Viro [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-02 9:28 Russ Cox
2001-03-28 3:46 Russ Cox
2001-03-28 19:26 ` Lyndon Nerenberg
2001-03-28 19:35 ` Alexander Viro
2001-03-28 19:48 ` Lyndon Nerenberg
2001-03-29 8:27 ` Boyd Roberts
2001-03-27 23:53 Lyndon Nerenberg
2001-03-28 0:32 ` Christopher Nielsen
2001-03-28 19:32 ` Lyndon Nerenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.GSO.4.21.0104020604580.12034-100000@weyl.math.psu.edu \
--to=viro@math.psu.edu \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).