}
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 {
}
sub volume_snapshot_list {
- my ($class, $scfg, $storeid, $volname, $prefix) = @_;
+ my ($class, $scfg, $storeid, $volname) = @_;
# implement in subclass
die "Volume_snapshot_list is not implemented for $class";
}
sub volume_snapshot_list {
- my ($class, $scfg, $storeid, $volname, $prefix) = @_;
+ my ($class, $scfg, $storeid, $volname) = @_;
# return an empty array if dataset does not exist.
die "Volume_snapshot_list is not implemented for ZFS over iSCSI.\n";
}
}
sub volume_snapshot_list {
- my ($class, $scfg, $storeid, $volname, $prefix) = @_;
+ my ($class, $scfg, $storeid, $volname) = @_;
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
my $outfunc = sub {
my $line = shift;
- if ($line =~ m/^\Q$zpath\E@(\Q$prefix\E.*)$/) {
+ if ($line =~ m/^\Q$zpath\E@(.*)$/) {
push @$snaps, $1;
}
};