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:
committed by
Wolfgang Bumiller
parent
b76774e57f
commit
aefe82ea03
@ -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) = @_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user