]> xenbits.xensource.com Git - libvirt.git/commit
vbox: Support empty removable drives.
authorDawid Zamirski <dzamirski@datto.com>
Tue, 24 Oct 2017 19:35:30 +0000 (15:35 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 3 Nov 2017 17:15:54 +0000 (13:15 -0400)
commit1bf7e97733ccfe9787570528c591a3b4b551ccb4
treeb29929b623dc39c93543968948d4e40cc8d32146
parente3ecf4b8ce1671db1fd3d2e645223589b1ff8a01
vbox: Support empty removable drives.

Original code was checking for non empty disk source before proceeding
to actually attach disk device to VM. This prevented from creating
empty removable devices like DVD or floppy. Therefore, this patch
re-organizes the loop work-flow to allow such configurations as well as
makes the code follow better libvirt practices. Additionally, adjusted
debug logs to be more helpful - removed old ones and added new which
give more valuable info for troubleshooting.
src/vbox/vbox_common.c