1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/libdm/ioctl
Peter Rajnoha 3eb23ab3d2 Replace any '\' char with '\\' in table specification on input.
Device-mapper in kernel uses '\' as escape character so it's better
to double it to avoid any confusion when using existing device names
with '\' in the table specification.

For example:

dmsetup create x --table "0 8 linear /dev/mapper/a\x20b 0"

should pass just fine now without a need to explicitly escape the '\' char
like this:

dmsetup create x --table "0 8 linear /dev/mapper/a\\x20b 0"
2012-02-15 12:17:34 +00:00
..
libdm-iface.c Replace any '\' char with '\\' in table specification on input. 2012-02-15 12:17:34 +00:00
libdm-targets.h Mangle device name on dm_task_set_name/newname call if necessary. 2012-02-15 11:27:01 +00:00