block: Fix write/resize permissions for inactive images
commit9c5e6594f15b7364624a3ad40306c396c93a2145
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 May 2017 16:52:40 +0000 (4 18:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 11 May 2017 10:08:24 +0000 (11 12:08 +0200)
tree61a8a8ad77a1ff3f54a091098070e56df04dc122
parent38701b6aef5e934c5901905e8ca2c50453088a81
block: Fix write/resize permissions for inactive images

Format drivers for inactive nodes don't need write/resize permissions on
their bs->file and can share write/resize with another VM (in fact, this
is the whole point of keeping images inactive). Represent this fact in
the op blocker system, so that image locking does the right thing
without special-casing inactive images.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c
include/block/block.h