Lines Matching refs:bs

24 static int blkreplay_open(BlockDriverState *bs, QDict *options, int flags,  in blkreplay_open()  argument
30 ret = bdrv_open_file_child(NULL, options, "image", bs, errp); in blkreplay_open()
35 bs->supported_write_flags = BDRV_REQ_WRITE_UNCHANGED; in blkreplay_open()
36 bs->supported_zero_flags = BDRV_REQ_WRITE_UNCHANGED; in blkreplay_open()
44 blkreplay_co_getlength(BlockDriverState *bs) in blkreplay_co_getlength() argument
46 return bdrv_co_getlength(bs->file->bs); in blkreplay_co_getlength()
62 static void block_request_create(uint64_t reqid, BlockDriverState *bs, in block_request_create() argument
68 .bh = aio_bh_new(bdrv_get_aio_context(bs), blkreplay_bh_cb, req), in block_request_create()
74 blkreplay_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkreplay_co_preadv() argument
78 int ret = bdrv_co_preadv(bs->file, offset, bytes, qiov, flags); in blkreplay_co_preadv()
79 block_request_create(reqid, bs, qemu_coroutine_self()); in blkreplay_co_preadv()
86 blkreplay_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkreplay_co_pwritev() argument
90 int ret = bdrv_co_pwritev(bs->file, offset, bytes, qiov, flags); in blkreplay_co_pwritev()
91 block_request_create(reqid, bs, qemu_coroutine_self()); in blkreplay_co_pwritev()
98 blkreplay_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkreplay_co_pwrite_zeroes() argument
102 int ret = bdrv_co_pwrite_zeroes(bs->file, offset, bytes, flags); in blkreplay_co_pwrite_zeroes()
103 block_request_create(reqid, bs, qemu_coroutine_self()); in blkreplay_co_pwrite_zeroes()
110 blkreplay_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in blkreplay_co_pdiscard() argument
113 int ret = bdrv_co_pdiscard(bs->file, offset, bytes); in blkreplay_co_pdiscard()
114 block_request_create(reqid, bs, qemu_coroutine_self()); in blkreplay_co_pdiscard()
120 static int coroutine_fn GRAPH_RDLOCK blkreplay_co_flush(BlockDriverState *bs) in blkreplay_co_flush() argument
123 int ret = bdrv_co_flush(bs->file->bs); in blkreplay_co_flush()
124 block_request_create(reqid, bs, qemu_coroutine_self()); in blkreplay_co_flush()
130 static int blkreplay_snapshot_goto(BlockDriverState *bs, in blkreplay_snapshot_goto() argument
136 file_bs = bs->file->bs; in blkreplay_snapshot_goto()