]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
textual: small inprovements to usage and man page of fstrim
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 11 Dec 2013 11:40:14 +0000 (12:40 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Dec 2013 10:10:53 +0000 (11:10 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
sys-utils/fstrim.8
sys-utils/fstrim.c

index 6572c706009ace77d9f871f24083aaeaa5e97bc1..8f68351b158b36c06ec35c00091a86576ee19e4e 100644 (file)
@@ -37,9 +37,10 @@ GiB, TiB, PiB, EiB, ZiB and YiB (the "iB" is optional, e.g. "K" has the same
 meaning as "KiB") or the suffixes KB=1000, MB=1000*1000, and so on for GB, TB,
 PB, EB, ZB and YB.
 .IP "\fB\-a, \-\-all\fP"
-Discard all mounted filesystem on devices that support discard operation. The
-another options like offset, length and minimum are applied to all the devices.
-The errors from filesystems that do not support discard operation are silently
+Trim all mounted filesystems on devices that support the discard operation.
+The other supplied options, like \fB\-\-offset\fR, \fB\-\-length\fR and
+\fB-\-minimum\fR, are applied to all these devices.
+Errors from filesystems that do not support the discard operation are silently
 ignored.
 .IP "\fB\-h, \-\-help\fP"
 Display help text and exit.
@@ -87,7 +88,7 @@ failure
 .IP 32
 all failed
 .IP 64
-some filestems discard succeeded, some failed
+some filesystem discards have succeeded, some failed
 .PP
 The command
 .B fstrim --all
index f58b6d4c35c4c7b32a4193af0d877b8840502b0e..c51c7a804069cc52ffb19ecaff395ee8303cf79d 100644 (file)
@@ -229,10 +229,10 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
        fprintf(out,
              _(" %s [options] <mount point>\n"), program_invocation_short_name);
        fputs(USAGE_OPTIONS, out);
-       fputs(_(" -a, --all           discard all mounted supported filesystems\n"), out);
-       fputs(_(" -o, --offset <num>  offset in bytes to discard from\n"), out);
-       fputs(_(" -l, --length <num>  length of bytes to discard from the offset\n"), out);
-       fputs(_(" -m, --minimum <num> minimum extent length to discard\n"), out);
+       fputs(_(" -a, --all           trim all mounted filesystems that are supported\n"), out);
+       fputs(_(" -o, --offset <num>  the offset in bytes to start discarding from\n"), out);
+       fputs(_(" -l, --length <num>  the number of bytes to discard\n"), out);
+       fputs(_(" -m, --minimum <num> the minimum extent length to discard\n"), out);
        fputs(_(" -v, --verbose       print number of discarded bytes\n"), out);
 
        fputs(USAGE_SEPARATOR, out);