Skip to contentSkip to conversation

fix mkfs --verbose and man page

PATCH Applied Phillip Susi 2 participants 2 messages Feb 7, 2014 – Feb 10, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix mkfs --verbose and man page

mkfs did not actually accept the long form --verbose option. Also the man page seemed to indicate that version/verbose/help options were passed to the filesystem specific utility when this is not the case.

---
 disk-utils/mkfs.8 | 7 +------
 disk-utils/mkfs.c | 1 +
 2 files changed, 2 insertions(+), 6 deletions(-)
disk-utils/mkfs.8 +1 -6
index 9e82bc4..3b905b2 100644
@@ -53,8 +53,6 @@ If not specified, the default filesystem type
 .TP
 .I fs-options
 Filesystem-specific options to be passed to the real filesystem builder.
-Although not guaranteed, the following options are supported
-by most filesystem builders.
 .TP
 .BR \-V , " \-\-verbose"
 Produce verbose output, including all filesystem-specific commands
@@ -73,10 +71,7 @@ Display help text and exit.
 .SH BUGS
 All generic options must precede and not be combined with
 filesystem-specific options.
-Some filesystem-specific programs do not support the
-.B -V
-(verbose) option, nor return meaningful exit codes.
-Also, some filesystem-specific programs do not automatically
+Some filesystem-specific programs do not automatically
 detect the device size and require the
 .I size
 parameter to be specified.
disk-utils/mkfs.c +1 -0
index a6795cb..cb34951 100644
@@ -73,6 +73,7 @@ int main(int argc, char **argv)
 	static const struct option longopts[] = {
 		{"type", required_argument, NULL, 't'},
 		{"version", no_argument, NULL, VERSION_OPTION},
+		{"verbose", no_argument, NULL, 'V'},
 		{"help", no_argument, NULL, 'h'},
 		{NULL, 0, NULL, 0}
 	};
Signature · 1 line
1.8.3.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Phillip Susi
 disk-utils/mkfs.8 | 7 +------
 disk-utils/mkfs.c | 1 +
 2 files changed, 2 insertions(+), 6 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com