Skip to content

Commit

Permalink
fix(reservation): while expanding, with refquota setting (openebs#595)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Buisine <alexandre.buisine@enix.fr>
Signed-off-by: chris199512 <84684730+chris199512@users.noreply.github.com>
  • Loading branch information
abuisine authored and chris199512 committed Oct 21, 2024
1 parent 41b1594 commit 97ce158
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 97ce158

Please sign in to comment.