mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-11 22:10:11 +01:00
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:
parent
d826d1dcb8
commit
b0434bb537
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ func buildVolumeDestroyArgs(vol *apis.ZFSVolume) []string {
|
|||
|
||||
volume := vol.Spec.PoolName + "/" + vol.Name
|
||||
|
||||
ZFSVolArg = append(ZFSVolArg, ZFSDestroyArg, "-R", volume)
|
||||
ZFSVolArg = append(ZFSVolArg, ZFSDestroyArg, volume)
|
||||
|
||||
return ZFSVolArg
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue