Skip to content

Commit

Permalink
ocfs2: Fix userspace ABI breakage in sysfs
Browse files Browse the repository at this point in the history
The userspace ABI of ocfs2's internal cluster stack (o2cb) was broken by
commit c60b717 "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>
  • Loading branch information
Joel Becker authored and Mark Fasheh committed Jan 29, 2008
1 parent 8561b08 commit 6b11d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/cluster/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6b11d81

Please sign in to comment.