Add support for raw backing files in addition to qcow2 backing files. This enables QCOW2 overlays to use raw images as their backing store. The backing file format is auto-detected when not specified, using the existing detect_image_type() function. Add backing_file_format field to QcowHeader to store the format type, which will be populated from header extensions by a subsequent patch. Modify new_from_backing() to accept a backing_format parameter, consolidating support for both raw and qcow2 backing files in a single function. The backing_file_size parameter allows overlay creation without opening the backing file multiple times. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||