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

@ -181,6 +181,7 @@ sub volume_snapshot_rollback {
if ($storeid) {
my $scfg = storage_config($cfg, $storeid);
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
$plugin->volume_rollback_is_possible($scfg, $storeid, $volname, $snap);
return $plugin->volume_snapshot_rollback($scfg, $storeid, $volname, $snap);
} elsif ($volid =~ m|^(/.+)$| && -e $volid) {
die "snapshot rollback device is not possible";