Home
last modified time | relevance | path

Searched refs:file_length (Results 1 – 6 of 6) sorted by relevance

/qemu/block/
H A Dvhdx-log.c498 int64_t file_length; in vhdx_log_flush() local
518 file_length = bdrv_getlength(bs->file->bs); in vhdx_log_flush()
519 if (file_length < 0) { in vhdx_log_flush()
520 ret = file_length; in vhdx_log_flush()
526 if (hdr_tmp.flushed_file_offset > file_length) { in vhdx_log_flush()
878 int64_t file_length; in vhdx_log_write() local
932 file_length = bdrv_co_getlength(bs->file->bs); in vhdx_log_write()
933 if (file_length < 0) { in vhdx_log_write()
934 ret = file_length; in vhdx_log_write()
947 .flushed_file_offset = file_length, in vhdx_log_write()
[all …]
H A Dgluster.c1512 int64_t file_length = qemu_gluster_co_getlength(bs); in qemu_gluster_co_block_status() local
1513 if (file_length > 0) { in qemu_gluster_co_block_status()
1515 assert(hole == file_length); in qemu_gluster_co_block_status()
H A Dqcow2-refcount.c3722 int64_t file_length, real_allocation, real_clusters; in qcow2_detect_metadata_preallocation() local
3726 file_length = bdrv_co_getlength(bs->file->bs); in qcow2_detect_metadata_preallocation()
3727 if (file_length < 0) { in qcow2_detect_metadata_preallocation()
3728 return file_length; in qcow2_detect_metadata_preallocation()
3739 end_cluster = size_to_clusters(s, file_length); in qcow2_detect_metadata_preallocation()
H A Dqcow2.c3250 int64_t file_length; in preallocate_co() local
3288 file_length = bdrv_co_getlength(s->data_file->bs); in preallocate_co()
3289 if (file_length < 0) { in preallocate_co()
3290 error_setg_errno(errp, -file_length, "Could not get file size"); in preallocate_co()
3291 ret = file_length; in preallocate_co()
3295 if (host_offset + cur_bytes > file_length) { in preallocate_co()
H A Dfile-posix.c3225 int64_t file_length = raw_getlength(bs); in raw_co_block_status() local
3226 if (file_length > 0) { in raw_co_block_status()
3228 assert(hole == file_length); in raw_co_block_status()
/qemu/tests/qemu-iotests/
H A D125190 file_length=$(stat -c '%s' "$TEST_IMG_FILE")
191 if [ "$file_length" != "$expected_file_length" ]; then
192 echo "ERROR: file length $file_length (expected $expected_file_length)"