libparted: don't canonicalize /dev/mapper paths
authorHans de Goede <hdegoede@redhat.com>
Tue, 6 Apr 2010 13:57:18 +0000 (15:57 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 6 Apr 2010 14:56:54 +0000 (16:56 +0200)
commitc1eb485b9fd8919e18f192d678bc52b0488e6ee0
tree0f460ab02cc3cfe31efd78baa90ef8c2ecb6c1c7
parent5708086e79750a37e21197eaa375e6990d672df2
libparted: don't canonicalize /dev/mapper paths

Besides fixing the issue displayed by libparted/tests/symlink.c,
this has the added advantage that the output of parted p on one of these
devices now says:
"Disk /dev/mapper/BigVol2-lv_iscsi_disk2: 34.4GB"

Which is a lot more user friendly then the output before this patch:
"Disk /dev/dm-6: 34.4GB"

* libparted/device.c (ped_device_get): Don't canonicalize names
that start with "/dev/mapper/".
* NEWS (Bug fixes): Mention it.
Thanks to Ales Kozumplik for the analysis.
Details in <http://bugzilla.redhat.com/577824>.
NEWS
libparted/device.c