[PATCH] xfs: don't hand out pNFS layouts for reflink inodes

Darrick J. Wong darrick.wong at oracle.com
Wed Mar 30 12:40:26 CDT 2016


On Wed, Mar 30, 2016 at 07:26:34PM +0200, Christoph Hellwig wrote:
> On Tue, Mar 29, 2016 at 05:08:42PM -0700, Darrick J. Wong wrote:
> > > Btw, we'll need something similar to prevent swapfiles which just use
> > > ->bmap, but unfortunately swap just checks for the existences of method,
> > > so I'll probably have to do some VFS changes to properly support that.
> > 
> > Yes, please.  ocfs2 will gladly let you call swapon on a reflinked file,
> > and totally fails to CoW it properly. :)
> 
> Ouch.  Time to add a test for that to xfstests..

Swap/reflink tests will appear as generic/92[34] the next time I post xfstests
patches.

--D



More information about the xfs mailing list