From: Darrick J. Wong <djwong@xxxxxxxxxx> 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 <djwong@xxxxxxxxxx> --- v2: use the mkfs config file directory from the build system --- man/man8/Makefile | 7 +++++++ man/man8/mkfs.xfs.8.in | 4 ++++ 2 files changed, 11 insertions(+) rename man/man8/{mkfs.xfs.8 => mkfs.xfs.8.in} (99%) diff --git a/man/man8/Makefile b/man/man8/Makefile index e6a55729..272e45ae 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 880e949b..a3526753 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