From: Christoph Hellwig Date: Tue, 8 Apr 2025 07:25:44 +0000 (+0200) Subject: xfs_mkfs: reflink conflicts with zoned file systems for now X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9f4dfb236f2730d0ac402f562f0b03e55747ba1f;p=users%2Fhch%2Fxfsprogs.git xfs_mkfs: reflink conflicts with zoned file systems for now Don't allow reflink on zoned file system until garbage collections learns how to deal with shared extents and doesn't blindly unshare them. Signed-off-by: Christoph Hellwig Reviewed-by: "Darrick J. Wong" --- diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index e6adb3455..9d84dc9cb 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -2966,6 +2966,14 @@ _("rt extent size not supported on realtime devices with zoned mode\n")); } cli->rtextsize = 0; } + if (cli->sb_feat.reflink) { + if (cli_opt_set(&mopts, M_REFLINK)) { + fprintf(stderr, +_("reflink not supported on realtime devices with zoned mode specified\n")); + usage(); + } + cli->sb_feat.reflink = false; + } /* * Set the rtinherit by default for zoned file systems as they