Home
last modified time | relevance | path

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

/qemu/block/
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 …]
A Dgluster.c1511 int64_t file_length = qemu_gluster_co_getlength(bs); in qemu_gluster_co_block_status() local
1512 if (file_length > 0) { in qemu_gluster_co_block_status()
1514 assert(hole == file_length); in qemu_gluster_co_block_status()
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()
A Dqcow2.c3264 int64_t file_length; in preallocate_co() local
3302 file_length = bdrv_co_getlength(s->data_file->bs); in preallocate_co()
3303 if (file_length < 0) { in preallocate_co()
3304 error_setg_errno(errp, -file_length, "Could not get file size"); in preallocate_co()
3305 ret = file_length; in preallocate_co()
3309 if (host_offset + cur_bytes > file_length) { in preallocate_co()
A Dfile-posix.c3233 int64_t file_length = raw_getlength(bs); in raw_co_block_status() local
3234 if (file_length > 0) { in raw_co_block_status()
3236 assert(hole == file_length); in raw_co_block_status()
/qemu/tests/qemu-iotests/
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)"

Completed in 42 milliseconds