OSDN Git Service

block: Set BDRV_O_INCOMING in bdrv_fill_options()
authorMax Reitz <mreitz@redhat.com>
Mon, 19 Oct 2015 15:53:08 +0000 (17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Oct 2015 16:18:22 +0000 (18:18 +0200)
commitd44f928a54497188c25357840a3224925d1b527b
treee3cc8a406f143faae1965ca55f060f77b1e9f0e5
parentf709623b3d30096c629f6a368670c9cf668da83f
block: Set BDRV_O_INCOMING in bdrv_fill_options()

This flag should not be set for the root BDS only, but for any BDS that
is being created while incoming migration is pending, so setting it is
moved from blockdev_init() to bdrv_fill_options().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
blockdev.c