nexenta : free_image

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2013-02-05 12:56:06 +01:00
committed by Dietmar Maurer
parent 2e910a0e3a
commit 74822cd72d

View File

@ -318,6 +318,13 @@ sub free_image {
nexenta_delete_lu($scfg, $name);
nexenta_delete_zvol($scfg, $name);
#if base volume, we delete also the original cloned volume
if ($isBase) {
$name =~ s/^base-/vm-/;
nexenta_delete_lu($scfg, $name);
nexenta_delete_zvol($scfg, $name);
}
return undef;
}