plugin: add volume_snapshot_info function
which allows for better choices of common replication snapshots. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
committed by
Fabian Grünbichler
parent
665f61a24b
commit
8c20d8afa3
@ -1212,6 +1212,16 @@ sub status {
|
||||
return ($res->{total}, $res->{avail}, $res->{used}, 1);
|
||||
}
|
||||
|
||||
# Returns a hash with the snapshot names as keys and the following data:
|
||||
# id - Unique id to distinguish different snapshots even if the have the same name.
|
||||
# timestamp - Creation time of the snapshot (seconds since epoch).
|
||||
# Returns an empty hash if the volume does not exist.
|
||||
sub volume_snapshot_info {
|
||||
my ($class, $scfg, $storeid, $volname) = @_;
|
||||
|
||||
die "volume_snapshot_info is not implemented for $class";
|
||||
}
|
||||
|
||||
sub volume_snapshot_list {
|
||||
my ($class, $scfg, $storeid, $volname) = @_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user