From b67e9a1b132c98a2e31df9e8ae79273a8531ba6f Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 8 Dec 2016 19:21:28 +0100 Subject: [PATCH] btrfs-progs: docs: update dev stats help and manual page Signed-off-by: David Sterba --- Documentation/btrfs-device.asciidoc | 5 +++-- cmds-device.c | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Documentation/btrfs-device.asciidoc b/Documentation/btrfs-device.asciidoc index 193e2734..1e3b3a39 100644 --- a/Documentation/btrfs-device.asciidoc +++ b/Documentation/btrfs-device.asciidoc @@ -100,8 +100,9 @@ prior scanning. See the mount option 'device'. *stats* [-zs] |:: Read and print the device IO error statistics for all devices of the given -filesystem identified by or for a single . See section *DEVICE -STATS* for more information. +filesystem identified by or for a single . The filesystem must +be mounted. See section *DEVICE STATS* for more information about the reported +statistics and the meaning. + `Options` + diff --git a/cmds-device.c b/cmds-device.c index ba0e4368..3e053d9e 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -372,8 +372,10 @@ out: } static const char * const cmd_device_stats_usage[] = { - "btrfs device stats [-z] |", - "Show current device IO stats.", + "btrfs device stats [options] |", + "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",