Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c14632dd authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: don't allow reflink + realtime filesystems



We don't support realtime filesystems with reflink either, so fail
those mounts.

Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarBill O'Donnell <billodo@redhat.com>
parent b6e03c10
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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,