Skip to content

Commit

Permalink
Merge pull request #1310 from vojtechtrefny/rhel10-branch_luks-grow-l…
Browse files Browse the repository at this point in the history
…vm-fix

Align sizes up for growable LVs
  • Loading branch information
vojtechtrefny authored Oct 29, 2024
2 parents 514cc68 + ad7966a commit db0b607
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 db0b607

Please sign in to comment.