zfspool: add blockers parameter to volume_snapshot_is_possible
useful for rollback, so that only the required replication snapshots can be removed, and it's possible to abort early without deleting any replication snapshots if there are other non-replication snasphots blocking rollback. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
committed by
Fabian Grünbichler
parent
ac5c1af57c
commit
9a5d50950c
@ -948,8 +948,11 @@ sub volume_snapshot {
|
||||
return undef;
|
||||
}
|
||||
|
||||
# Asserts that a rollback to $snap on $volname is possible.
|
||||
# If certain snapshots are preventing the rollback and $blockers is an array
|
||||
# reference, the snapshot names can be pushed onto $blockers prior to dying.
|
||||
sub volume_rollback_is_possible {
|
||||
my ($class, $scfg, $storeid, $volname, $snap) = @_;
|
||||
my ($class, $scfg, $storeid, $volname, $snap, $blockers) = @_;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user