volume_snapshot_delete: deactivate before deleting

This commit is contained in:
Wolfgang Bumiller
2015-09-25 12:02:33 +02:00
committed by Dietmar Maurer
parent 9b256d4676
commit 399581a2b3
5 changed files with 9 additions and 0 deletions

View File

@ -462,6 +462,7 @@ sub volume_snapshot {
sub volume_snapshot_delete {
my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
$class->deactivate_volume($storeid, $scfg, $volname, $snap, {});
$class->zfs_request($scfg, undef, 'destroy', "$scfg->{pool}/$volname\@$snap");
}