diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-01-21 17:09:42 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-01-25 18:18:33 +0100 |
commit | 343bded4ecfc467012e2ab675da75749f1d90f70 (patch) | |
tree | 0f39caa49112edd35445fdb3d2c0cb89ac349893 /include/block | |
parent | 8f0720ecbc3677e13fc7531588fc3831cc972ee4 (diff) | |
download | qemu-343bded4ecfc467012e2ab675da75749f1d90f70.zip qemu-343bded4ecfc467012e2ab675da75749f1d90f70.tar.gz qemu-343bded4ecfc467012e2ab675da75749f1d90f70.tar.bz2 |
block: make round_to_clusters public
This is needed in the following patch.
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/block.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h index 678fc60..9ee9068 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -309,6 +309,10 @@ int bdrv_get_flags(BlockDriverState *bs); int bdrv_write_compressed(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors); int bdrv_get_info(BlockDriverState *bs, BlockDriverInfo *bdi); +void bdrv_round_to_clusters(BlockDriverState *bs, + int64_t sector_num, int nb_sectors, + int64_t *cluster_sector_num, + int *cluster_nb_sectors); const char *bdrv_get_encrypted_filename(BlockDriverState *bs); void bdrv_get_backing_filename(BlockDriverState *bs, |