Skip to content

Commit

Permalink
Align sizes up for growable LVs
Browse files Browse the repository at this point in the history
Growable LVs usually start at minimum size so adjusting it down
can change the size below allowed minimum.

Resolves: RHEL-45180
  • Loading branch information
vojtechtrefny committed Oct 24, 2024
1 parent 514cc68 commit d266da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blivet/devices/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2673,7 +2673,7 @@ def _set_size(self, newsize):
if not isinstance(newsize, Size):
raise AttributeError("new size must be of type Size")

newsize = self.vg.align(newsize)
newsize = self.vg.align(newsize, roundup=self.growable)
log.debug("trying to set lv %s size to %s", self.name, newsize)
# Don't refuse to set size if we think there's not enough space in the
# VG for an existing LV, since it's existence proves there is enough
Expand Down

0 comments on commit d266da2

Please sign in to comment.