summaryrefslogtreecommitdiffstats
path: root/disk-utils/fsck.8
diff options
context:
space:
mode:
authorFrank Mayhar2012-03-06 13:23:08 +0100
committerKarel Zak2012-03-20 11:22:09 +0100
commit5a0da00aec3ac23bcb4452a981e4966cfbd84db1 (patch)
treeab602c53308a38935dec0b394e11dfd2d170d411 /disk-utils/fsck.8
parentfsck: move to disk-utils directory (diff)
downloadkernel-qcow2-util-linux-5a0da00aec3ac23bcb4452a981e4966cfbd84db1.tar.gz
kernel-qcow2-util-linux-5a0da00aec3ac23bcb4452a981e4966cfbd84db1.tar.xz
kernel-qcow2-util-linux-5a0da00aec3ac23bcb4452a981e4966cfbd84db1.zip
fsck: Add a -r option to report memory and runtime statistics
This patch adds a "-r" option to report statistics for each fsck run. It gathers the statistics via wait4() and rusage and reports exit status, system and user CPU time, elapsed wall-clock time and the max RSS. [kzak@redhat.com: - rebase to the latest code, - report all on one line, - use "real" rather than "elapsed"] Signed-off-by: Frank Mayhar <fmayhar@google.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fsck.8')
-rw-r--r--disk-utils/fsck.810
1 files changed, 9 insertions, 1 deletions
diff --git a/disk-utils/fsck.8 b/disk-utils/fsck.8
index d360df147..69fe2edd1 100644
--- a/disk-utils/fsck.8
+++ b/disk-utils/fsck.8
@@ -7,7 +7,7 @@
fsck \- check and repair a Linux filesystem
.SH SYNOPSIS
.B fsck
-.RB [ \-lsAVRTMNP ]
+.RB [ \-lrsAVRTMNP ]
.RB [ \-C
.RI [ fd ]]
.RB [ \-t
@@ -103,6 +103,14 @@ multiple devices or for non-rotating disks. \fBfsck\fR does not lock underlying
devices when executed to check stacked devices (e.g. MD or DM) -- this feature is
not implemented yet.
.TP
+.B \-r
+Report certain statistics for each fsck when it completes. These statistics
+include the exit status, the maximum run set size (in kilobytes), the elapsed
+all-clock time and the user and system CPU time used by the fsck run. For
+example:
+
+/dev/sda1: status 0, maxrss 92828, real 4, user 2.677592, sys 0.861868
+.TP
.B \-s
Serialize
.B fsck