From 5b8826ddfd1c4fcdcfe9f78fd80cfeeac9de1b21 Mon Sep 17 00:00:00 2001 From: Stefan Behrens Date: Tue, 15 May 2012 11:30:39 +0200 Subject: 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 --- man/btrfs.8.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'man') diff --git a/man/btrfs.8.in b/man/btrfs.8.in index d20e332e..460592eb 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -33,6 +33,8 @@ btrfs \- control a btrfs filesystem .PP \fBbtrfs\fP \fBdevice scan\fP\fI [--all-devices| [...]]\fP .PP +\fBbtrfs\fP \fBdevice stats\fP [-z] {\fI\fP|\fI\fP} +.PP \fBbtrfs\fP \fBdevice add\fP\fI [...] \fP .PP \fBbtrfs\fP \fBdevice delete\fP\fI [...] \fP @@ -252,6 +254,18 @@ Balance the chunks of the filesystem identified by \fI\fR across the devices. .TP +\fBdevice stats\fP [-z] {\fI\fP|\fI\fP} +Read and print the device IO stats for all devices of the filesystem +identified by \fI\fR or for a single \fI\fR. + +.RS +\fIOptions\fR +.TP +.B -z +Reset stats to zero after reading them. +.RE +.TP + \fBdevice add\fR\fI [..] \fR Add device(s) to the filesystem identified by \fI\fR. .TP -- cgit v1.2.3