storage: remove $running param from volume_snapshot

not needed anymore after change in qemu-server

Signed-off-by: Alexandre Derumier <alexandre.derumier@groupe-cyllene.com>
This commit is contained in:
Alexandre Derumier
2025-07-16 08:31:53 +02:00
committed by Wolfgang Bumiller
parent 4ef8ab60f6
commit e17a33794c
10 changed files with 15 additions and 32 deletions

View File

@ -449,13 +449,13 @@ sub volume_rollback_is_possible {
}
sub volume_snapshot {
my ($cfg, $volid, $snap, $running) = @_;
my ($cfg, $volid, $snap) = @_;
my ($storeid, $volname) = parse_volume_id($volid, 1);
if ($storeid) {
my $scfg = storage_config($cfg, $storeid);
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
return $plugin->volume_snapshot($scfg, $storeid, $volname, $snap, $running);
return $plugin->volume_snapshot($scfg, $storeid, $volname, $snap);
} elsif ($volid =~ m|^(/.+)$| && -e $volid) {
die "snapshot file/device '$volid' is not possible\n";
} else {