fix(zfspv): do not destroy the dataset with -R option

With "zfs destroy -R" we will delete snapshot and clones also. We should
not use that for deleting the volumes.

Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
Pawan 2020-01-31 12:39:47 +05:30 committed by Kiran Mova
parent d826d1dcb8
commit b0434bb537

View file

@ -197,7 +197,7 @@ func buildVolumeDestroyArgs(vol *apis.ZFSVolume) []string {
volume := vol.Spec.PoolName + "/" + vol.Name volume := vol.Spec.PoolName + "/" + vol.Name
ZFSVolArg = append(ZFSVolArg, ZFSDestroyArg, "-R", volume) ZFSVolArg = append(ZFSVolArg, ZFSDestroyArg, volume)
return ZFSVolArg return ZFSVolArg
} }