mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 22:18:23 +00:00
Add flag to indicate external users to block device
Certain operations such as drive_del or resize cannot be performed while external users (eg. block migration) reference the block device. Add a flag to indicate that. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
committed by
Kevin Wolf
parent
f48905d44f
commit
db593f2565
@@ -199,6 +199,7 @@ struct BlockDriverState {
|
||||
char device_name[32];
|
||||
unsigned long *dirty_bitmap;
|
||||
int64_t dirty_count;
|
||||
int in_use; /* users other than guest access, eg. block migration */
|
||||
QTAILQ_ENTRY(BlockDriverState) list;
|
||||
void *private;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user