Skip to content

Commit

Permalink
fix(reservation): update reservation on volume resize
Browse files Browse the repository at this point in the history
Signed-off-by: sinhaashish <ashi.sinha.87@gmail.com>
  • Loading branch information
sinhaashish committed Sep 19, 2024
1 parent 8d46868 commit 5ee428c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/zfs/zfs_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ func buildVolumeResizeArgs(vol *apis.ZFSVolume) []string {
ZFSVolArg = append(ZFSVolArg, volsizeProperty)
}

if vol.Spec.ThinProvision == "no" {
reservationProperty := "reservation=" + vol.Spec.Capacity
ZFSVolArg = append(ZFSVolArg, "-o", reservationProperty)
}

ZFSVolArg = append(ZFSVolArg, volume)

return ZFSVolArg
Expand Down

0 comments on commit 5ee428c

Please sign in to comment.