qcow2: add external snapshot support

add a snapext option to enable the feature

When a snapshot is taken, the current volume is renamed to snap volname
and a current image is created with the snap volume as backing file

Signed-off-by: Alexandre Derumier <alexandre.derumier@groupe-cyllene.com>
This commit is contained in:
Alexandre Derumier
2025-07-09 18:22:00 +02:00
committed by Wolfgang Bumiller
parent b63147f5df
commit ccbced53c5
5 changed files with 289 additions and 19 deletions

View File

@ -104,6 +104,7 @@ sub options {
'create-subdirs' => { optional => 1 },
bwlimit => { optional => 1 },
preallocation => { optional => 1 },
'external-snapshots' => { optional => 1, fixed => 1 },
};
}