diff options
author | Robert Peterson <rpeterso@redhat.com> | 2007-03-16 06:26:37 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2007-05-01 04:10:29 -0400 |
commit | 7c52b166c588c98cf3d2b2e7e6a0468a98e84d0d (patch) | |
tree | 3a38426f1479263cd75fa76204cdc1a620e7ca9f /fs/gfs2/main.c | |
parent | dc87c3985e9b442c60994308a96f887579addc39 (diff) |
[GFS2] Add gfs2_tool lockdump support to gfs2 (bz 228540)
The attached patch resolves bz 228540. This adds the capability
for gfs2 to dump gfs2 locks through the debugfs file system.
This used to exist in gfs1 as "gfs_tool lockdump" but it's missing from
gfs2 because all the ioctls were stripped out. Please see the bugzilla
for more history about the fix. This patch is also attached to the bugzilla
record.
The patch is against Steve Whitehouse's latest nmw git tree kernel
(2.6.21-rc1) and has been tested on system trin-10.
Signed-off-by: Robert Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/main.c')
-rw-r--r-- | fs/gfs2/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c index 6e8a59809abf..218395371dbe 100644 --- a/fs/gfs2/main.c +++ b/fs/gfs2/main.c | |||
@@ -103,6 +103,8 @@ static int __init init_gfs2_fs(void) | |||
103 | if (error) | 103 | if (error) |
104 | goto fail_unregister; | 104 | goto fail_unregister; |
105 | 105 | ||
106 | gfs2_register_debugfs(); | ||
107 | |||
106 | printk("GFS2 (built %s %s) installed\n", __DATE__, __TIME__); | 108 | printk("GFS2 (built %s %s) installed\n", __DATE__, __TIME__); |
107 | 109 | ||
108 | return 0; | 110 | return 0; |
@@ -130,6 +132,7 @@ fail: | |||
130 | 132 | ||
131 | static void __exit exit_gfs2_fs(void) | 133 | static void __exit exit_gfs2_fs(void) |
132 | { | 134 | { |
135 | gfs2_unregister_debugfs(); | ||
133 | unregister_filesystem(&gfs2_fs_type); | 136 | unregister_filesystem(&gfs2_fs_type); |
134 | unregister_filesystem(&gfs2meta_fs_type); | 137 | unregister_filesystem(&gfs2meta_fs_type); |
135 | 138 | ||