Skip to content

Commit af4f883

Browse files
author
Christoph Hellwig
committed
xfs: disable reflink for zoned file systems
While the zoned on-disk format supports reflinks, the GC code currently always unshares reflinks when moving blocks to new zones, thus making the feature unusuable. Disable reflinks until the GC code is refcount aware. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
1 parent e50ec7f commit af4f883

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
@@ -1829,6 +1829,13 @@ xfs_fs_fill_super(
18291829
goto out_filestream_unmount;
18301830
}
18311831

1832+
if (xfs_has_zoned(mp)) {
1833+
xfs_alert(mp,
1834+
"reflink not compatible with zoned RT device!");
1835+
error = -EINVAL;
1836+
goto out_filestream_unmount;
1837+
}
1838+
18321839
if (xfs_globals.always_cow) {
18331840
xfs_info(mp, "using DEBUG-only always_cow mode.");
18341841
mp->m_always_cow = true;

0 commit comments

Comments
 (0)