Lines Matching refs:data_file

1648             s->data_file = NULL;  in qcow2_do_open()
1650 s->data_file = bs->file; in qcow2_do_open()
1657 s->data_file = bdrv_co_open_child(NULL, options, "data-file", bs, in qcow2_do_open()
1667 if (!s->data_file && s->image_data_file) { in qcow2_do_open()
1669 s->data_file = bdrv_co_open_child(s->image_data_file, options, in qcow2_do_open()
1674 if (!s->data_file) { in qcow2_do_open()
1679 if (!s->data_file) { in qcow2_do_open()
1691 if (s->data_file) { in qcow2_do_open()
1698 s->data_file = bs->file; in qcow2_do_open()
1898 bdrv_co_unref_child(bs, s->data_file); in qcow2_do_open()
1900 s->data_file = NULL; in qcow2_do_open()
2031 assert(s->data_file == state->bs->file); in qcow2_reopen_prepare()
2032 s->data_file = NULL; in qcow2_reopen_prepare()
2050 if (!s->data_file) { in qcow2_reopen_commit()
2055 s->data_file = state->bs->file; in qcow2_reopen_commit()
2086 if (!s->data_file) { in qcow2_reopen_abort()
2091 s->data_file = state->bs->file; in qcow2_reopen_abort()
2175 *file = s->data_file->bs; in qcow2_co_block_status()
2251 buf = qemu_try_blockalign(s->data_file->bs, bytes); in qcow2_co_preadv_encrypted()
2257 ret = bdrv_co_pread(s->data_file, host_offset, bytes, buf, 0); in qcow2_co_preadv_encrypted()
2361 return bdrv_co_preadv_part(s->data_file, host_offset, in qcow2_co_preadv_task()
2534 if (!(s->data_file->bs->supported_zero_flags & BDRV_REQ_NO_FALLBACK)) { in handle_alloc_space()
2571 ret = bdrv_co_pwrite_zeroes(s->data_file, start_offset, nb_bytes, in handle_alloc_space()
2637 ret = bdrv_co_pwritev_part(s->data_file, host_offset, in qcow2_co_pwritev_task()
2825 bdrv_unref_child(bs, s->data_file); in qcow2_do_close()
2827 s->data_file = NULL; in qcow2_do_close()
2848 BdrvChild *data_file; in qcow2_co_invalidate_cache() local
2871 data_file = s->data_file; in qcow2_co_invalidate_cache()
2873 s->data_file = data_file; in qcow2_co_invalidate_cache()
3302 file_length = bdrv_co_getlength(s->data_file->bs); in preallocate_co()
3313 ret = bdrv_co_truncate(s->data_file, host_offset + cur_bytes, false, in preallocate_co()
3630 if (qcow2_opts->data_file_raw && !qcow2_opts->data_file) { in qcow2_co_create()
3664 if (qcow2_opts->data_file) { in qcow2_co_create()
3672 data_bs = bdrv_co_open_blockdev_ref(qcow2_opts->data_file, errp); in qcow2_co_create()
4202 child = s->data_file; in qcow2_co_copy_range_from()
4269 ret = bdrv_co_copy_range_to(src, src_offset, s->data_file, host_offset, in qcow2_co_copy_range_to()
4434 ret = bdrv_co_truncate(s->data_file, offset, exact, prealloc, 0, in qcow2_co_truncate()
4725 BLKDBG_CO_EVENT(s->data_file, BLKDBG_WRITE_COMPRESSED); in qcow2_co_pwritev_compressed_task()
4726 ret = bdrv_co_pwrite(s->data_file, cluster_offset, out_len, out_buf, 0); in qcow2_co_pwritev_compressed_task()
5294 .data_file = g_strdup(s->image_data_file), in qcow2_get_specific_info()
5354 return bdrv_has_zero_init(s->data_file->bs); in qcow2_has_zero_init()
5693 const char *backing_file = NULL, *backing_format = NULL, *data_file = NULL; in qcow2_amend_options() local
5755 data_file = qemu_opt_get(opts, BLOCK_OPT_DATA_FILE); in qcow2_amend_options()
5756 if (data_file && !has_data_file(bs)) { in qcow2_amend_options()
5849 if (data_file) { in qcow2_amend_options()
5851 s->image_data_file = *data_file ? g_strdup(data_file) : NULL; in qcow2_amend_options()