mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
block: qcow: Rename Qcow2MetadataBacking to Qcow2Backing
The old name read as 'metadata for a QCOW2 backing file' rather than what it actually is: a QCOW2 backing file reader. Rename to Qcow2Backing to parallel RawBacking and clarify intent. Suggested-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
39844e8839
commit
c35749fb39
@@ -783,7 +783,7 @@ mod unit_tests {
|
||||
|
||||
#[test]
|
||||
fn test_multi_queue_concurrent_reads_qcow2_backing() {
|
||||
// Same as above but reads go through a Qcow2MetadataBacking,
|
||||
// Same as above but reads go through a Qcow2Backing,
|
||||
// exercising concurrent metadata resolution + pread64 in the backing.
|
||||
let backing_temp = TempFile::new().unwrap();
|
||||
let cluster_size = 1u64 << 16;
|
||||
@@ -1123,7 +1123,7 @@ mod unit_tests {
|
||||
#[test]
|
||||
fn test_qcow2_backing_cross_cluster_read() {
|
||||
// Read spanning a cluster boundary through qcow2 backing.
|
||||
// Exercises the read_clusters loop in Qcow2MetadataBacking.
|
||||
// Exercises the read_clusters loop in Qcow2Backing.
|
||||
let cluster_size = 1u64 << 16;
|
||||
let file_size = cluster_size * 4;
|
||||
let pattern: Vec<u8> = (0..file_size as usize).map(|i| (i % 251) as u8).collect();
|
||||
|
||||
Reference in New Issue
Block a user