Include new storage function volume_snapshot_list.

Returns a list of snapshots (youngest snap first) form a given volid.
It is possible to use a prefix to filter the list.
This commit is contained in:
Wolfgang Link
2017-04-24 17:15:27 +02:00
committed by Wolfgang Bumiller
parent b76774e57f
commit aefe82ea03
4 changed files with 70 additions and 1 deletions

View File

@ -832,6 +832,15 @@ sub status {
return ($res->{total}, $res->{avail}, $res->{used}, 1);
}
sub volume_snapshot_list {
my ($class, $scfg, $storeid, $volname, $prefix, $ip) = @_;
# implement in subclass
die "Volume_snapshot_list is not implemented for $class";
# retrun an empty array if dataset does not exist.
}
sub activate_storage {
my ($class, $storeid, $scfg, $cache) = @_;