block.h (8ee5f9b3ecc94e3eb7a8235f4b2c3ec9024807f6) block.h (148eb13c84cccd0eedd6e59f90e0151bd7bac9fa)
1#ifndef BLOCK_H
2#define BLOCK_H
3
4#include "block/aio.h"
5#include "qemu/iov.h"
6#include "qemu/option.h"
7#include "qemu/coroutine.h"
8#include "block/accounting.h"

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

430 int nb_sectors, int *pnum,
431 BlockDriverState **file);
432int bdrv_is_allocated(BlockDriverState *bs, int64_t offset, int64_t bytes,
433 int64_t *pnum);
434int bdrv_is_allocated_above(BlockDriverState *top, BlockDriverState *base,
435 int64_t offset, int64_t bytes, int64_t *pnum);
436
437bool bdrv_is_read_only(BlockDriverState *bs);
1#ifndef BLOCK_H
2#define BLOCK_H
3
4#include "block/aio.h"
5#include "qemu/iov.h"
6#include "qemu/option.h"
7#include "qemu/coroutine.h"
8#include "block/accounting.h"

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

430 int nb_sectors, int *pnum,
431 BlockDriverState **file);
432int bdrv_is_allocated(BlockDriverState *bs, int64_t offset, int64_t bytes,
433 int64_t *pnum);
434int bdrv_is_allocated_above(BlockDriverState *top, BlockDriverState *base,
435 int64_t offset, int64_t bytes, int64_t *pnum);
436
437bool bdrv_is_read_only(BlockDriverState *bs);
438bool bdrv_is_writable(BlockDriverState *bs);
439int bdrv_can_set_read_only(BlockDriverState *bs, bool read_only,
440 bool ignore_allow_rdw, Error **errp);
441int bdrv_set_read_only(BlockDriverState *bs, bool read_only, Error **errp);
442bool bdrv_is_sg(BlockDriverState *bs);
443bool bdrv_is_inserted(BlockDriverState *bs);
444void bdrv_lock_medium(BlockDriverState *bs, bool locked);
445void bdrv_eject(BlockDriverState *bs, bool eject_flag);
446const char *bdrv_get_format_name(BlockDriverState *bs);

--- 179 unchanged lines hidden ---
438int bdrv_can_set_read_only(BlockDriverState *bs, bool read_only,
439 bool ignore_allow_rdw, Error **errp);
440int bdrv_set_read_only(BlockDriverState *bs, bool read_only, Error **errp);
441bool bdrv_is_sg(BlockDriverState *bs);
442bool bdrv_is_inserted(BlockDriverState *bs);
443void bdrv_lock_medium(BlockDriverState *bs, bool locked);
444void bdrv_eject(BlockDriverState *bs, bool eject_flag);
445const char *bdrv_get_format_name(BlockDriverState *bs);

--- 179 unchanged lines hidden ---