[linux-lvm] libdevmapper's handling of devices with spaces in the name
psusi at ubuntu.com
Wed Feb 26 18:37:24 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
On 2/26/2014 1:21 PM, Zdenek Kabelac wrote:
> This is no longer true for 'modern' systems with udev.
> libdevmapper no longer creates any /dev nodes - it's all job for
> And udev has had in dark ages the idea to use 'space' as a
> separator for device names in device list. Thus it 'invented'
> escaping/mangling names. (There are more prohibited characters
> which used to be used for normal device names (see man dmsetup
> If you have system without udev - you could disable name mangling
> on i.e. dmsetup cmdline.
So it is doing this to try and work around a bug in udev. Has this
been fixed in modern udev and should be safe to disable? It doesn't
seem to work for me when I do with udev 204: I end up with
> There is also envvar DM_DEFAULT_NAME_MANGLING_MODE_ENV_VAR_NAME
> which could be used to set prefered behavior.
> So there is no bug in libdm side - but I'll not comment on the
The bug in libdm is that it is lieing to the calling application about
the name of the device, claiming it is not escaped, when in fact, it
is. Or is dm_task_get_name() supposed to return a human readable
string rather than the actual file name? If that is the case, how to
get the actual file name instead?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the linux-lvm