replace volume_support_qemu_snapshot with volume_qemu_snapshot
This also changes the return values, since their meanings are rather weird from the storage point of view. For instance, "internal" meant it is *not* the storage which does the snapshot, while "external" meant a mixture of storage and qemu-server side actions. `undef` meant the storage does it all... ┌────────────┬───────────┐ │ previous │ new │ ├────────────┼───────────┤ │ "internal" │ "qemu" │ │ "external" │ "mixed" │ │ undef │ "storage" │ └────────────┴───────────┘ Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -2370,7 +2370,7 @@ sub rename_snapshot {
|
||||
);
|
||||
}
|
||||
|
||||
sub volume_support_qemu_snapshot {
|
||||
sub volume_qemu_snapshot_method {
|
||||
my ($cfg, $volid) = @_;
|
||||
|
||||
my ($storeid, $volname) = parse_volume_id($volid, 1);
|
||||
@ -2380,7 +2380,7 @@ sub volume_support_qemu_snapshot {
|
||||
|
||||
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
|
||||
|
||||
return $plugin->volume_support_qemu_snapshot($storeid, $scfg, $volname);
|
||||
return $plugin->volume_qemu_snapshot_method($storeid, $scfg, $volname);
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user