block.h (0f01b9fdd4ba0a3d38e26e89e1b1faf1213eb4f1) | block.h (061ca8a368165fae300748c17971824a089f521f) |
---|---|
1#ifndef BLOCK_H 2#define BLOCK_H 3 4#include "block/aio.h" 5#include "qapi/qapi-types-block-core.h" 6#include "block/aio-wait.h" 7#include "qemu/iov.h" 8#include "qemu/coroutine.h" --- 286 unchanged lines hidden (view full) --- 295 * function is not suitable for zeroing the entire image in a single request 296 * because it may allocate memory for the entire region. 297 */ 298int coroutine_fn bdrv_co_pwrite_zeroes(BdrvChild *child, int64_t offset, 299 int bytes, BdrvRequestFlags flags); 300BlockDriverState *bdrv_find_backing_image(BlockDriverState *bs, 301 const char *backing_file); 302void bdrv_refresh_filename(BlockDriverState *bs); | 1#ifndef BLOCK_H 2#define BLOCK_H 3 4#include "block/aio.h" 5#include "qapi/qapi-types-block-core.h" 6#include "block/aio-wait.h" 7#include "qemu/iov.h" 8#include "qemu/coroutine.h" --- 286 unchanged lines hidden (view full) --- 295 * function is not suitable for zeroing the entire image in a single request 296 * because it may allocate memory for the entire region. 297 */ 298int coroutine_fn bdrv_co_pwrite_zeroes(BdrvChild *child, int64_t offset, 299 int bytes, BdrvRequestFlags flags); 300BlockDriverState *bdrv_find_backing_image(BlockDriverState *bs, 301 const char *backing_file); 302void bdrv_refresh_filename(BlockDriverState *bs); |
303 304int coroutine_fn bdrv_co_truncate(BdrvChild *child, int64_t offset, 305 PreallocMode prealloc, Error **errp); |
|
303int bdrv_truncate(BdrvChild *child, int64_t offset, PreallocMode prealloc, 304 Error **errp); | 306int bdrv_truncate(BdrvChild *child, int64_t offset, PreallocMode prealloc, 307 Error **errp); |
308 |
|
305int64_t bdrv_nb_sectors(BlockDriverState *bs); 306int64_t bdrv_getlength(BlockDriverState *bs); 307int64_t bdrv_get_allocated_file_size(BlockDriverState *bs); 308BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts, 309 BlockDriverState *in_bs, Error **errp); 310void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr); 311void bdrv_refresh_limits(BlockDriverState *bs, Error **errp); 312int bdrv_commit(BlockDriverState *bs); --- 363 unchanged lines hidden --- | 309int64_t bdrv_nb_sectors(BlockDriverState *bs); 310int64_t bdrv_getlength(BlockDriverState *bs); 311int64_t bdrv_get_allocated_file_size(BlockDriverState *bs); 312BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts, 313 BlockDriverState *in_bs, Error **errp); 314void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr); 315void bdrv_refresh_limits(BlockDriverState *bs, Error **errp); 316int bdrv_commit(BlockDriverState *bs); --- 363 unchanged lines hidden --- |