O_SYNC and filesystem updating
guy at gorodish.UUCP
guy at gorodish.UUCP
Tue Feb 10 05:53:48 AEST 1987
>By "file status" are we to assume that the write syscall also waits for
>the superblock to be updated due to inode information changing?
No, why? The only thing in the superblock that would change would be
the free lists of various flavors, and whenever you do an "fsck" they
get rebuilt, so there's no point in guaranteeing their correctness
(they're not state information, they're just hints to the file system
code).
>Also, does it wait for the update of the directory where the file resides
>(e.g. in the event of file creation)?
No. The only thing it does is guarantee 1) that all writes to the
data blocks of the file are done synchronously, 2) all writes of
indirect blocks of the file are done synchronously, and 3) the inode
is updated synchronously after every write.
More information about the Comp.unix.questions
mailing list