]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fsck: Add a -r option to report memory and runtime statistics
authorFrank Mayhar <fmayhar@google.com>
Tue, 6 Mar 2012 12:23:08 +0000 (13:23 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Mar 2012 10:22:09 +0000 (11:22 +0100)
commit5a0da00aec3ac23bcb4452a981e4966cfbd84db1
treeab602c53308a38935dec0b394e11dfd2d170d411
parenta7b585eac373f2b4322569b4c5deba0c4778c220
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>
disk-utils/fsck.8
disk-utils/fsck.c