diff options
Diffstat (limited to 'Documentation/btrfs-device.asciidoc')
-rw-r--r-- | Documentation/btrfs-device.asciidoc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/btrfs-device.asciidoc b/Documentation/btrfs-device.asciidoc index 239c99bc..d398b6d2 100644 --- a/Documentation/btrfs-device.asciidoc +++ b/Documentation/btrfs-device.asciidoc @@ -98,7 +98,7 @@ remain as such. Reloading the kernel module will drop this information. There's an alternative way of mounting multiple-device filesystem without the need for prior scanning. See the mount option 'device'. -*stats* [-z] <path>|<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. @@ -108,6 +108,9 @@ STATS* for more information. -z:::: Print the stats and reset the values to zero afterwards. +-s:::: +Set bit 6 of the return-code if any error statistics are non-zero. + *usage* [options] <path> [<path>...]:: Show detailed information about internal allocations in devices. + @@ -231,6 +234,9 @@ EXIT STATUS *btrfs device* returns a zero exit status if it succeeds. Non zero is returned in case of failure. +If the '-s' option is used, *btrfs device stats* will add 64 to the +exit status if any of the error counters is non-zero. + AVAILABILITY ------------ *btrfs* is part of btrfs-progs. |