From 145f598e4a96f6bb78664852bd589e4ea326be94 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Fri, 8 May 2015 16:15:03 +0200 Subject: block: Introduce bs->explicit_options bs->options doesn't only contain options that the user explicitly requested, but also option that were derived from flags, the filename or inherited from the parent node. For reopen, it is important to know the difference because reopening the parent can change inherited values in child nodes, but it shouldn't change any options that were explicitly specified for the child. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- include/block/block.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/block/block.h') diff --git a/include/block/block.h b/include/block/block.h index 2e77288d82..121544b3c3 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -150,6 +150,7 @@ typedef struct BDRVReopenState { BlockDriverState *bs; int flags; QDict *options; + QDict *explicit_options; void *opaque; } BDRVReopenState; -- cgit v1.2.3