Skip to content

Commit

Permalink
fix(reservation): while expanding, with refquota setting (#595)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Buisine <[email protected]>
  • Loading branch information
abuisine authored Oct 16, 2024
1 parent 82417e7 commit d52f9a9
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 d52f9a9

Please sign in to comment.