[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] libdevmapper's handling of devices with spaces in the name



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.

-- 
Peter


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]