xfs
[Top] [All Lists]

Re: XFS corruption during power-blackout

To: linux-xfs@xxxxxxxxxxx
Subject: Re: XFS corruption during power-blackout
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Wed, 6 Jul 2005 18:56:07 -0800
In-reply-to: <20050706112719.GA18969@xxxxxxxxxx>
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <20050705181057.GA16422@xxxxxxxxxxxxxxxxxx> <200507060424.HAA27591@xxxxxxxxxxxxx> <20050706112719.GA18969@xxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
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/

Attachment: pgpUA2w7ifG1M.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>