diff options
author | Phillip Susi | 2014-02-07 23:01:20 +0100 |
---|---|---|
committer | Karel Zak | 2014-02-10 18:58:39 +0100 |
commit | b5ab5bec7392a1b5de271ce6299ef9e355187652 (patch) | |
tree | d8c866222f6e519aa548120787d8bb8c02ddf7d8 /disk-utils | |
parent | hwclock: internationalizing the message of the used interface (diff) | |
download | kernel-qcow2-util-linux-b5ab5bec7392a1b5de271ce6299ef9e355187652.tar.gz kernel-qcow2-util-linux-b5ab5bec7392a1b5de271ce6299ef9e355187652.tar.xz kernel-qcow2-util-linux-b5ab5bec7392a1b5de271ce6299ef9e355187652.zip |
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.
Signed-off-by: Phillip Susi <psusi@ubuntu.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/mkfs.8 | 7 | ||||
-rw-r--r-- | disk-utils/mkfs.c | 1 |
2 files changed, 2 insertions, 6 deletions
diff --git a/disk-utils/mkfs.8 b/disk-utils/mkfs.8 index 9e82bc465..3b905b284 100644 --- a/disk-utils/mkfs.8 +++ b/disk-utils/mkfs.8 @@ -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. diff --git a/disk-utils/mkfs.c b/disk-utils/mkfs.c index a6795cb0e..cb34951b2 100644 --- a/disk-utils/mkfs.c +++ b/disk-utils/mkfs.c @@ -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} }; |