On Wed, Jul 06, 2005 at 12:27:20PM +0100, Russell Howe wrote:
>
> I think you can also mount with -o sync to make all writes synchronous
> (although obviously, performance suffers), and you can also (thanks to
> the hard work of a contributor whose name escapes me) use chattr to set
that was me.
> the 'sync' attribute on files and directories to specify that I/O to
> those files is always synchronous (ignore the man page for chattr that
> says it only works on ext[23]. XFS now supports the ioctls too).
note that +S on directories does not make everything in that directory
synchronous automatically, you need to apply it recursively. what +S on
the directory will do is ensure any new files created under that
directory inherit the +S flag, and thus get written synchronously.
I believe this is the same behavior as ext2, newer versions of ext2
also had a different sync flag specifically for directories to ensure
directory updates are synchronous, this one is not yet supported by XFS
(at least that I am aware). I think this flag is 2.6 only as well.
--
Ethan Benson
http://www.alaska.net/~erbenson/
pgpUA2w7ifG1M.pgp
Description: PGP signature
|