nexenta : free_image
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
2e910a0e3a
commit
74822cd72d
@ -318,6 +318,13 @@ sub free_image {
|
|||||||
nexenta_delete_lu($scfg, $name);
|
nexenta_delete_lu($scfg, $name);
|
||||||
nexenta_delete_zvol($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;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user