diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-02 16:33:41 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-02 16:33:41 -0500 |
commit | 419c93e0b6b9eef0bf26b8ad415f2a5bf4300119 (patch) | |
tree | d2333ff0833cd5470b12e103a410a77158a15881 /fs/gfs2/main.c | |
parent | b4dc72911d149d7d6b7ffb512bd68906f1cbd33a (diff) |
[GFS2] Add gfs2meta filesystem
In order to separate out the filesystem's metadata from "normal"
files and directories, a new filesystem type has been created.
It is called gfs2meta and mounting it gives access to the files
that were previously under .gfs2_admin (well still are until mkfs
is altered, which is next on the adgenda).
Its not currently possible to mount both gfs2 and gfs2meta on the
same block device at the same time. A future patch will allow that
to happen.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/main.c')
-rw-r--r-- | fs/gfs2/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c index c54177790318..c8d17b7ba60b 100644 --- a/fs/gfs2/main.c +++ b/fs/gfs2/main.c | |||
@@ -64,11 +64,17 @@ static int __init init_gfs2_fs(void) | |||
64 | if (error) | 64 | if (error) |
65 | goto fail; | 65 | goto fail; |
66 | 66 | ||
67 | error = register_filesystem(&gfs2meta_fs_type); | ||
68 | if (error) | ||
69 | goto fail_unregister; | ||
70 | |||
67 | printk("GFS2 (built %s %s) installed\n", __DATE__, __TIME__); | 71 | printk("GFS2 (built %s %s) installed\n", __DATE__, __TIME__); |
68 | 72 | ||
69 | return 0; | 73 | return 0; |
70 | 74 | ||
71 | fail: | 75 | fail_unregister: |
76 | unregister_filesystem(&gfs2_fs_type); | ||
77 | fail: | ||
72 | if (gfs2_bufdata_cachep) | 78 | if (gfs2_bufdata_cachep) |
73 | kmem_cache_destroy(gfs2_bufdata_cachep); | 79 | kmem_cache_destroy(gfs2_bufdata_cachep); |
74 | 80 | ||
@@ -90,6 +96,7 @@ static int __init init_gfs2_fs(void) | |||
90 | static void __exit exit_gfs2_fs(void) | 96 | static void __exit exit_gfs2_fs(void) |
91 | { | 97 | { |
92 | unregister_filesystem(&gfs2_fs_type); | 98 | unregister_filesystem(&gfs2_fs_type); |
99 | unregister_filesystem(&gfs2meta_fs_type); | ||
93 | 100 | ||
94 | kmem_cache_destroy(gfs2_bufdata_cachep); | 101 | kmem_cache_destroy(gfs2_bufdata_cachep); |
95 | kmem_cache_destroy(gfs2_inode_cachep); | 102 | kmem_cache_destroy(gfs2_inode_cachep); |