Skip to contentSkip to conversation

mkfs: add mkfs_config_version specifier for the config file

PATCH Superseded Luis R. Rodriguez 1 participant 1 message Jun 16, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkfs: add mkfs_config_version specifier for the config file

We may opt later to bump this and add new features which we don't want a v1 parser to use. So peg a version number. We use mkfs_config_version as special token as other sections may use 'version' already, such is the case for log.

---
 man/man8/mkfs.xfs.8.in |  7 ++++++-
 mkfs/config.c          | 55 +++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 60 insertions(+), 2 deletions(-)
man/man8/mkfs.xfs.8.in +6 -1
index cf4bdf827d9c..71573daec718 100644
@@ -965,12 +965,17 @@ option follow a simple ini-style format as shown below.
 Available options consist of a small subset of the parameters available
 via the
 .BR mkfs.xfs (8)
-command line.
+command line. All configuration files must start with an annotation of
+the configuration file format, specified with the keyword
+.B mkfs_config_version
+and the only supported version format is 1.
 Currently all default parameters can only be either enabled or disabled,
 with a value of 1 to enable or 0 to disable.
 See below for a list of all supported configuration parameters and their
 current built-in default settings.
 .PP
+.BI mkfs_config_version=1
+.br
 .BI [data]
 .br
 .BI noalign=0
mkfs/config.c +54 -1

91 lines not on this page · raw message

Signature · 1 line
2.16.3