[linux-lvm] libdevmapper's handling of devices with spaces in the name
prajnoha at redhat.com
Thu Feb 27 09:08:30 UTC 2014
On 02/26/2014 11:17 PM, Phillip Susi wrote:
> I'm trying to fix parted to not fail on such devices. As I said
> originally it fails because it calls dm_task_get_name() to find out
> the true /dev/mapper/ name of the device, so that it can add the
> partition number to it and be able to open the partition. Now that I
> look at the comment in the headers, it sounds like perhaps it just
> should be using dm_task_get_name_mangled() instead.
Yes, you can call that fn to get the name in its actual "mangled" form
as it appears in /dev/mapper.
More information about the linux-lvm