]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs: add configuration files for the last few LTS kernels
authorDarrick J. Wong <djwong@kernel.org>
Fri, 25 Feb 2022 22:42:16 +0000 (17:42 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 25 Feb 2022 22:42:16 +0000 (17:42 -0500)
Add some sample mkfs configuration files that capture the mkfs feature
defaults at the time of the release of the last four upstream LTS
kernels.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/builddefs.in
mkfs/Makefile
mkfs/lts_4.19.conf [new file with mode: 0644]
mkfs/lts_5.10.conf [new file with mode: 0644]
mkfs/lts_5.15.conf [new file with mode: 0644]
mkfs/lts_5.4.conf [new file with mode: 0644]
mkfs/xfs_mkfs.c

index 9d0b080053bf0d6870acf26a6c656ec60cacf4e8..0bb364310d783e1303cd12fa8662743b1368c870 100644 (file)
@@ -56,6 +56,8 @@ DK_INC_DIR    = @includedir@/disk
 PKG_MAN_DIR    = @mandir@
 PKG_DOC_DIR    = @datadir@/doc/@pkg_name@
 PKG_LOCALE_DIR = @datadir@/locale
+PKG_DATA_DIR   = @datadir@/@pkg_name@
+MKFS_CFG_DIR   = @datadir@/@pkg_name@/mkfs
 
 CC             = @cc@
 BUILD_CC       = @BUILD_CC@
index 9f6a4fadb1267f3458fd5e65059b38230a43a62f..0aaf9d069f8df7eec63c491f17975d7e45b78e9d 100644 (file)
@@ -9,19 +9,27 @@ LTCOMMAND = mkfs.xfs
 
 HFILES =
 CFILES = proto.c xfs_mkfs.c
+CFGFILES = \
+       lts_4.19.conf \
+       lts_5.4.conf \
+       lts_5.10.conf \
+       lts_5.15.conf
 
 LLDLIBS += $(LIBXFS) $(LIBXCMD) $(LIBFROG) $(LIBRT) $(LIBBLKID) \
        $(LIBUUID) $(LIBINIH) $(LIBURCU) $(LIBPTHREAD)
 LTDEPENDENCIES += $(LIBXFS) $(LIBXCMD) $(LIBFROG)
 LLDFLAGS = -static-libtool-libs
 
-default: depend $(LTCOMMAND)
+default: depend $(LTCOMMAND) $(CFGFILES)
 
 include $(BUILDRULES)
 
 install: default
        $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
        $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
+       $(INSTALL) -m 755 -d $(MKFS_CFG_DIR)
+       $(INSTALL) -m 644 $(CFGFILES) $(MKFS_CFG_DIR)
+
 install-dev:
 
 -include .dep
diff --git a/mkfs/lts_4.19.conf b/mkfs/lts_4.19.conf
new file mode 100644 (file)
index 0000000..d21fcb7
--- /dev/null
@@ -0,0 +1,13 @@
+# V5 features that were the mkfs defaults when the upstream Linux 4.19 LTS
+# kernel was released at the end of 2018.
+
+[metadata]
+bigtime=0
+crc=1
+finobt=1
+inobtcount=0
+reflink=0
+rmapbt=0
+
+[inode]
+sparse=1
diff --git a/mkfs/lts_5.10.conf b/mkfs/lts_5.10.conf
new file mode 100644 (file)
index 0000000..ac00960
--- /dev/null
@@ -0,0 +1,13 @@
+# V5 features that were the mkfs defaults when the upstream Linux 5.10 LTS
+# kernel was released at the end of 2020.
+
+[metadata]
+bigtime=0
+crc=1
+finobt=1
+inobtcount=0
+reflink=1
+rmapbt=0
+
+[inode]
+sparse=1
diff --git a/mkfs/lts_5.15.conf b/mkfs/lts_5.15.conf
new file mode 100644 (file)
index 0000000..3208295
--- /dev/null
@@ -0,0 +1,13 @@
+# V5 features that were the mkfs defaults when the upstream Linux 5.15 LTS
+# kernel was released at the end of 2021.
+
+[metadata]
+bigtime=1
+crc=1
+finobt=1
+inobtcount=1
+reflink=1
+rmapbt=0
+
+[inode]
+sparse=1
diff --git a/mkfs/lts_5.4.conf b/mkfs/lts_5.4.conf
new file mode 100644 (file)
index 0000000..dd60b9f
--- /dev/null
@@ -0,0 +1,13 @@
+# V5 features that were the mkfs defaults when the upstream Linux 5.4 LTS
+# kernel was released at the end of 2019.
+
+[metadata]
+bigtime=0
+crc=1
+finobt=1
+inobtcount=0
+reflink=1
+rmapbt=0
+
+[inode]
+sparse=1
index fcad6b5527a53788889f437c4dafc4727c009629..af536a8ae689a4ac788c125d52479daa18c167f9 100644 (file)
@@ -3875,6 +3875,10 @@ main(
                        .nodalign = false,
                        .nortalign = false,
                        .bigtime = false,
+                       /*
+                        * When we decide to enable a new feature by default,
+                        * please remember to update the mkfs conf files.
+                        */
                },
        };