summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
authorDarrick J. Wong2018-02-01 01:38:18 +0100
committerDarrick J. Wong2018-02-02 06:06:16 +0100
commitc14632ddac98dca7ab1740461fae330d09909560 (patch)
tree11046a798b3aac1672b8f82c0a1ea7d47a4e7b94 /fs/xfs/xfs_super.c
parentxfs: don't allow DAX on reflink filesystems (diff)
downloadkernel-qcow2-linux-c14632ddac98dca7ab1740461fae330d09909560.tar.gz
kernel-qcow2-linux-c14632ddac98dca7ab1740461fae330d09909560.tar.xz
kernel-qcow2-linux-c14632ddac98dca7ab1740461fae330d09909560.zip
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 <darrick.wong@oracle.com> Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r--fs/xfs/xfs_super.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 0505605e25c1..96388fb9adff 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,