Lines Matching refs:bs
80 BlockDriverState *bs = bds_tree_init(qdict, &local_err); in hmp_drive_add_node() local
81 if (!bs) { in hmp_drive_add_node()
86 bdrv_set_monitor_owned(bs); in hmp_drive_add_node()
143 BlockDriverState *bs; in hmp_drive_del() local
149 bs = bdrv_find_node(id); in hmp_drive_del()
150 if (bs) { in hmp_drive_del()
170 bs = blk_bs(blk); in hmp_drive_del()
171 if (bs) { in hmp_drive_del()
172 if (bdrv_op_is_blocked(bs, BLOCK_OP_TYPE_DRIVE_DEL, &local_err)) { in hmp_drive_del()
208 BlockDriverState *bs; in hmp_commit() local
216 bs = bdrv_skip_implicit_filters(blk_bs(blk)); in hmp_commit()
223 ret = bdrv_commit(bs); in hmp_commit()
549 BlockDriverState *bs = NULL; in hmp_qemu_io() local
565 bs = bdrv_lookup_bs(NULL, device, &err); in hmp_qemu_io()
566 if (!bs) { in hmp_qemu_io()
572 if (bs) { in hmp_qemu_io()
573 blk = local_blk = blk_new(bdrv_get_aio_context(bs), 0, BLK_PERM_ALL); in hmp_qemu_io()
574 ret = blk_insert_bs(blk, bs, &err); in hmp_qemu_io()
857 BlockDriverState *bs, *bs1; in hmp_info_snapshots() local
885 bs = bdrv_all_find_vmstate_bs(NULL, false, NULL, &err); in hmp_info_snapshots()
886 if (!bs) { in hmp_info_snapshots()
891 nb_sns = bdrv_snapshot_list(bs, &sn_tab); in hmp_info_snapshots()