From 20fda154bf3108f8880b8b4f6bc6fd37e0ac93b6 Mon Sep 17 00:00:00 2001 From: Alexandre Buisine Date: Thu, 10 Oct 2024 11:15:20 +0200 Subject: [PATCH] fix(reservation): while expanding, with refquota setting Signed-off-by: Alexandre Buisine --- pkg/zfs/zfs_util.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/zfs/zfs_util.go b/pkg/zfs/zfs_util.go index 77f59dd3c..f0ed321f0 100644 --- a/pkg/zfs/zfs_util.go +++ b/pkg/zfs/zfs_util.go @@ -297,6 +297,10 @@ func buildVolumeResizeArgs(vol *apis.ZFSVolume) []string { ZFSVolArg = append(ZFSVolArg, volsizeProperty) } + if vol.Spec.ThinProvision == "no" { + ZFSVolArg = append(ZFSVolArg, "-o", reservationProperty(vol.Spec.QuotaType, vol.Spec.Capacity)) + } + ZFSVolArg = append(ZFSVolArg, volume) return ZFSVolArg