commit | 2d246f01d374c1a10c48c45aa931aa18f0a56634 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Wed Sep 18 15:14:47 2013 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Oct 11 16:50:01 2013 +0200 |
tree | 05ab336e82b1862554ad1ddfdf7f699ed0b67f4c | |
parent | 622f557f5aaea1326c94ca4cddfa4eafeade3723 [diff] |
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>