]> git.proxmox.com Git - mirror_qemu.git/commit
blockdev: Introduce DriveInfo.enable_auto_del
authorKevin Wolf <kwolf@redhat.com>
Wed, 18 Sep 2013 13:14:47 +0000 (15:14 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Oct 2013 14:50:01 +0000 (16:50 +0200)
commit2d246f01d374c1a10c48c45aa931aa18f0a56634
tree05ab336e82b1862554ad1ddfdf7f699ed0b67f4c
parent622f557f5aaea1326c94ca4cddfa4eafeade3723
blockdev: Introduce DriveInfo.enable_auto_del

BlockDriverStates shouldn't be affected by an unplugged guest device,
except if created with the legacy -drive command line option or the
drive_add HMP command.

Make the automatic deletion as well as cancelling of jobs conditional on
an enable_auto_del boolean that is only set in drive_init().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
blockdev.c
include/sysemu/blockdev.h