]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: pass the information when disks are read-only
authorDaniel Veillard <veillard@redhat.com>
Thu, 11 Mar 2010 16:53:49 +0000 (17:53 +0100)
committerDaniel Veillard <veillard@redhat.com>
Mon, 15 Mar 2010 16:03:26 +0000 (17:03 +0100)
commitf92c041a1c26613bbf0c878df441ebcf4c5692eb
tree289f9580ed0a7d468c493dc591a451d7fec062de
parent95a515fc44d85dfdefc81bd931f264569a96ceac
qemu: pass the information when disks are read-only

* src/qemu/qemu_conf.c: add the ",readonly=on" for read-only disks
  and also parse it back in qemuParseCommandLineDisk()
* tests/qemuxml2argvtest.c
  tests/qemuxml2argvdata/qemuxml2argv-disk-drive-readonly-disk.args
  tests/qemuxml2argvdata/qemuxml2argv-disk-drive-readonly-disk.xml:
  add a specific regression test
src/qemu/qemu_conf.c
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-readonly-disk.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-readonly-disk.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c