| author | Hans de Goede <hdegoede@redhat.com> | |
| Tue, 6 Apr 2010 13:57:18 +0000 (15:57 +0200) | ||
| committer | Jim Meyering <meyering@redhat.com> | |
| Tue, 6 Apr 2010 14:56:54 +0000 (16:56 +0200) | ||
| commit | c1eb485b9fd8919e18f192d678bc52b0488e6ee0 | |
| tree | 0f460ab02cc3cfe31efd78baa90ef8c2ecb6c1c7 | tree | snapshot |
| parent | 5708086e79750a37e21197eaa375e6990d672df2 | commit | diff |
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>.
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 | diff | blob | history | |
| libparted/device.c | diff | blob | history |
