]> git.proxmox.com Git - qemu-server.git/commit
virtio disk hot-unplug: drive_del after device_del
authorAlexandre Derumier <aderumier@odiso.com>
Wed, 6 Mar 2013 15:22:43 +0000 (16:22 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Mar 2013 07:37:49 +0000 (08:37 +0100)
commit1f219ef546eea5fb728c93d99973dbd1c183457b
tree12151539507a450d50872251b67ec00b17e2f811
parent750886f87a9918c4471c7ce216b5b3689053e5a7
virtio disk hot-unplug: drive_del after device_del

we need to remove drive after device has correctly by remove.

With this patch:

Windows : if drive is locked/"mounted", the hot-unplug fail and disk is accessible (100% safe)

Linux: without hotplug module : the hot-unplug fail and disk is accessible (100% safe)

Linux : with hotplug module : the hot-unplug work, but no verification is done is the drive is mounted

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm