From dcfc4bdd5962ad18665d9ad3f3309884c941845e Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Tue, 15 Sep 2009 04:46:44 +0000 Subject: Changed prototype for inode_table_dump() and inode_dump(). Changed prototype for inode_table_dump() and inode_dump() Added support for dumpop inode in mount/fuse and protocol/server Signed-off-by: Anand V. Avati BUG: 213 (Support for process state dump) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=213 --- xlators/mount/fuse/src/fuse-bridge.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'xlators/mount') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 85b7d15f6c4..dcb4e2950f6 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -2927,6 +2927,18 @@ fuse_thread_proc (void *data) return NULL; } +int32_t +fuse_itable_dump (xlator_t *this) +{ + if (!this) + return -1; + + gf_proc_dump_add_section("xlator.mount.fuse.itable"); + inode_table_dump(this->itable, "xlator.mount.fuse.itable"); + + return 0; +} + int32_t fuse_priv_dump (xlator_t *this) { @@ -3244,6 +3256,7 @@ struct xlator_mops mops = { struct xlator_dumpops dumpops = { .priv = fuse_priv_dump, + .inode = fuse_itable_dump, }; struct volume_options options[] = { -- cgit