block: Exclude nested options only for children in append_open_options()
commit260fecf13b0d30621dc88da03dc1b502b7358c6b
authorKevin Wolf <kwolf@redhat.com>
Mon, 27 Apr 2015 11:46:22 +0000 (27 13:46 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 18 Dec 2015 13:34:42 +0000 (18 14:34 +0100)
treee5aee1180ee39ce58eaa8aae84f59f09b8e2a243
parent9e700c1ac6337e448e75e66a5753a9d2168d06c2
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>
block.c
include/block/block_int.h