linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bill O'Donnell <billodo@redhat.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>,
	xfs <linux-xfs@vger.kernel.org>,
	Dave Chinner <david@fromorbit.com>,
	Eric Sandeen <sandeen@redhat.com>
Subject: Re: [PATCH] xfs: don't allow DAX on reflink filesystems
Date: Wed, 31 Jan 2018 17:17:01 -0600	[thread overview]
Message-ID: <20180131231701.GB5804@redhat.com> (raw)
In-Reply-To: <20180131231125.GA5804@redhat.com>

On Wed, Jan 31, 2018 at 05:11:25PM -0600, Bill O'Donnell wrote:
> On Wed, Jan 31, 2018 at 02:23:24PM -0800, Darrick J. Wong wrote:
> > From: Darrick J. Wong <darrick.wong@oracle.com>
> > 
> > Now that reflink is no longer experimental, reject attempts to mount
> > with DAX until that whole mess gets sorted out.
> > 
> > Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
> 
> nit: Check alignment of the warning message (probably ok?)...

nevermind. Alignment wasn't in your change. :)

Reviewed-by: Bill O'Donnell <billodo@redhat.com>

> 
> Reviewed-by: Bill O'Donnell <billodo@redhat.com>
> 
> > ---
> >  fs/xfs/xfs_super.c |    5 ++++-
> >  1 file changed, 4 insertions(+), 1 deletion(-)
> > 
> > diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
> > index f436eec..fd34cf2 100644
> > --- a/fs/xfs/xfs_super.c
> > +++ b/fs/xfs/xfs_super.c
> > @@ -1666,9 +1666,12 @@ xfs_fs_fill_super(
> >  			"DAX unsupported by block device. Turning off DAX.");
> >  			mp->m_flags &= ~XFS_MOUNT_DAX;
> >  		}
> > -		if (xfs_sb_version_hasreflink(&mp->m_sb))
> > +		if (xfs_sb_version_hasreflink(&mp->m_sb)) {
> >  			xfs_alert(mp,
> >  		"DAX and reflink cannot be used together!");
> > +			error = -EINVAL;
> > +			goto out_filestream_unmount;
> > +		}
> >  	}
> >  
> >  	if (mp->m_flags & XFS_MOUNT_DISCARD) {
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2018-01-31 23:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-31 22:23 [PATCH] xfs: don't allow DAX on reflink filesystems Darrick J. Wong
2018-01-31 23:11 ` Bill O'Donnell
2018-01-31 23:17   ` Bill O'Donnell [this message]
2018-01-31 23:52 ` Dave Chinner
2018-02-02  9:51 ` Christoph Hellwig
2018-02-02 17:47   ` Darrick J. Wong
2018-02-02 18:08     ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180131231701.GB5804@redhat.com \
    --to=billodo@redhat.com \
    --cc=darrick.wong@oracle.com \
    --cc=david@fromorbit.com \
    --cc=linux-xfs@vger.kernel.org \
    --cc=sandeen@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).