block: Introduce blk_set_allow_write_beyond_eof()
commitc10c9d96158ce4d05f4325e64c0ce6a5fcd64b8b
authorKevin Wolf <kwolf@redhat.com>
Tue, 8 Mar 2016 15:39:49 +0000 (8 16:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 Mar 2016 15:46:43 +0000 (14 16:46 +0100)
tree537c41c94738b3f151725bbf6f637ce09d0f7d7f
parent6340472c54529c5b703deec3ab0d6bdfe644f11e
block: Introduce blk_set_allow_write_beyond_eof()

We check that the guest can't write beyond the end of its disk, but for
other internal users it can make sense to allow growing a file.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h