]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Allow spaces in disk serial
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Feb 2015 11:34:23 +0000 (12:34 +0100)
committerCole Robinson <crobinso@redhat.com>
Tue, 28 Apr 2015 15:06:38 +0000 (11:06 -0400)
commit61ab292139c3212cb230d5e879417fb5aef1bfa0
treee5859344d78682e6259c833b0c375761a735b81b
parent6ae19e709eb5c4b73e618a7efdd94bd2de5b4686
qemu: Allow spaces in disk serial

https://bugzilla.redhat.com/show_bug.cgi?id=1195660

There's been a bug report appearing on the qemu-devel list, that
libvirt is unable to pass spaces in disk serial number [1]. Not only
our RNG schema forbids that, the code is not prepared either. However,
with a bit of escaping (if needed) we can allow spaces there.

1: https://lists.gnu.org/archive/html/qemu-devel/2015-02/msg04041.html

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
(cherry picked from commit 5aee81a0cb60308b8614ee37c0b69c1dde1f00d8)
docs/schemas/domaincommon.rng
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-disk-serial.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-serial.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c