[Ocfs2-tools-devel] adding code to mounted.c to translate /dev/dm-[N] names to /dev/mapper/xxx names.

XiaoweiHu xiaowei.hu at ORACLE.COM
Tue Dec 1 23:20:16 PST 2009


Hi,

The "mounted.ocfs2 -d" command shows /dev/dm-[N] names for device mapped devices.As we know the dm-[N] names are internal to device mapper and should never be used by users.the /dev/mapper/xxx devices are persistent and they are created early in the boot process.the "mounted.ocfs2 -d" command read partitions list from /proc/partitions,which used the dm-[N] names,so add some code in mounted.c to translate those name to /dev/mapper/xxx names according to the device number.





More information about the Ocfs2-tools-devel mailing list