From: Darrick J. Wong Date: Fri, 25 Feb 2022 22:42:16 +0000 (-0500) Subject: mkfs: document sample configuration file location X-Git-Tag: v5.15.0-rc1~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0074fb0c3706d9897af0c99738c6bfe1f15b19a;p=thirdparty%2Fxfsprogs-dev.git mkfs: document sample configuration file location Update the documentation to note where one can find sample configuration files. While we're at it, add -c to the topmost list of mkfs.xfs options. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/man/man8/Makefile b/man/man8/Makefile index e6a557290..272e45aeb 100644 --- a/man/man8/Makefile +++ b/man/man8/Makefile @@ -12,8 +12,10 @@ ifneq ("$(ENABLE_SCRUB)","yes") else MAN_PAGES = $(shell echo *.$(MAN_SECTION)) endif +MAN_PAGES += mkfs.xfs.8 MAN_DEST = $(PKG_MAN_DIR)/man$(MAN_SECTION) LSRCFILES = $(MAN_PAGES) +DIRT = mkfs.xfs.8 default : $(MAN_PAGES) @@ -22,4 +24,9 @@ include $(BUILDRULES) install : default $(INSTALL) -m 755 -d $(MAN_DEST) $(INSTALL_MAN) + +mkfs.xfs.8: mkfs.xfs.8.in + @echo " [SED] $@" + $(Q)$(SED) -e 's|@mkfs_cfg_dir@|$(MKFS_CFG_DIR)|g' < $^ > $@ + install-dev : diff --git a/man/man8/mkfs.xfs.8 b/man/man8/mkfs.xfs.8.in similarity index 99% rename from man/man8/mkfs.xfs.8 rename to man/man8/mkfs.xfs.8.in index 880e949bb..a35267536 100644 --- a/man/man8/mkfs.xfs.8 +++ b/man/man8/mkfs.xfs.8.in @@ -7,6 +7,9 @@ mkfs.xfs \- construct an XFS filesystem .B \-b .I block_size_options ] [ +.B \-c +.I config_file_options +] [ .B \-m .I global_metadata_options ] [ @@ -159,6 +162,7 @@ The configuration options will be sourced from the file specified by the option string. This option can be use either an absolute or relative path to the configuration file to be read. +Sample configuration files can be found in @mkfs_cfg_dir@. .RE .PP .PD 0