Lines Matching refs:bs
101 commit_top_backing_bs = s->commit_top_bs->backing->bs; in commit_abort()
221 bdrv_commit_top_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in bdrv_commit_top_preadv() argument
224 return bdrv_co_preadv(bs->backing, offset, bytes, qiov, flags); in bdrv_commit_top_preadv()
227 static GRAPH_RDLOCK void bdrv_commit_top_refresh_filename(BlockDriverState *bs) in bdrv_commit_top_refresh_filename() argument
229 pstrcpy(bs->exact_filename, sizeof(bs->exact_filename), in bdrv_commit_top_refresh_filename()
230 bs->backing->bs->filename); in bdrv_commit_top_refresh_filename()
233 static void bdrv_commit_top_child_perm(BlockDriverState *bs, BdrvChild *c, in bdrv_commit_top_child_perm() argument
255 void commit_start(const char *job_id, BlockDriverState *bs, in commit_start() argument
272 assert(top != bs); in commit_start()
298 s = block_job_create(job_id, &commit_job_driver, NULL, bs, 0, BLK_PERM_ALL, in commit_start()
417 trace_commit_start(bs, base, top, s); in commit_start()
452 int bdrv_commit(BlockDriverState *bs) in bdrv_commit() argument
457 BlockDriver *drv = bs->drv; in bdrv_commit()
472 backing_file_bs = bdrv_cow_bs(bs); in bdrv_commit()
478 if (bdrv_op_is_blocked(bs, BLOCK_OP_TYPE_COMMIT_SOURCE, NULL) || in bdrv_commit()
492 ctx = bdrv_get_aio_context(bs); in bdrv_commit()
498 ret = blk_insert_bs(src, bs, &local_err); in bdrv_commit()
513 bdrv_set_backing_hd(bs, commit_top_bs, &error_abort); in bdrv_commit()
554 ret = bdrv_is_allocated(bs, offset, COMMIT_BUF_SIZE, &n); in bdrv_commit()
588 if (bdrv_cow_bs(bs) != backing_file_bs) { in bdrv_commit()
589 bdrv_set_backing_hd(bs, backing_file_bs, &error_abort); in bdrv_commit()