summaryrefslogtreecommitdiffstats
path: root/include/block/block_int.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-04-27 13:46:22 +0200
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:28:20 -0600
commita12b41be7559e0f4c919d09702c5d42debe930e1 (patch)
treee3a52258e174d2b4a032417b70da385b821d467e /include/block/block_int.h
parent5b3d1a702361edcd51a60eb4d27ae0b6f2611197 (diff)
downloadhqemu-a12b41be7559e0f4c919d09702c5d42debe930e1.zip
hqemu-a12b41be7559e0f4c919d09702c5d42debe930e1.tar.gz
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 <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block/block_int.h')
-rw-r--r--include/block/block_int.h1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud