Skip to content

Commit

Permalink
fix(reservation): while expanding, with refquota setting
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Buisine <alexandre.buisine@enix.fr>
  • Loading branch information
abuisine committed Oct 10, 2024
1 parent f185333 commit 20fda15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/zfs/zfs_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20fda15

Please sign in to comment.