[Ocfs2-tools-devel] [Ocfs2-devel] [PATCH] ocfs2console: Allow ocfs2console to enumerate device mapper devices

Joel Becker Joel.Becker at oracle.com
Tue Aug 12 12:48:26 PDT 2008


On Tue, Aug 12, 2008 at 03:37:27PM -0400, Jeff Mahoney wrote:
> > 	Nice!  I've not played with libdevmapper - I assume that the
> > enumerator returns "preferred" names when there are 10 different
> > symlinks for the same volume?  :-)
> 
> It uses the canonical device mapper names. The symlinks are added by
> add-on tools like multipath or LVM. This enumerates the names that
> device mapper knows about. It's the same list that "dmsetup ls" would
> show, especially since I used that code as a template. :)
> 
> So, for example, it won't show you /dev/system/root, but instead will do
> /dev/mapper/system-root. I'd have preferred to have the former, but not
> so much that I want to teach ocfs2console about every DM add-on out there.

	Ahh.  Fabbione and I have put together a different iterator, one
that uses sysfs *and* procfs to find 'live' devices, then matches them
to all possible names in /dev.  He's using it for qdiskd, I'm going to
integrate it with oracleasm-support's scandisks op.  Eventually I was
going to add it to ocfs2console.  With your patch, I was thinking of
leveraging your change to provide better names.

Joel

-- 

Life's Little Instruction Book #450

	"Don't be afraid to say, 'I need help.'"

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list