block.h (fe5241bfe3fb61ec3f589ceacd91c1469bfd400f) block.h (e2b8247a322cd92945785edf25f09e6b3e8285f9)
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"

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

429 int nb_sectors, int *pnum,
430 BlockDriverState **file);
431int bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors,
432 int *pnum);
433int bdrv_is_allocated_above(BlockDriverState *top, BlockDriverState *base,
434 int64_t sector_num, int nb_sectors, int *pnum);
435
436bool 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"

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

429 int nb_sectors, int *pnum,
430 BlockDriverState **file);
431int bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors,
432 int *pnum);
433int bdrv_is_allocated_above(BlockDriverState *top, BlockDriverState *base,
434 int64_t sector_num, int nb_sectors, int *pnum);
435
436bool bdrv_is_read_only(BlockDriverState *bs);
437void bdrv_set_read_only(BlockDriverState *bs, bool read_only);
437int bdrv_set_read_only(BlockDriverState *bs, bool read_only, Error **errp);
438bool bdrv_is_sg(BlockDriverState *bs);
439bool bdrv_is_inserted(BlockDriverState *bs);
440int bdrv_media_changed(BlockDriverState *bs);
441void bdrv_lock_medium(BlockDriverState *bs, bool locked);
442void bdrv_eject(BlockDriverState *bs, bool eject_flag);
443const char *bdrv_get_format_name(BlockDriverState *bs);
444BlockDriverState *bdrv_find_node(const char *node_name);
445BlockDeviceInfoList *bdrv_named_nodes_list(Error **errp);

--- 181 unchanged lines hidden ---
438bool bdrv_is_sg(BlockDriverState *bs);
439bool bdrv_is_inserted(BlockDriverState *bs);
440int bdrv_media_changed(BlockDriverState *bs);
441void bdrv_lock_medium(BlockDriverState *bs, bool locked);
442void bdrv_eject(BlockDriverState *bs, bool eject_flag);
443const char *bdrv_get_format_name(BlockDriverState *bs);
444BlockDriverState *bdrv_find_node(const char *node_name);
445BlockDeviceInfoList *bdrv_named_nodes_list(Error **errp);

--- 181 unchanged lines hidden ---