block: Simplify append_open_options()
commit261dbcb18f80dad3720209285e2ddd4e1a0b22c3
authorAlberto Garcia <berto@igalia.com>
Fri, 29 Jun 2018 11:37:03 +0000 (29 14:37 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 15 Aug 2018 10:50:39 +0000 (15 12:50 +0200)
tree199d557dcfd9644b7231d913573b1c81213ec549
parent4c8350fe1729b072473417dc22fa6410a4383127
block: Simplify append_open_options()

This function returns a BDS's driver-specific options, excluding also
those from its children. Since we have just removed all children
options from bs->options there's no need to do this last step.

We allow references to children, though ("backing": "node0"), so those
we still have to remove.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c