]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs: warn about V4 deprecation when creating new V4 filesystems
authorDarrick J. Wong <djwong@kernel.org>
Fri, 12 Nov 2021 20:27:59 +0000 (15:27 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 12 Nov 2021 20:27:59 +0000 (15:27 -0500)
The V4 filesystem format is deprecated in the upstream Linux kernel.  In
September 2025 it will be turned off by default in the kernel and five
years after that, support will be removed entirely.  Warn people
formatting new filesystems with the old format, particularly since V4 is
not the default.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/xfs_mkfs.c

index 5390467741a946e71aa8113d397228295502745d..b8c11ce9c0071f88fd2e0513161d0beb1b048197 100644 (file)
@@ -2103,6 +2103,15 @@ _("Directory ftype field always enabled on CRC enabled filesystems\n"));
                }
 
        } else {        /* !crcs_enabled */
+               /*
+                * The V4 filesystem format is deprecated in the upstream Linux
+                * kernel.  In September 2025 it will be turned off by default
+                * in the kernel and in September 2030 support will be removed
+                * entirely.
+                */
+               fprintf(stdout,
+_("V4 filesystems are deprecated and will not be supported by future versions.\n"));
+
                /*
                 * The kernel doesn't support crc=0,finobt=1 filesystems.
                 * If crcs are not enabled and the user has not explicitly