]> err.no Git - util-linux/commit
blkid: use /sys/block/dm-<N>/dm/name
authorKarel Zak <kzak@redhat.com>
Mon, 27 Apr 2009 12:33:22 +0000 (14:33 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 5 May 2009 19:47:01 +0000 (21:47 +0200)
commit6f52b6e9ae8a02285cab0e19bffc2f599e97f517
treed3d55a551499b8b7833ffd5a4fc350f044da4ac7
parent0e1ae8abce67829ba07ec8de1c4daef152d92846
blkid: use /sys/block/dm-<N>/dm/name

The Linux kernel (since 2.6.29, patch 784aae735d9b0bba3f8b9faef4c8b30df3bf0128)
exports the real DM device names in /sys/block/<ptname>/dm/name.

The sysfs based solution is nicer and faster than scan for devno in
/dev/mapper/.

CC: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/devname.c