config: rename external-snapshots to snapshot-as-volume-chain

Not perfect but now it's still easy to rename and the new variant fits
a bit better to the actual design and implementation.

Add best-effort migration for storage.cfg, this has been never
publicly released after all.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2025-07-17 19:46:13 +02:00
parent 2d44f2eb3e
commit a81ee83127
7 changed files with 36 additions and 22 deletions

View File

@ -223,7 +223,7 @@ __PACKAGE__->register_method({
# TODO: add support to the storage plugin system to allow returing different supported
# formats depending on the storage config instead, this is just a stop gap!
if (lc($data->{type}) eq 'lvm') {
$data->{format}[0]->{qcow2} = 0 if !$scfg->{'external-snapshots'};
$data->{format}->[0]->{qcow2} = 0 if !$scfg->{'snapshot-as-volume-chain'};
}
$res->{$storeid} = $data;