]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Convert USB disks over to -device
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 14 Dec 2009 19:15:05 +0000 (19:15 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 18 Jan 2010 13:55:56 +0000 (13:55 +0000)
commit73370e9868346d170e67ee908d5fa8fa9e0c9f99
tree1a72ac60b0aec131d0b147864d8f6cccbdee4a7f
parent1dd6f855c37a008caa20300c5388fb11c836c1fd
Convert USB disks over to -device

The previous syntax was severely limited in its options

  -usbdevice disk:/home/berrange/output.img

The new syntax is the same as for other disk types

  -drive file=/home/berrange/output.img,if=none,id=usb-1,index=1
  -device usb-storage,drive=usb-1

Again, the index= arg is wrong here, and will be removed in a
later merge
src/qemu/qemu_conf.c
tests/qemuxml2argvdata/qemuxml2argv-disk-usb-device.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-usb-device.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c