summaryrefslogtreecommitdiff
path: root/e2fsck/e2fsck.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2007-08-03 20:07:09 -0400
committerTheodore Ts'o <tytso@mit.edu>2007-08-03 20:07:09 -0400
commit6d96b00d57d236e2746f8245df6c8ea64abc64c1 (patch)
tree786a13abfdf0e0451ace527da32ca2be6a8df408 /e2fsck/e2fsck.h
parent894c7fdb13d1305d0d68dfb006328d725e4a72d1 (diff)
downloade2fsprogs-6d96b00d57d236e2746f8245df6c8ea64abc64c1.tar.gz
Add I/O statistics to e2fsck
This patch instruments the libext2fs unix I/O manager and adds bytes read/written and data rate to e2fsck -tt pass/overall timing output. Signed-off-by: Jim Garlick <garlick@llnl.gov> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/e2fsck.h')
-rw-r--r--e2fsck/e2fsck.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/e2fsck/e2fsck.h b/e2fsck/e2fsck.h
index 96b83dab..5a9b44f3 100644
--- a/e2fsck/e2fsck.h
+++ b/e2fsck/e2fsck.h
@@ -135,6 +135,8 @@ struct resource_track {
struct timeval user_start;
struct timeval system_start;
void *brk_start;
+ unsigned long long bytes_read;
+ unsigned long long bytes_written;
};
#endif
@@ -469,8 +471,10 @@ extern void preenhalt(e2fsck_t ctx);
extern char *string_copy(e2fsck_t ctx, const char *str, int len);
#ifdef RESOURCE_TRACK
extern void print_resource_track(const char *desc,
- struct resource_track *track);
-extern void init_resource_track(struct resource_track *track);
+ struct resource_track *track,
+ io_channel channel);
+extern void init_resource_track(struct resource_track *track,
+ io_channel channel);
#endif
extern int inode_has_valid_blocks(struct ext2_inode *inode);
extern void e2fsck_read_inode(e2fsck_t ctx, unsigned long ino,