diff --git a/SOURCES/0008-Align-sizes-up-for-growable-LVs.patch b/SOURCES/0008-Align-sizes-up-for-growable-LVs.patch new file mode 100644 index 0000000..dba8652 --- /dev/null +++ b/SOURCES/0008-Align-sizes-up-for-growable-LVs.patch @@ -0,0 +1,30 @@ +From ad7966a456224f22729c55616f2c8c73321654c7 Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Thu, 24 Oct 2024 12:18:58 +0200 +Subject: [PATCH] Align sizes up for growable LVs + +Growable LVs usually start at minimum size so adjusting it down +can change the size below allowed minimum. + +Resolves: RHEL-45180 +Resolves: RHEL-45181 +--- + blivet/devices/lvm.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/blivet/devices/lvm.py b/blivet/devices/lvm.py +index 661881ea..661dc6e0 100644 +--- a/blivet/devices/lvm.py ++++ b/blivet/devices/lvm.py +@@ -2673,7 +2673,7 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin + 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 +-- +2.47.0 + diff --git a/SPECS/python-blivet.spec b/SPECS/python-blivet.spec index b4710d3..8dddff5 100644 --- a/SPECS/python-blivet.spec +++ b/SPECS/python-blivet.spec @@ -5,7 +5,7 @@ Version: 3.10.0 #%%global prerelease .b2 # prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2 -Release: 8%{?prerelease}%{?dist} +Release: 10%{?prerelease}%{?dist} Epoch: 1 License: LGPL-2.1-or-later %global realname blivet @@ -23,6 +23,7 @@ Patch3: 0004-Run-mkfs-xfs-with-force-option-by-default.patch Patch4: 0005-consolidated-s390-device-configuration.patch Patch5: 0006-Remove-support-for-the-MD-linear-RAID-level.patch Patch6: 0007-Fix-checking-for-NVMe-plugin-availability.patch +Patch7: 0008-Align-sizes-up-for-growable-LVs.patch # Versions of required components (done so we make sure the buildrequires # match the requires versions of things). @@ -117,9 +118,18 @@ make DESTDIR=%{buildroot} install %{python3_sitelib}/* %changelog -* Fri Oct 25 2024 MSVSphere Packaging Team - 1:3.10.0-8 +* Tue Oct 29 2024 Troy Dawson - 1:3.10.0-10 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Fri Oct 25 2024 MSVSphere Packaging Team - 3.10.0-9 - Rebuilt for MSVSphere 10 +* Thu Oct 24 2024 Vojtech Trefny - 3.10.0-9 +- Align sizes up for growable LVs + Resolves: RHEL-45180 + Resolves: RHEL-45181 + * Wed Oct 09 2024 Vojtech Trefny - 3.10.0-8 - Fix dependency on libblockdev-s390 Resolves: RHEL-61187