path: root/man
diff options
authorStefan Behrens <>2012-05-15 11:30:39 +0200
committerDavid Sterba <>2013-01-31 13:47:17 +0100
commit5b8826ddfd1c4fcdcfe9f78fd80cfeeac9de1b21 (patch)
tree7eb512fce9566f435d4b05a0b9ea1c70c583f20f /man
parent7a69dc4eecfd52841b11e0f9312f62d17e3479f5 (diff)
Btrfs-progs: add command to get/reset device stats via ioctl
"btrfs device stats" is used to retrieve and print the device stats. "btrfs device stats -z" is used to atomically retrieve, reset and print the stats. Signed-off-by: Stefan Behrens <>
Diffstat (limited to 'man')
1 files changed, 14 insertions, 0 deletions
diff --git a/man/ b/man/
index d20e332e..460592eb 100644
--- a/man/
+++ b/man/
@@ -33,6 +33,8 @@ btrfs \- control a btrfs filesystem
\fBbtrfs\fP \fBdevice scan\fP\fI [--all-devices|<device> [<device>...]]\fP
+\fBbtrfs\fP \fBdevice stats\fP [-z] {\fI<path>\fP|\fI<device>\fP}
\fBbtrfs\fP \fBdevice add\fP\fI <device> [<device>...] <path> \fP
\fBbtrfs\fP \fBdevice delete\fP\fI <device> [<device>...] <path> \fP
@@ -252,6 +254,18 @@ Balance the chunks of the filesystem identified by \fI<path>\fR
across the devices.
+\fBdevice stats\fP [-z] {\fI<path>\fP|\fI<device>\fP}
+Read and print the device IO stats for all devices of the filesystem
+identified by \fI<path>\fR or for a single \fI<device>\fR.
+.B -z
+Reset stats to zero after reading them.
\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
Add device(s) to the filesystem identified by \fI<path>\fR.