]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
mkfs: reflink conflicts with zoned file systems for now xfs-zoned-2024-09-16
authorChristoph Hellwig <hch@lst.de>
Fri, 16 Aug 2024 18:23:12 +0000 (20:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 26 Aug 2024 07:27:51 +0000 (09:27 +0200)
Until GC is enhanced to not unshared reflinked blocks we better prohibit
this combination.

Signed-off-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_mkfs.c

index d6b356921170bc6a6591e41290280283bbc739b5..30d4c855eb816825581caf386cf3c3734cee4437 100644 (file)
@@ -2820,6 +2820,14 @@ _("rt extent size not supported on realtime devices with zoned mode specified\n"
                        }
                        cli->rtextsize = 0;
                }
+               if (cli->sb_feat.zoned && 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;
+               }
                if (cli->rtextsize && cli->sb_feat.reflink) {
                        if (cli_opt_set(&mopts, M_REFLINK)) {
                                fprintf(stderr,