blockdev: enable non-root nodes for backup source
commit930fe17f9900e9c879834f2d2e5c301992623332
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 2 Jul 2018 19:46:29 +0000 (2 15:46 -0400)
committerEric Blake <eblake@redhat.com>
Mon, 2 Jul 2018 20:23:54 +0000 (2 15:23 -0500)
tree0ac6b28082fe6bc5635a0a2de812e01c157f3793
parent8ee1cef4593a7bda076891470c0620e79333c0d0
blockdev: enable non-root nodes for backup source

This is needed to implement the image-fleecing workflow where we
create a temporary node backed by an active node, then start
backupdev-backup sync=none from the active node to the temp node.

In this case, the active node is now a root node AND a backing node,
so it no longer qualifies as a root node, so we loosen the restriction
on which nodes can be considered as the source for a backup.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20180702194630.9360-2-jsnow@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
blockdev.c