call volume_rollback_is_possible from PVE::Storage::volume_snapshot_rollback

That way it is automatically called for all plungins.
This commit is contained in:
Dietmar Maurer
2015-02-12 09:28:52 +01:00
parent 1597f1f9ad
commit b3f302c638
3 changed files with 1 additions and 6 deletions

View File

@ -411,9 +411,6 @@ sub volume_snapshot_delete {
sub volume_snapshot_rollback {
my ($class, $scfg, $storeid, $volname, $snap) = @_;
# abort rollback if snapshot is not the latest
$class->volume_rollback_is_possible($scfg, $storeid, $volname, $snap);
zfs_request($class, $scfg, undef, 'rollback', "$scfg->{pool}/$volname\@$snap");
}