Searched refs:file_length (Results 1 – 6 of 6) sorted by relevance
498 int64_t file_length; in vhdx_log_flush() local518 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() local932 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 …]
1512 int64_t file_length = qemu_gluster_co_getlength(bs); in qemu_gluster_co_block_status() local1513 if (file_length > 0) { in qemu_gluster_co_block_status()1515 assert(hole == file_length); in qemu_gluster_co_block_status()
3722 int64_t file_length, real_allocation, real_clusters; in qcow2_detect_metadata_preallocation() local3726 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()
3250 int64_t file_length; in preallocate_co() local3288 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()
3225 int64_t file_length = raw_getlength(bs); in raw_co_block_status() local3226 if (file_length > 0) { in raw_co_block_status()3228 assert(hole == file_length); in raw_co_block_status()
190 file_length=$(stat -c '%s' "$TEST_IMG_FILE")191 if [ "$file_length" != "$expected_file_length" ]; then192 echo "ERROR: file length $file_length (expected $expected_file_length)"