tags 634883 +pending thanks On Wed, Jul 20, 2011 at 09:23:51PM +0200, Helge Kreutzmann wrote: > > The man page explains the various options and several times says "if > enabled" (e.g. for enable_periodic_fsck). From the shipped file I > assume that "enabled" means a numeric 1 and disabled a numeric 0?
Yes, that's correct. Thanks for pointing out the man page was less than clear here. I've fixed this for the next release. - Ted commit 900ea6129541ab9319986c4960ee7335c13830c8 Author: Theodore Ts'o <ty...@mit.edu> Date: Fri Sep 30 18:32:44 2011 -0400 mke2fs.conf.5: clarify the man page regarding boolean relations Explain more clearly how boolean relations in the mke2fs.conf file are parsed, and which config parameters are in fact boolean relations. Addresses-Debian-Bug: #634883 Signed-off-by: "Theodore Ts'o" <ty...@mit.edu> diff --git a/misc/mke2fs.conf.5.in b/misc/mke2fs.conf.5.in index b2c7a57..636a0f1 100644 --- a/misc/mke2fs.conf.5.in +++ b/misc/mke2fs.conf.5.in @@ -59,6 +59,11 @@ apply: "\en" (for the newline character), "\et" (for the tab character), "\eb" (for the backspace character), and "\e\e" (for the backslash character). .P +Some relations expect a boolean value. The parser is quite liberal on +recognizing ``yes'', '`y'', ``true'', ``t'', ``1'', ``on'', etc. as a +boolean true value, and ``no'', ``n'', ``false'', ``nil'', ``0'', +``off'' as a boolean false value. +.P The following stanzas are used in the .I mke2fs.conf file. They will be described in more detail in future sections of this @@ -108,8 +113,8 @@ to .BR mke2fs (8). .TP .I enable_periodic_fsck -This relation specifies whether periodic filesystem checks should be -enforced at boot time. If enabled, checks will be forced every +This boolean relation specifies whether periodic filesystem checks should be +enforced at boot time. If set to true, checks will be forced every 180 days, or after a random number of mounts. These values may be changed later via the .B -i @@ -119,7 +124,7 @@ command-line options to .BR tune2fs (8). .TP .I force_undo -This relation, if set to a boolean value of true, forces +This boolean relation, if set to a value of true, forces .B mke2fs to always try to create an undo file, even if the undo file might be huge and it might extend the time to create the filesystem image @@ -341,7 +346,7 @@ This relation specifies the default blocksize if the user does not specify a blocksize on the command line. .TP .I lazy_itable_init -This relation is a boolean which specifies whether the inode table should +This boolean relation specifies whether the inode table should be lazily initialized. It only has meaning if the uninit_bg feature is enabled. If lazy_itable_init is true and the uninit_bg feature is enabled, the inode table will @@ -392,7 +397,7 @@ by on a per-filesystem type basis. .TP .I discard -This relation is a boolean which specifies whether the +This boolean relation specifies whether the .BR mke2fs (8) should attempt to discard device prior to filesystem creation. .TP -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org