]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_mkfs: reflink conflicts with zoned file systems for now
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Apr 2025 07:25:44 +0000 (09:25 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2025 05:36:00 +0000 (07:36 +0200)
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 <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
mkfs/xfs_mkfs.c

index e6adb345551e167517dad9f5107f5ff86005cbc8..9d84dc9cb4261ee5e562dd2a5e2e9deefada5092 100644 (file)
@@ -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