Lines Matching refs:bs

671 static int collect_image_check(BlockDriverState *bs,  in collect_image_check()  argument
680 ret = bdrv_check(bs, &result, fix); in collect_image_check()
686 check->format = g_strdup(bdrv_get_format_name(bs)); in collect_image_check()
725 BlockDriverState *bs; in img_check() local
825 bs = blk_bs(blk); in img_check()
828 ret = collect_image_check(bs, check, filename, fmt, fix); in img_check()
857 ret = collect_image_check(bs, check, filename, fmt, 0); in img_check()
901 BlockDriverState *bs; member
956 BlockDriverState *bs, *base_bs; in img_commit() local
1047 bs = blk_bs(blk); in img_commit()
1054 base_bs = bdrv_find_backing_image(bs, base); in img_commit()
1066 base_bs = bdrv_backing_chain_next(bs); in img_commit()
1077 .bs = bs, in img_commit()
1080 commit_active_start("commit", bs, base_bs, JOB_DEFAULT, rate_limit, in img_commit()
1092 bdrv_ref(bs); in img_commit()
1105 old_backing_blk = blk_new_with_bs(bs, BLK_PERM_WRITE, BLK_PERM_ALL, in img_commit()
1122 bdrv_unref(bs); in img_commit()
2818 static void dump_snapshots(BlockDriverState *bs) in dump_snapshots() argument
2823 nb_sns = bdrv_snapshot_list(bs, &sn_tab); in dump_snapshots()
2936 BlockDriverState *bs; in collect_image_info_list() local
2952 bs = blk_bs(blk); in collect_image_info_list()
2962 bdrv_query_block_graph_info(bs, &info, &err); in collect_image_info_list()
3143 static int get_block_status(BlockDriverState *bs, int64_t offset, in get_block_status() argument
3163 bs = bdrv_skip_filters(bs); in get_block_status()
3164 ret = bdrv_block_status(bs, offset, bytes, &bytes, &map, &file); in get_block_status()
3172 bs = bdrv_cow_bs(bs); in get_block_status()
3173 if (bs == NULL) { in get_block_status()
3232 BlockDriverState *bs; in img_map() local
3319 bs = blk_bs(blk); in img_map()
3341 ret = get_block_status(bs, offset, n, &next); in img_map()
3379 BlockDriverState *bs; in img_snapshot() local
3473 bs = blk_bs(blk); in img_snapshot()
3478 dump_snapshots(bs); in img_snapshot()
3490 ret = bdrv_snapshot_create(bs, &sn); in img_snapshot()
3500 ret = bdrv_snapshot_goto(bs, snapshot_name, &err); in img_snapshot()
3509 ret = bdrv_snapshot_find(bs, &sn, snapshot_name); in img_snapshot()
3515 ret = bdrv_snapshot_delete(bs, sn.id_str, sn.name, &err); in img_snapshot()
3539 BlockDriverState *bs = NULL, *prefix_chain_bs = NULL; in img_rebase() local
3670 bs = blk_bs(blk); in img_rebase()
3673 unfiltered_bs = bdrv_skip_filters(bs); in img_rebase()
3745 bdrv_refresh_filename(bs); in img_rebase()
3747 overlay_filename = bs->exact_filename[0] ? bs->exact_filename in img_rebase()
3748 : bs->filename; in img_rebase()
3765 prefix_chain_bs = bdrv_find_backing_image(bs, out_real_path); in img_rebase()
3833 bdrv_get_backing_filename(bs, backing_name, in img_rebase()
4206 static void amend_status_cb(BlockDriverState *bs, in amend_status_cb() argument
4252 BlockDriverState *bs = NULL; in img_amend() local
4347 bs = blk_bs(blk); in img_amend()
4349 fmt = bs->drv->format_name; in img_amend()
4358 if (!bs->drv->bdrv_amend_options) { in img_amend()
4367 assert(bs->drv->amend_opts); in img_amend()
4369 amend_opts = qemu_opts_append(amend_opts, bs->drv->amend_opts); in img_amend()
4373 amend_opts = qemu_opts_append(amend_opts, bs->drv->create_opts); in img_amend()
4389 ret = bdrv_amend_options(bs, opts, &amend_status_cb, NULL, force, &err); in img_amend()
4782 BlockDriverState *bs = NULL, *src_bs = NULL; in img_bitmap() local
4918 bs = blk_bs(blk); in img_bitmap()
4927 src_bs = bs; in img_bitmap()
4933 qmp_block_dirty_bitmap_add(bs->node_name, bitmap, in img_bitmap()
4939 qmp_block_dirty_bitmap_remove(bs->node_name, bitmap, &err); in img_bitmap()
4943 qmp_block_dirty_bitmap_clear(bs->node_name, bitmap, &err); in img_bitmap()
4947 qmp_block_dirty_bitmap_enable(bs->node_name, bitmap, &err); in img_bitmap()
4951 qmp_block_dirty_bitmap_disable(bs->node_name, bitmap, &err); in img_bitmap()
4955 do_dirty_bitmap_merge(bs->node_name, bitmap, src_bs->node_name, in img_bitmap()