diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2016-03-08 16:39:49 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2016-03-14 16:46:43 +0100 |
| commit | c10c9d96158ce4d05f4325e64c0ce6a5fcd64b8b (patch) | |
| tree | 537c41c94738b3f151725bbf6f637ce09d0f7d7f /include/sysemu/block-backend.h | |
| parent | 6340472c54529c5b703deec3ab0d6bdfe644f11e (diff) | |
| download | focaccia-qemu-c10c9d96158ce4d05f4325e64c0ce6a5fcd64b8b.tar.gz focaccia-qemu-c10c9d96158ce4d05f4325e64c0ce6a5fcd64b8b.zip | |
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>
Diffstat (limited to 'include/sysemu/block-backend.h')
| -rw-r--r-- | include/sysemu/block-backend.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 66c5cf22e1..00d69baa07 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -78,6 +78,7 @@ void blk_insert_bs(BlockBackend *blk, BlockDriverState *bs); void blk_hide_on_behalf_of_hmp_drive_del(BlockBackend *blk); +void blk_set_allow_write_beyond_eof(BlockBackend *blk, bool allow); void blk_iostatus_enable(BlockBackend *blk); bool blk_iostatus_is_enabled(const BlockBackend *blk); BlockDeviceIoStatus blk_iostatus(const BlockBackend *blk); |