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:
committed by
Wolfgang Bumiller
parent
4ef8ab60f6
commit
e17a33794c
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user