block/null: Support reopen
commit1c2b49a17282f3abd9ccf71b65d0be62d3b3192e
authorFam Zheng <famz@redhat.com>
Wed, 1 Apr 2015 01:45:39 +0000 (1 09:45 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Apr 2015 13:36:09 +0000 (28 15:36 +0200)
tree18a284e0fd4d80d88e745130cb58873be1541487
parente5e51dd3af6a0872dedce290ee41437b5aeed109
block/null: Support reopen

Reopen is used in block-commit. With this always-succeed operation, it
is now possible to test committing to a null drive, by specifying
"null-aio://" or "null-co://" as the backing image when creating the
qcow2 image.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1427852740-24315-3-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/null.c