Re: weird ext2 sync behaviour

Stephen C. Tweedie (sct@redhat.com)
Tue, 6 Jul 1999 12:32:15 +0100 (BST)


Hi,

On Mon, 5 Jul 1999 17:25:45 +0000 (GMT), "imel..."
<imel96@puspa.cs.ui.ac.id> said:

> so every new file has 'S' bit set, which is not what i
> want. i think i understand why the behaviour is but it's
> not right from "want to have metadata straight" pov.

The +S bit only applies to directory updates. If a directory has the +S
bit set then name updates in that directory are all synchronous. The
flag is inherited by subdirs. The fact that regular files inherit it
too doesn't matter: you still need to open(O_SYNC) explicitly to get
synchronous metadata updates for regular files.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/