[kpartx] Use mapname for device-mapper devices
authorHannes Reinecke <hare@suse.de>
Wed, 16 May 2007 07:35:35 +0000 (09:35 +0200)
committerChristophe Varoqui <cvaroqui@zezette.localdomain>
Mon, 21 May 2007 21:20:21 +0000 (23:20 +0200)
commit6808876ea090158ce83984f2ec63a714fe6ec336
tree2cf663ad98909485a6d3926bab8a1cecec666965
parent211995dc42592b16103f04c90e4479712830344e
[kpartx] Use mapname for device-mapper devices

When kpartx is run on a device-mapper device it makes more sense
to use the mapname for generating the device name, not the supplied
commandline arguments. This way we can run kpartx on '/dev/dm-X'
and still get sensible names.

Signed-off-by: Hannes Reinecke <hare@suse.de>
kpartx/kpartx.c