Skip to content

Commit c14632d

Browse files
committed
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>
1 parent b6e03c1 commit c14632d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎fs/xfs/xfs_super.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,6 +1684,13 @@ xfs_fs_fill_super(
16841684
}
16851685
}
16861686

1687+
if (xfs_sb_version_hasreflink(&mp->m_sb) && mp->m_sb.sb_rblocks) {
1688+
xfs_alert(mp,
1689+
"reflink not compatible with realtime device!");
1690+
error = -EINVAL;
1691+
goto out_filestream_unmount;
1692+
}
1693+
16871694
if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
16881695
if (mp->m_sb.sb_rblocks) {
16891696
xfs_alert(mp,

0 commit comments

Comments
 (0)