summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/main.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-03-02 16:33:41 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-03-02 16:33:41 -0500
commit419c93e0b6b9eef0bf26b8ad415f2a5bf4300119 (patch)
treed2333ff0833cd5470b12e103a410a77158a15881 /fs/gfs2/main.c
parentb4dc72911d149d7d6b7ffb512bd68906f1cbd33a (diff)
downloadop-kernel-dev-419c93e0b6b9eef0bf26b8ad415f2a5bf4300119.zip
op-kernel-dev-419c93e0b6b9eef0bf26b8ad415f2a5bf4300119.tar.gz
[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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c
index c541777..c8d17b7 100644
--- a/fs/gfs2/main.c
+++ b/fs/gfs2/main.c
@@ -64,11 +64,17 @@ static int __init init_gfs2_fs(void)
if (error)
goto fail;
+ error = register_filesystem(&gfs2meta_fs_type);
+ if (error)
+ goto fail_unregister;
+
printk("GFS2 (built %s %s) installed\n", __DATE__, __TIME__);
return 0;
- fail:
+fail_unregister:
+ unregister_filesystem(&gfs2_fs_type);
+fail:
if (gfs2_bufdata_cachep)
kmem_cache_destroy(gfs2_bufdata_cachep);
@@ -90,6 +96,7 @@ static int __init init_gfs2_fs(void)
static void __exit exit_gfs2_fs(void)
{
unregister_filesystem(&gfs2_fs_type);
+ unregister_filesystem(&gfs2meta_fs_type);
kmem_cache_destroy(gfs2_bufdata_cachep);
kmem_cache_destroy(gfs2_inode_cachep);
OpenPOWER on IntegriCloud