OSDN Git Service

block: Assert no write requests under BDRV_O_INCOMING
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 Dec 2015 13:00:36 +0000 (14:00 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Jan 2016 12:36:23 +0000 (13:36 +0100)
commit09e0c771e47e02278c264bafff6bfc0771732d72
tree1825203d583618b74bd7e2b493d1d51fce0840eb
parentb527c9b392a87abff698ca435da0dfa2bd6324a2
block: Assert no write requests under BDRV_O_INCOMING

As long as BDRV_O_INCOMING is set, the image file is only opened so we
have a file descriptor for it. We're definitely not supposed to modify
the image, it's still owned by the migration source.

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