What kinds of things would you want in the GNU OS?
John F. Haugh II
jfh at rpp386.Dallas.TX.US
Thu Jun 1 12:28:13 AEST 1989
In article <4357 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
>I've been thinking about this statement, but it still does not make any sense.
>If you do a read or write that does not span block boundaries it should be
>atomic. So a binary read or write that's a power of two bytes in length should
>have no problem. Certainly I don't think I've ever seen a problem with utmp.
>
>Or with directories, for that matter... which after all are just files with
>16-byte records in them (except for on BSD, and I think they still don't
>cross block boundaries).
One very important difference. namei() returns a pointer to a LOCKED
inode. The modification to the directory is very atomic, whereas the
modification to a regular file is not. The file is not locked automagically
as is the case with directories.
--
John F. Haugh II +-Button of the Week Club:-------------
VoiceNet: (512) 832-8832 Data: -8835 | "AIX is a three letter word,
InterNet: jfh at rpp386.Cactus.Org | and it's BLUE."
UucpNet : <backbone>!bigtex!rpp386!jfh +--------------------------------------
More information about the Comp.unix.wizards
mailing list