diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-08-26 15:59:19 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-08-26 15:59:19 +1000 |
commit | 738f57c16a2bb527c705641f0fc1c68ff8cba72a (patch) | |
tree | a8ba74d5779529b968b03de6e29be595c0ac498b /fs | |
parent | ed150e1a5cf20c04cf0b2d2c34e498fc1d6519be (diff) | |
download | op-kernel-dev-738f57c16a2bb527c705641f0fc1c68ff8cba72a.zip op-kernel-dev-738f57c16a2bb527c705641f0fc1c68ff8cba72a.tar.gz |
xfs: disallow mounting of realtime + rmap filesystems
Since the kernel doesn't currently support the realtime rmapbt,
don't allow such filesystems to be mounted. Support will appear
in a future release.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_super.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 24ef83e..fd6be45 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1574,9 +1574,16 @@ xfs_fs_fill_super( } } - if (xfs_sb_version_hasrmapbt(&mp->m_sb)) + if (xfs_sb_version_hasrmapbt(&mp->m_sb)) { + if (mp->m_sb.sb_rblocks) { + xfs_alert(mp, + "EXPERIMENTAL reverse mapping btree not compatible with realtime device!"); + error = -EINVAL; + goto out_filestream_unmount; + } xfs_alert(mp, "EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!"); + } error = xfs_mountfs(mp); if (error) |