Lines Matching refs:qcow
24 use crate::qcow::qcow_raw_file::QcowRawFile;
25 use crate::qcow::refcount::RefCount;
26 use crate::qcow::vec_cache::{CacheMap, Cacheable, VecCache};
549 let mut qcow = QcowFile { in from() localVariable
563 qcow.header in from()
565 .checked_add(qcow.l1_address_offset(qcow.virtual_size())) in from()
567 qcow.header in from()
569 .checked_add(u64::from(qcow.header.refcount_table_clusters) * cluster_size) in from()
572 qcow.find_avail_clusters()?; in from()
574 Ok(qcow) in from()
602 let mut qcow = Self::from(file)?; in new_from_header() localVariable
605 let cluster_size = 0x01u64 << qcow.header.cluster_bits; in new_from_header()
606 let refcount_table_base = qcow.header.refcount_table_offset as u64; in new_from_header()
608 refcount_table_base + u64::from(qcow.header.refcount_table_clusters) * cluster_size; in new_from_header()
612 let mut unref_clusters = qcow in new_from_header()
615 qcow.unref_clusters.append(&mut unref_clusters); in new_from_header()
619 Ok(qcow) in new_from_header()
1958 let mut qcow = QcowFile::from(disk_file).expect("Failed to create file."); in test_header_1_tb_file() localVariable
1959 qcow.seek(SeekFrom::Start(0x100_0000_0000 - 8)) in test_header_1_tb_file()
1962 qcow.write_all(&value.to_le_bytes()) in test_header_1_tb_file()