]> sourceware.org Git - lvm2.git/commit
Replace any '\' char with '\\' in table specification on input.
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 15 Feb 2012 12:17:34 +0000 (12:17 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 15 Feb 2012 12:17:34 +0000 (12:17 +0000)
commit3eb23ab3d26925ec84308afa23080a77ef3333f7
tree8fd5555b00f4879e56209987aab4e70f0b223db9
parent4491acea0b09816e244c29a7f18592e3d3737e26
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"
WHATS_NEW_DM
libdm/ioctl/libdm-iface.c
This page took 0.027259 seconds and 5 git commands to generate.