From: Darrick J. Wong Date: Thu, 1 Feb 2018 00:38:18 +0000 (-0800) Subject: xfs: don't allow reflink + realtime filesystems X-Git-Tag: v4.19~1640^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c14632ddac98dca7ab1740461fae330d09909560;p=platform%2Fkernel%2Flinux-rpi3.git xfs: don't allow reflink + realtime filesystems We don't support realtime filesystems with reflink either, so fail those mounts. Signed-off-by: Darrick J. Wong Reviewed-by: Bill O'Donnell --- diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 0505605..96388fb 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1684,6 +1684,13 @@ xfs_fs_fill_super( } } + if (xfs_sb_version_hasreflink(&mp->m_sb) && mp->m_sb.sb_rblocks) { + xfs_alert(mp, + "reflink not compatible with realtime device!"); + error = -EINVAL; + goto out_filestream_unmount; + } + if (xfs_sb_version_hasrmapbt(&mp->m_sb)) { if (mp->m_sb.sb_rblocks) { xfs_alert(mp,