PVE::Storage::volume_snapshot_list - remove $prefix parameter
Always return the full list of snapshots. Users of this library can easily filter with a simply 'grep' instead.
This commit is contained in:
@ -264,13 +264,13 @@ sub volume_has_feature {
|
||||
}
|
||||
|
||||
sub volume_snapshot_list {
|
||||
my ($cfg, $volid, $prefix) = @_;
|
||||
my ($cfg, $volid) = @_;
|
||||
|
||||
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_list($scfg, $storeid, $volname, $prefix);
|
||||
return $plugin->volume_snapshot_list($scfg, $storeid, $volname);
|
||||
} elsif ($volid =~ m|^(/.+)$| && -e $volid) {
|
||||
die "send file/device '$volid' is not possible\n";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user