]> err.no Git - util-linux/commit
blkid: use /dev/mapper/<name> rather than /dev/dm-<N>
authorKarel Zak <kzak@redhat.com>
Tue, 5 May 2009 19:40:19 +0000 (21:40 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 5 May 2009 19:42:29 +0000 (21:42 +0200)
commit0e1ae8abce67829ba07ec8de1c4daef152d92846
treeb46508dc6af70ba86c8d74c1c73c7a9b91e871a9
parent4884729a6e5c2dbd0c7cdf356a86543525e43661
blkid: use /dev/mapper/<name> rather than /dev/dm-<N>

The libblkid (since v1.41.1) returns private device-mapper names (e.g.
/dev/dm-0). It's because the probe_one() function scans /dev before
/dev/mapper.

brw-rw---- 1 root disk 253, 0 2009-04-27 13:41 /dev/dm-0
brw-rw---- 1 root disk 253, 0 2009-04-27 13:41 /dev/mapper/TestVolGroup-TestLogVolume

Old version:
  # blkid -t LABEL="TEST-LABEL" -o device
  /dev/dm-0

Fixed version:
  # blkid -t LABEL="TEST-LABEL" -o device
  /dev/mapper/TestVolGroup-TestLogVolume

Addresses-Red-Hat-Bug: #497259
Signed-off-by: Karel Zak <kzak@redhat.com>
libs/blkid/src/devname.c