btrfs-progs: docs: update dev stats help and manual page
authorDavid Sterba <dsterba@suse.com>
Thu, 8 Dec 2016 18:21:28 +0000 (19:21 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 14 Dec 2016 14:06:36 +0000 (15:06 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
Documentation/btrfs-device.asciidoc
cmds-device.c

index 193e273..1e3b3a3 100644 (file)
@@ -100,8 +100,9 @@ prior scanning. See the mount option 'device'.
 
 *stats* [-zs] <path>|<device>::
 Read and print the device IO error statistics for all devices of the given
-filesystem identified by <path> or for a single <device>. See section *DEVICE
-STATS* for more information.
+filesystem identified by <path> or for a single <device>. The filesystem must
+be mounted.  See section *DEVICE STATS* for more information about the reported
+statistics and the meaning.
 +
 `Options`
 +
index ba0e436..3e053d9 100644 (file)
@@ -372,8 +372,10 @@ out:
 }
 
 static const char * const cmd_device_stats_usage[] = {
-       "btrfs device stats [-z] <path>|<device>",
-       "Show current device IO stats.",
+       "btrfs device stats [options] <path>|<device>",
+       "Show device IO error statistics",
+       "Show device IO error statistics for all devices of the given filesystem",
+       "identified by PATH or DEVICE. The filesystem must be mounted.",
        "",
        "-z|--reset             show current stats and reset values to zero",
        "-s                     return non-zero if any stat counter is not zero",