]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ocfs2: Fix userspace ABI breakage in sysfs
authorJoel Becker <Joel.Becker@oracle.com>
Tue, 29 Jan 2008 02:52:04 +0000 (18:52 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Tue, 29 Jan 2008 03:10:23 +0000 (19:10 -0800)
The userspace ABI of ocfs2's internal cluster stack (o2cb) was broken by
commit c60b71787982cefcf9fa09aa281fa8c4c685d557 "kset: convert ocfs2 to
use kset_create".  Specifically, the '/sys/o2cb' kset was moved to
'/sys/fs/o2cb'.  This breaks all ocfs2 tools and renders the
filesystem unmountable.

This fix moves '/sys/o2cb' back where it belongs.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/cluster/sys.c

index a4b07730b2e1d0abb257a126fce7f3911ae1d434..0c095ce7723d87db01bbb5d980e0fd4643764eb7 100644 (file)
@@ -64,7 +64,7 @@ int o2cb_sys_init(void)
 {
        int ret;
 
-       o2cb_kset = kset_create_and_add("o2cb", NULL, fs_kobj);
+       o2cb_kset = kset_create_and_add("o2cb", NULL, NULL);
        if (!o2cb_kset)
                return -ENOMEM;