[Ocfs2-tools-devel] [PATCH] libo2cb, debugfs: Handle sysfs attributes living in /sys/fs/o2cb

Mark Fasheh mark.fasheh at oracle.com
Wed Jan 30 11:14:45 PST 2008


On Tue, Jan 29, 2008 at 02:08:14PM -0800, Joel Becker wrote:
> When the interface_revision and logmask attributes moved from procfs to
> sysfs, /sys/fs did not exist.  They were placed under /sys/o2cb as a
> best alternative.  These days, /sys/fs does exist, and the kernel
> community would like the attributes to live at /sys/fs/o2cb.
> 
> Going forward, tools searches /sys/fs/o2cb first, then /sys/o2cb, and
> finally the old /proc location.  The kernel will move to /sys/fs/o2cb,
> but will provide the old /sys/o2cb location for compatibility.
> 
> Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh at oracle.com>

I tested this with a module which only puts 'o2cb' in /sys/fs and things
worked out perfectly.

I'd say we should put this in ocfs2-tools 1.4 _and_ ocfs2-tools 1.2.
	--Mark

--
Mark Fasheh
Principal Software Developer, Oracle
mark.fasheh at oracle.com



More information about the Ocfs2-tools-devel mailing list