[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XFS mount option



After just a quick glance, it looks like we do handle the sync option.

in xfs_write, we do:

        /* Handle various SYNC-type writes */
        if ((file->f_flags & O_SYNC) || IS_SYNC(file->f_dentry->d_inode)) {

... etc ...

and the IS_SYNC looks for the MS_SYNCHRONOUS flag on the mount, which is
set when you mount with sync.

So there's the 10,000-foot handwaving answer.  :)  You might do some
testing to see if this all really works.

-Eric


On Mon, 2003-01-13 at 11:50, Matt Schillinger wrote:
> I have heard that xfs mounts will always ignore the mount option 'sync',
> and mount asynchronously.. Is this true? Is there any danger in this?
> 
> Matt Schillinger
> mschilli@vss.fsi.com
> 
-- 
Eric Sandeen      XFS for Linux     http://oss.sgi.com/projects/xfs
sandeen@sgi.com   SGI, Inc.         651-683-3102