block.h (eb2c66b10efd2b914b56b20ae90655914310c925) block.h (e54ee1b385a9d084b4052b6db7391ea2fd799fa8)
1#ifndef BLOCK_H
2#define BLOCK_H
3
4#include "block/aio.h"
5#include "block/aio-wait.h"
6#include "qemu/iov.h"
7#include "qemu/coroutine.h"
8#include "block/accounting.h"

--- 391 unchanged lines hidden (view full) ---

400int64_t bdrv_getlength(BlockDriverState *bs);
401int64_t bdrv_get_allocated_file_size(BlockDriverState *bs);
402BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts,
403 BlockDriverState *in_bs, Error **errp);
404void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr);
405void bdrv_refresh_limits(BlockDriverState *bs, Error **errp);
406int bdrv_commit(BlockDriverState *bs);
407int bdrv_make_empty(BdrvChild *c, Error **errp);
1#ifndef BLOCK_H
2#define BLOCK_H
3
4#include "block/aio.h"
5#include "block/aio-wait.h"
6#include "qemu/iov.h"
7#include "qemu/coroutine.h"
8#include "block/accounting.h"

--- 391 unchanged lines hidden (view full) ---

400int64_t bdrv_getlength(BlockDriverState *bs);
401int64_t bdrv_get_allocated_file_size(BlockDriverState *bs);
402BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts,
403 BlockDriverState *in_bs, Error **errp);
404void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr);
405void bdrv_refresh_limits(BlockDriverState *bs, Error **errp);
406int bdrv_commit(BlockDriverState *bs);
407int bdrv_make_empty(BdrvChild *c, Error **errp);
408int bdrv_change_backing_file(BlockDriverState *bs,
409 const char *backing_file, const char *backing_fmt);
408int bdrv_change_backing_file(BlockDriverState *bs, const char *backing_file,
409 const char *backing_fmt, bool warn);
410void bdrv_register(BlockDriver *bdrv);
411int bdrv_drop_intermediate(BlockDriverState *top, BlockDriverState *base,
412 const char *backing_file_str);
413BlockDriverState *bdrv_find_overlay(BlockDriverState *active,
414 BlockDriverState *bs);
415BlockDriverState *bdrv_find_base(BlockDriverState *bs);
416bool bdrv_is_backing_chain_frozen(BlockDriverState *bs, BlockDriverState *base,
417 Error **errp);

--- 375 unchanged lines hidden ---
410void bdrv_register(BlockDriver *bdrv);
411int bdrv_drop_intermediate(BlockDriverState *top, BlockDriverState *base,
412 const char *backing_file_str);
413BlockDriverState *bdrv_find_overlay(BlockDriverState *active,
414 BlockDriverState *bs);
415BlockDriverState *bdrv_find_base(BlockDriverState *bs);
416bool bdrv_is_backing_chain_frozen(BlockDriverState *bs, BlockDriverState *base,
417 Error **errp);

--- 375 unchanged lines hidden ---