[Ocfs2-commits] jlbec commits r2678 - trunk/fs/configfs
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Sat Nov 5 03:02:09 CST 2005
Author: jlbec
Signed-off-by: mfasheh
Date: 2005-11-05 03:02:08 -0600 (Sat, 05 Nov 2005)
New Revision: 2678
Modified:
trunk/fs/configfs/mount.c
Log:
o Add the config subsystem to create /sys/kernel/config as the
mountpoint for configfs.
Signed-off-by: mfasheh
Modified: trunk/fs/configfs/mount.c
===================================================================
--- trunk/fs/configfs/mount.c 2005-11-05 00:27:07 UTC (rev 2677)
+++ trunk/fs/configfs/mount.c 2005-11-05 09:02:08 UTC (rev 2678)
@@ -123,13 +123,22 @@
simple_release_fs(&configfs_mount, &configfs_mnt_count);
}
+
+static decl_subsys(config, NULL, NULL);
+
static int __init configfs_init(void)
{
int err;
+ kset_set_kset_s(&config_subsys, kernel_subsys);
+ err = subsystem_register(&config_subsys);
+ if (err)
+ return err;
+
err = register_filesystem(&configfs_fs_type);
if (err) {
- printk(KERN_ERR "configfs: Unable to register filesystem!\n");
+ printk(KERN_ERR "configfs: Unable to register filesystem!\n");
+ subsystem_unregister(&config_subsys);
}
return err;
@@ -137,7 +146,8 @@
static void __exit configfs_exit(void)
{
- unregister_filesystem(&configfs_fs_type);
+ unregister_filesystem(&configfs_fs_type);
+ subsystem_unregister(&config_subsys);
}
MODULE_AUTHOR("Oracle");
More information about the Ocfs2-commits
mailing list