From 260fecf13b0d30621dc88da03dc1b502b7358c6b Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 27 Apr 2015 13:46:22 +0200 Subject: block: Exclude nested options only for children in append_open_options() Some drivers have nested options (e.g. blkdebug rule arrays), which don't belong to a child node and shouldn't be removed. Don't remove all options with "." in their name, but check for the complete prefixes of actually existing child nodes. Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- include/block/block_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/block') diff --git a/include/block/block_int.h b/include/block/block_int.h index c2ce965..0284f81 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -351,6 +351,7 @@ extern const BdrvChildRole child_format; struct BdrvChild { BlockDriverState *bs; + char *name; const BdrvChildRole *role; QLIST_ENTRY(BdrvChild) next; QLIST_ENTRY(BdrvChild) next_parent; -- cgit v1.1