block.h (8574575f90e73ec93c2ef4bda4ae41c92fc8e644) | block.h (fbe40ff780564526e6f639b3b78366727d34955c) |
---|---|
1#ifndef BLOCK_H 2#define BLOCK_H 3 4#include "block/aio.h" 5#include "qemu-common.h" 6#include "qemu/option.h" 7#include "block/coroutine.h" 8#include "qapi/qmp/qobject.h" --- 461 unchanged lines hidden (view full) --- 470void bdrv_enable_copy_on_read(BlockDriverState *bs); 471void bdrv_disable_copy_on_read(BlockDriverState *bs); 472 473void bdrv_ref(BlockDriverState *bs); 474void bdrv_unref(BlockDriverState *bs); 475void bdrv_set_in_use(BlockDriverState *bs, int in_use); 476int bdrv_in_use(BlockDriverState *bs); 477 | 1#ifndef BLOCK_H 2#define BLOCK_H 3 4#include "block/aio.h" 5#include "qemu-common.h" 6#include "qemu/option.h" 7#include "block/coroutine.h" 8#include "qapi/qmp/qobject.h" --- 461 unchanged lines hidden (view full) --- 470void bdrv_enable_copy_on_read(BlockDriverState *bs); 471void bdrv_disable_copy_on_read(BlockDriverState *bs); 472 473void bdrv_ref(BlockDriverState *bs); 474void bdrv_unref(BlockDriverState *bs); 475void bdrv_set_in_use(BlockDriverState *bs, int in_use); 476int bdrv_in_use(BlockDriverState *bs); 477 |
478bool bdrv_op_is_blocked(BlockDriverState *bs, BlockOpType op, Error **errp); 479void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason); 480void bdrv_op_unblock(BlockDriverState *bs, BlockOpType op, Error *reason); 481void bdrv_op_block_all(BlockDriverState *bs, Error *reason); 482void bdrv_op_unblock_all(BlockDriverState *bs, Error *reason); 483bool bdrv_op_blocker_is_empty(BlockDriverState *bs); 484 |
|
478#ifdef CONFIG_LINUX_AIO 479int raw_get_aio_fd(BlockDriverState *bs); 480#else 481static inline int raw_get_aio_fd(BlockDriverState *bs) 482{ 483 return -ENOTSUP; 484} 485#endif --- 86 unchanged lines hidden --- | 485#ifdef CONFIG_LINUX_AIO 486int raw_get_aio_fd(BlockDriverState *bs); 487#else 488static inline int raw_get_aio_fd(BlockDriverState *bs) 489{ 490 return -ENOTSUP; 491} 492#endif --- 86 unchanged lines hidden --- |