]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Use correct partition names for /dev/mapper
authorStanislav Brabec <sbrabec@suse.cz>
Mon, 25 May 2015 19:17:52 +0000 (21:17 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 26 May 2015 09:42:38 +0000 (11:42 +0200)
commit8b5940be9665b65cf3fcf4b6f3776470cf59509c
tree9608470524b4858494cd4e8054d31875eed16303
parentd0dc6c17c5025639a7beef8d52792932fd8da0fc
Use correct partition names for /dev/mapper

The default configuration of multipath-tools appends "-partN" to
partition nodes. Follow this conventions and do the same.

It fixes for example fdisk -l /dev/mapper/name_of_the_device.

Note that the current implementation only partially fixes the problem. It
does not reflect any udev configuration changes, as udev does not provide
any function to return names of future (or current) partitions of a
particular device. It also does not fix fdisk -l /dev/dm-0.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
libfdisk/src/utils.c