xfs
[Top] [All Lists]

Re: TAKE - make "osyncisdsync" the default

To: Stephen Lord <lord@xxxxxxx>
Subject: Re: TAKE - make "osyncisdsync" the default
From: Andrew Morton <akpm@xxxxxxxxxx>
Date: Fri, 15 Feb 2002 15:44:23 -0800
Cc: Eric Sandeen <sandeen@xxxxxxx>, "linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
References: <200202152250.g1FMokw05049@stout.americas.sgi.com> <3C6D9686.5444468A@zip.com.au> <3C6D9B4A.2000601@sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
Stephen Lord wrote:
> 
> Andrew Morton wrote:
> 
> >Eric Sandeen wrote:
> >
> >>"osyncisdsync" makes us go faster, and it's how other Linux
> >>filesystems are set up, anyway - so make it the default.
> >>
> >
> >The comment lies :)
> >
> >        /* For now, when the user asks for O_SYNC, we'll actually
> >         * provide O_DSYNC. */
> >        if (status >= 0) {
> >                if ((file->f_flags & O_SYNC) || IS_SYNC(inode))
> >                        status = generic_osync_inode(inode, 
> > OSYNC_METADATA|OSYNC_DATA);
> >        }
> >
> >On other filesystems, O_SYNC writes actually sync both metadata
> >and data, as well as the inode, if i_size changed.
> >
> >For default behaviour I suggest the best semantics are for
> >an O_SYNC write to guarantee that the written data will be
> >available after a crash.
> >
> 
> Ah, but we do not go there:
> 

Now I'm lost.  Eric's commit message seems to indicate that
other filesystems do not sync metadata with O_SYNC, which
isn't the case.

What is the proposed XFS behaviour with O_SYNC??

Thanks.


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