···11What: /sys/o2cb symlink22-Date: Dec 200533-KernelVersion: 2.6.1622+Date: May 201133+KernelVersion: 2.6.4044Contact: ocfs2-devel@oss.oracle.com55-Description: This is a symlink: /sys/o2cb to /sys/fs/o2cb. The symlink will66- be removed when new versions of ocfs2-tools which know to look55+Description: This is a symlink: /sys/o2cb to /sys/fs/o2cb. The symlink is66+ removed when new versions of ocfs2-tools which know to look77 in /sys/fs/o2cb are sufficiently prevalent. Don't code new88 software to look here, it should try /sys/fs/o2cb instead.99- See Documentation/ABI/stable/o2cb for more information on usage.109Users: ocfs2-tools. It's sufficient to mail proposed changes to1110 ocfs2-devel@oss.oracle.com.
-10
Documentation/feature-removal-schedule.txt
···262262263263---------------------------264264265265-What: /sys/o2cb symlink266266-When: January 2010267267-Why: /sys/fs/o2cb is the proper location for this information - /sys/o2cb268268- exists as a symlink for backwards compatibility for old versions of269269- ocfs2-tools. 2 years should be sufficient time to phase in new versions270270- which know to look in /sys/fs/o2cb.271271-Who: ocfs2-devel@oss.oracle.com272272-273273----------------------------274274-275265What: Ability for non root users to shm_get hugetlb pages based on mlock276266 resource limits277267When: 2.6.31
-9
fs/ocfs2/cluster/sys.c
···5757void o2cb_sys_shutdown(void)5858{5959 mlog_sys_shutdown();6060- sysfs_remove_link(NULL, "o2cb");6160 kset_unregister(o2cb_kset);6261}6362···6768 o2cb_kset = kset_create_and_add("o2cb", NULL, fs_kobj);6869 if (!o2cb_kset)6970 return -ENOMEM;7070-7171- /*7272- * Create this symlink for backwards compatibility with old7373- * versions of ocfs2-tools which look for things in /sys/o2cb.7474- */7575- ret = sysfs_create_link(NULL, &o2cb_kset->kobj, "o2cb");7676- if (ret)7777- goto error;78717972 ret = sysfs_create_group(&o2cb_kset->kobj, &o2cb_attr_group);8073 if (ret)