diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2012-10-10 16:59:47 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2012-10-10 16:59:47 +0200 |
commit | 12f5c3f726823d13be561645935d0f77c1334e95 (patch) | |
tree | d463542a96dc76d839085c5d88f339856498ccd2 /libdm/ioctl | |
parent | b0f48b9533b9fd13aaf0ad1bca4cbf68330e60b8 (diff) | |
download | lvm2-12f5c3f726823d13be561645935d0f77c1334e95.tar.gz |
libdm: add dm_task_get_uuid_mangled/unmangled
Just like we already have existing mangling support for
device-mapper names, we need exactly the same for device-mapper
UUIDs as their character whitelist is wider than what udev supports.
In case udev is used to create entries in /dev based on UUIDs
and these UUIDs contain characters not supported by udev,
we'll end up with incorrect /dev content for such devices.
So we need to mangle them to a form that is supported by udev.
The mangling used for UUIDs follows the mangling used for names
(that is already supported and used throughout). That means,
setting the name mangling mode via dm_set_name_mangling_mode
affects mangling used for UUIDs in exactly the same manner.
It would be useless to add a new and separate
dm_set_uuid_mangling_mode fn, we'll reuse existing interface.
Diffstat (limited to 'libdm/ioctl')
-rw-r--r-- | libdm/ioctl/libdm-iface.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c index 526ec3f8f..3166c06f4 100644 --- a/libdm/ioctl/libdm-iface.c +++ b/libdm/ioctl/libdm-iface.c @@ -681,11 +681,6 @@ uint32_t dm_task_get_read_ahead(const struct dm_task *dmt, uint32_t *read_ahead) MINOR(dmt->dmi.v4->dev), read_ahead); } -const char *dm_task_get_uuid(const struct dm_task *dmt) -{ - return (dmt->dmi.v4->uuid); -} - struct dm_deps *dm_task_get_deps(struct dm_task *dmt) { return (struct dm_deps *) (((char *) dmt->dmi.v4) + |