From 97789bb800d8517a0a0887710f499d813bc4d305 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Oct 11 2023 17:40:51 +0000 Subject: Merge commit '8b6c54951905ace9f6865a021d517da5333bb605' into c8s-sig-hyperscale-spin --- diff --git a/.gitignore b/.gitignore index 22c65de..a37b47e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -SOURCES/blivet-3.4.0-tests.tar.gz -SOURCES/blivet-3.4.0.tar.gz +SOURCES/blivet-3.6.0-tests.tar.gz +SOURCES/blivet-3.6.0.tar.gz diff --git a/.python-blivet.metadata b/.python-blivet.metadata index f6bdfc3..a41a028 100644 --- a/.python-blivet.metadata +++ b/.python-blivet.metadata @@ -1,2 +1,2 @@ -d0a86df7bbaeda7be9990b7f7b15ec36b325ec7a SOURCES/blivet-3.4.0-tests.tar.gz -aafc429e224dfd204cb1c284bb70de52920f7b20 SOURCES/blivet-3.4.0.tar.gz +8393baa22cb433d1012e3923ad0bc232401116c6 SOURCES/blivet-3.6.0-tests.tar.gz +e9d95c1165703fed3da1f35a9199197bfff68f98 SOURCES/blivet-3.6.0.tar.gz diff --git a/SOURCES/0001-force-lvm-cli.plugin b/SOURCES/0001-force-lvm-cli.plugin index 2a15b22..3af1d94 100644 --- a/SOURCES/0001-force-lvm-cli.plugin +++ b/SOURCES/0001-force-lvm-cli.plugin @@ -1,4 +1,4 @@ -From 2f90040ff66eacc9715e370cd49ffb72d8d1f36f Mon Sep 17 00:00:00 2001 +From 83ccc9f9f14845fcce7a5ba5fa21fbb97b1dbbb7 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Wed, 11 Jul 2018 15:36:24 +0200 Subject: [PATCH] Force command line based libblockdev LVM plugin @@ -8,7 +8,7 @@ Subject: [PATCH] Force command line based libblockdev LVM plugin 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/blivet/__init__.py b/blivet/__init__.py -index c5a75bb..cb75917 100644 +index dd8d0f54..62cc539a 100644 --- a/blivet/__init__.py +++ b/blivet/__init__.py @@ -63,11 +63,16 @@ gi.require_version("BlockDev", "2.0") @@ -31,5 +31,5 @@ index c5a75bb..cb75917 100644 # do not check for dependencies during libblockdev initializtion, do runtime # checks instead -- -1.8.3.1 +2.38.1 diff --git a/SOURCES/0002-remove-btrfs-plugin.patch b/SOURCES/0002-remove-btrfs-plugin.patch index 5755e9e..26182ae 100644 --- a/SOURCES/0002-remove-btrfs-plugin.patch +++ b/SOURCES/0002-remove-btrfs-plugin.patch @@ -1,4 +1,4 @@ -From 6bf3378d3d2a1b6a4338df0c4dd36a783a641633 Mon Sep 17 00:00:00 2001 +From c098d4112635b3ea55d5bd7e1817edbd519735fc Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Mon, 16 Jul 2018 14:26:11 +0200 Subject: [PATCH] Remove btrfs from requested libblockdev plugins @@ -8,7 +8,7 @@ Subject: [PATCH] Remove btrfs from requested libblockdev plugins 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blivet/__init__.py b/blivet/__init__.py -index cb75917..09f8b1c 100644 +index 62cc539a..bbc7ea3a 100644 --- a/blivet/__init__.py +++ b/blivet/__init__.py @@ -63,9 +63,9 @@ gi.require_version("BlockDev", "2.0") @@ -24,5 +24,5 @@ index cb75917..09f8b1c 100644 _requested_plugins = blockdev.plugin_specs_from_names(_REQUESTED_PLUGIN_NAMES) # XXX force non-dbus LVM plugin -- -1.8.3.1 +2.38.1 diff --git a/SOURCES/0003-Revert-More-consistent-lvm-errors.patch b/SOURCES/0003-Revert-More-consistent-lvm-errors.patch index 69306a8..f6dd209 100644 --- a/SOURCES/0003-Revert-More-consistent-lvm-errors.patch +++ b/SOURCES/0003-Revert-More-consistent-lvm-errors.patch @@ -1,19 +1,19 @@ -From 3a42d9e2afdf04dbbfd2c507f5b2392193fda25b Mon Sep 17 00:00:00 2001 +From f6f90805020d7c6ac46f17a13a00f319fc4351f6 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Wed, 26 May 2021 12:15:54 +0200 Subject: [PATCH] Revert "More consistent lvm errors (API break)" This reverts commit 49ec071c6d0673224a0774d613904387c52c7381. --- - blivet/devices/lvm.py | 72 +++++++++++++++++----------------- - tests/devices_test/lvm_test.py | 14 +++---- + blivet/devices/lvm.py | 72 +++++++++++------------ + tests/unit_tests/devices_test/lvm_test.py | 14 ++--- 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/blivet/devices/lvm.py b/blivet/devices/lvm.py -index a55515fc..6d23bfba 100644 +index 38e49e18..b8595d63 100644 --- a/blivet/devices/lvm.py +++ b/blivet/devices/lvm.py -@@ -307,7 +307,7 @@ class LVMVolumeGroupDevice(ContainerDevice): +@@ -304,7 +304,7 @@ class LVMVolumeGroupDevice(ContainerDevice): def _add_log_vol(self, lv): """ Add an LV to this VG. """ if lv in self._lvs: @@ -22,7 +22,7 @@ index a55515fc..6d23bfba 100644 # verify we have the space, then add it # do not verify for growing vg (because of ks) -@@ -340,7 +340,7 @@ class LVMVolumeGroupDevice(ContainerDevice): +@@ -337,7 +337,7 @@ class LVMVolumeGroupDevice(ContainerDevice): def _remove_log_vol(self, lv): """ Remove an LV from this VG. """ if lv not in self.lvs: @@ -31,7 +31,7 @@ index a55515fc..6d23bfba 100644 self._lvs.remove(lv) -@@ -415,7 +415,7 @@ class LVMVolumeGroupDevice(ContainerDevice): +@@ -430,7 +430,7 @@ class LVMVolumeGroupDevice(ContainerDevice): @thpool_reserve.setter def thpool_reserve(self, value): if value is not None and not isinstance(value, ThPoolReserveSpec): @@ -40,8 +40,8 @@ index a55515fc..6d23bfba 100644 self._thpool_reserve = value @property -@@ -646,14 +646,14 @@ class LVMLogicalVolumeBase(DMDevice, RaidDevice): - if seg_type not in [None, "linear", "thin", "thin-pool", "cache", "vdo-pool", "vdo"] + lvm.raid_seg_types: +@@ -665,14 +665,14 @@ class LVMLogicalVolumeBase(DMDevice, RaidDevice): + if seg_type not in [None, "linear", "thin", "thin-pool", "cache", "vdo-pool", "vdo", "cache-pool"] + lvm.raid_seg_types: raise ValueError("Invalid or unsupported segment type: %s" % seg_type) if seg_type and seg_type in lvm.raid_seg_types and not pvs: - raise errors.DeviceError("List of PVs has to be given for every non-linear LV") @@ -60,7 +60,7 @@ index a55515fc..6d23bfba 100644 # When this device's format is set in the superclass constructor it will # try to access self.snapshots. -@@ -702,13 +702,13 @@ class LVMLogicalVolumeBase(DMDevice, RaidDevice): +@@ -721,13 +721,13 @@ class LVMLogicalVolumeBase(DMDevice, RaidDevice): self._from_lvs = from_lvs if self._from_lvs: if exists: @@ -78,7 +78,7 @@ index a55515fc..6d23bfba 100644 self._cache = None if cache_request and not self.exists: -@@ -723,13 +723,13 @@ class LVMLogicalVolumeBase(DMDevice, RaidDevice): +@@ -746,13 +746,13 @@ class LVMLogicalVolumeBase(DMDevice, RaidDevice): elif isinstance(pv_spec, StorageDevice): self._pv_specs.append(LVPVSpec(pv_spec, Size(0))) else: @@ -94,7 +94,7 @@ index a55515fc..6d23bfba 100644 if self._pv_specs: self._assign_pv_space() -@@ -1072,7 +1072,7 @@ class LVMLogicalVolumeBase(DMDevice, RaidDevice): +@@ -1130,7 +1130,7 @@ class LVMLogicalVolumeBase(DMDevice, RaidDevice): else: msg = "the specified internal LV '%s' doesn't belong to this LV ('%s')" % (int_lv.lv_name, self.name) @@ -103,7 +103,7 @@ index a55515fc..6d23bfba 100644 def populate_ksdata(self, data): super(LVMLogicalVolumeBase, self).populate_ksdata(data) -@@ -1171,7 +1171,7 @@ class LVMInternalLogicalVolumeMixin(object): +@@ -1229,7 +1229,7 @@ class LVMInternalLogicalVolumeMixin(object): def _init_check(self): # an internal LV should have no parents if self._parent_lv and self._parents: @@ -112,7 +112,7 @@ index a55515fc..6d23bfba 100644 @property def is_internal_lv(self): -@@ -1231,7 +1231,7 @@ class LVMInternalLogicalVolumeMixin(object): +@@ -1289,7 +1289,7 @@ class LVMInternalLogicalVolumeMixin(object): @readonly.setter def readonly(self, value): # pylint: disable=unused-argument @@ -121,7 +121,7 @@ index a55515fc..6d23bfba 100644 @property def type(self): -@@ -1267,7 +1267,7 @@ class LVMInternalLogicalVolumeMixin(object): +@@ -1325,7 +1325,7 @@ class LVMInternalLogicalVolumeMixin(object): def _check_parents(self): # an internal LV should have no parents if self._parents: @@ -130,7 +130,7 @@ index a55515fc..6d23bfba 100644 def _add_to_parents(self): # nothing to do here, an internal LV has no parents (in the DeviceTree's -@@ -1277,13 +1277,13 @@ class LVMInternalLogicalVolumeMixin(object): +@@ -1335,13 +1335,13 @@ class LVMInternalLogicalVolumeMixin(object): # internal LVs follow different rules limitting size def _set_size(self, newsize): if not isinstance(newsize, Size): @@ -146,7 +146,7 @@ index a55515fc..6d23bfba 100644 else: # same rules apply as for any other LV raise NotTypeSpecific() -@@ -1361,18 +1361,18 @@ class LVMSnapshotMixin(object): +@@ -1419,18 +1419,18 @@ class LVMSnapshotMixin(object): return if self.origin and not isinstance(self.origin, LVMLogicalVolumeDevice): @@ -169,7 +169,7 @@ index a55515fc..6d23bfba 100644 @property def is_snapshot_lv(self): -@@ -1544,7 +1544,7 @@ class LVMThinPoolMixin(object): +@@ -1606,7 +1606,7 @@ class LVMThinPoolMixin(object): def _check_from_lvs(self): if self._from_lvs: if len(self._from_lvs) != 2: @@ -178,7 +178,7 @@ index a55515fc..6d23bfba 100644 def _convert_from_lvs(self): data_lv, metadata_lv = self._from_lvs -@@ -1590,7 +1590,7 @@ class LVMThinPoolMixin(object): +@@ -1652,7 +1652,7 @@ class LVMThinPoolMixin(object): def _add_log_vol(self, lv): """ Add an LV to this pool. """ if lv in self._lvs: @@ -187,7 +187,7 @@ index a55515fc..6d23bfba 100644 # TODO: add some checking to prevent overcommit for preexisting self.vg._add_log_vol(lv) -@@ -1601,7 +1601,7 @@ class LVMThinPoolMixin(object): +@@ -1663,7 +1663,7 @@ class LVMThinPoolMixin(object): def _remove_log_vol(self, lv): """ Remove an LV from this pool. """ if lv not in self._lvs: @@ -196,7 +196,7 @@ index a55515fc..6d23bfba 100644 self._lvs.remove(lv) self.vg._remove_log_vol(lv) -@@ -1711,14 +1711,14 @@ class LVMThinLogicalVolumeMixin(object): +@@ -1772,14 +1772,14 @@ class LVMThinLogicalVolumeMixin(object): """Check that this device has parents as expected""" if isinstance(self.parents, (list, ParentList)): if len(self.parents) != 1: @@ -213,7 +213,7 @@ index a55515fc..6d23bfba 100644 @property def is_thin_lv(self): -@@ -1755,7 +1755,7 @@ class LVMThinLogicalVolumeMixin(object): +@@ -1816,7 +1816,7 @@ class LVMThinLogicalVolumeMixin(object): def _set_size(self, newsize): if not isinstance(newsize, Size): @@ -222,7 +222,7 @@ index a55515fc..6d23bfba 100644 newsize = self.vg.align(newsize) newsize = self.vg.align(util.numeric_type(newsize)) -@@ -2229,7 +2229,7 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin +@@ -2499,7 +2499,7 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin container = self.parents if not isinstance(container, LVMVolumeGroupDevice): @@ -231,7 +231,7 @@ index a55515fc..6d23bfba 100644 @type_specific def _add_to_parents(self): -@@ -2240,12 +2240,12 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin +@@ -2510,12 +2510,12 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin @type_specific def _check_from_lvs(self): """Check the LVs to create this LV from""" @@ -246,7 +246,7 @@ index a55515fc..6d23bfba 100644 @property def external_dependencies(self): -@@ -2265,7 +2265,7 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin +@@ -2535,7 +2535,7 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin @type_specific def _set_size(self, newsize): if not isinstance(newsize, Size): @@ -255,7 +255,7 @@ index a55515fc..6d23bfba 100644 newsize = self.vg.align(newsize) log.debug("trying to set lv %s size to %s", self.name, newsize) -@@ -2274,7 +2274,7 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin +@@ -2544,7 +2544,7 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin # space for it. A similar reasoning applies to shrinking the LV. if not self.exists and newsize > self.size and newsize > self.vg.free_space + self.vg_space_used: log.error("failed to set size: %s short", newsize - (self.vg.free_space + self.vg_space_used)) @@ -264,7 +264,7 @@ index a55515fc..6d23bfba 100644 LVMLogicalVolumeBase._set_size(self, newsize) -@@ -2622,7 +2622,7 @@ class LVMCache(Cache): +@@ -2910,7 +2910,7 @@ class LVMCache(Cache): spec.size = spec.pv.format.free space_to_assign -= spec.pv.format.free if space_to_assign > 0: @@ -273,11 +273,11 @@ index a55515fc..6d23bfba 100644 @property def size(self): -diff --git a/tests/devices_test/lvm_test.py b/tests/devices_test/lvm_test.py -index 670c91c9..4156d0bf 100644 ---- a/tests/devices_test/lvm_test.py -+++ b/tests/devices_test/lvm_test.py -@@ -36,10 +36,10 @@ class LVMDeviceTest(unittest.TestCase): +diff --git a/tests/unit_tests/devices_test/lvm_test.py b/tests/unit_tests/devices_test/lvm_test.py +index 47613fdc..995c2da4 100644 +--- a/tests/unit_tests/devices_test/lvm_test.py ++++ b/tests/unit_tests/devices_test/lvm_test.py +@@ -32,10 +32,10 @@ class LVMDeviceTest(unittest.TestCase): lv = LVMLogicalVolumeDevice("testlv", parents=[vg], fmt=blivet.formats.get_format("xfs")) @@ -290,7 +290,7 @@ index 670c91c9..4156d0bf 100644 LVMLogicalVolumeDevice("snap1", parents=[vg], vorigin=True) lv.exists = True -@@ -64,7 +64,7 @@ class LVMDeviceTest(unittest.TestCase): +@@ -60,7 +60,7 @@ class LVMDeviceTest(unittest.TestCase): pool = LVMLogicalVolumeDevice("pool1", parents=[vg], size=Size("500 MiB"), seg_type="thin-pool") thinlv = LVMLogicalVolumeDevice("thinlv", parents=[pool], size=Size("200 MiB"), seg_type="thin") @@ -299,7 +299,7 @@ index 670c91c9..4156d0bf 100644 LVMLogicalVolumeDevice("snap1", parents=[pool], origin=pv, seg_type="thin") # now make the constructor succeed so we can test some properties -@@ -258,21 +258,21 @@ class LVMDeviceTest(unittest.TestCase): +@@ -310,21 +310,21 @@ class LVMDeviceTest(unittest.TestCase): vg = LVMVolumeGroupDevice("testvg", parents=[pv, pv2]) # pvs have to be specified for non-linear LVs @@ -326,5 +326,5 @@ index 670c91c9..4156d0bf 100644 pv_spec2 = LVPVSpec(pv2, Size("250 MiB")) lv = LVMLogicalVolumeDevice("testlv", parents=[vg], size=Size("512 MiB"), -- -2.31.1 +2.38.1 diff --git a/SOURCES/0004-Revert-Terminology-cleanups.patch b/SOURCES/0004-Revert-Terminology-cleanups.patch index 0db4494..8260a44 100644 --- a/SOURCES/0004-Revert-Terminology-cleanups.patch +++ b/SOURCES/0004-Revert-Terminology-cleanups.patch @@ -1,4 +1,4 @@ -From 42042e7fb6177d3cfe5568e358a38278925a2624 Mon Sep 17 00:00:00 2001 +From d8a8d96450bf0d3458671b9b7d23d972aa540396 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Wed, 26 May 2021 12:27:34 +0200 Subject: [PATCH] Revert "Terminology cleanups" @@ -8,32 +8,32 @@ This reverts following commits: - 63c9c7165e5cdfa4a47dcf0ed9d717b71e7921f2 - 8956b9af8a785ae25e0e7153d2ef0702ce2f567c --- - blivet/devicefactory.py | 24 +++++----- - blivet/devices/dm.py | 9 +++- - blivet/devices/loop.py | 20 ++++---- - blivet/devices/luks.py | 26 +++++----- - blivet/errors.py | 2 +- - blivet/partitioning.py | 22 +++++++-- - blivet/populator/helpers/dm.py | 4 +- - blivet/populator/helpers/luks.py | 4 +- - blivet/populator/helpers/lvm.py | 2 +- - blivet/populator/helpers/mdraid.py | 14 +++--- - blivet/populator/helpers/multipath.py | 8 ++-- - blivet/populator/populator.py | 69 ++++++++++++++------------- - blivet/threads.py | 3 +- - blivet/udev.py | 34 ++++++------- - tests/devicefactory_test.py | 10 ++-- - tests/devices_test/size_test.py | 6 +-- - tests/populator_test.py | 34 ++++++------- - tests/udev_test.py | 12 ++--- - tests/vmtests/vmbackedtestcase.py | 2 +- - 19 files changed, 168 insertions(+), 137 deletions(-) + blivet/devicefactory.py | 24 +++---- + blivet/devices/dm.py | 9 ++- + blivet/devices/loop.py | 20 +++--- + blivet/devices/luks.py | 26 ++++--- + blivet/errors.py | 2 +- + blivet/partitioning.py | 22 +++++- + blivet/populator/helpers/dm.py | 4 +- + blivet/populator/helpers/luks.py | 4 +- + blivet/populator/helpers/lvm.py | 2 +- + blivet/populator/helpers/mdraid.py | 14 ++-- + blivet/populator/helpers/multipath.py | 8 +-- + blivet/populator/populator.py | 67 ++++++++++--------- + blivet/threads.py | 3 +- + blivet/udev.py | 34 +++++----- + tests/unit_tests/devicefactory_test.py | 10 +-- + .../devices_test/device_size_test.py | 6 +- + tests/unit_tests/populator_test.py | 34 +++++----- + tests/unit_tests/udev_test.py | 12 ++-- + tests/vmtests/vmbackedtestcase.py | 2 +- + 19 files changed, 167 insertions(+), 136 deletions(-) diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py -index 0f7fdfa1..f56bd9a3 100644 +index 6f460f6d..90082c28 100644 --- a/blivet/devicefactory.py +++ b/blivet/devicefactory.py -@@ -849,12 +849,12 @@ class DeviceFactory(object): +@@ -859,12 +859,12 @@ class DeviceFactory(object): parent_container.parents.remove(orig_device) if self.encrypted and isinstance(self.device, LUKSDevice) and \ @@ -50,7 +50,7 @@ index 0f7fdfa1..f56bd9a3 100644 def _set_name(self): if not self.device_name: -@@ -1173,11 +1173,11 @@ class PartitionSetFactory(PartitionFactory): +@@ -1201,11 +1201,11 @@ class PartitionSetFactory(PartitionFactory): container.parents.remove(member) self.storage.destroy_device(member) members.remove(member) @@ -65,7 +65,7 @@ index 0f7fdfa1..f56bd9a3 100644 continue -@@ -1199,10 +1199,10 @@ class PartitionSetFactory(PartitionFactory): +@@ -1227,10 +1227,10 @@ class PartitionSetFactory(PartitionFactory): continue @@ -80,7 +80,7 @@ index 0f7fdfa1..f56bd9a3 100644 ## # Prepare previously allocated member partitions for reallocation. -@@ -1262,7 +1262,7 @@ class PartitionSetFactory(PartitionFactory): +@@ -1290,7 +1290,7 @@ class PartitionSetFactory(PartitionFactory): if isinstance(member, LUKSDevice): self.storage.destroy_device(member) @@ -90,7 +90,7 @@ index 0f7fdfa1..f56bd9a3 100644 self.storage.destroy_device(member) diff --git a/blivet/devices/dm.py b/blivet/devices/dm.py -index 3529f61c..508a6f89 100644 +index 2f936170..ae25e8e6 100644 --- a/blivet/devices/dm.py +++ b/blivet/devices/dm.py @@ -154,6 +154,11 @@ class DMDevice(StorageDevice): @@ -178,7 +178,7 @@ index 0f4d7775..78f88d7d 100644 + def slave(self): + return self.parents[0] diff --git a/blivet/devices/luks.py b/blivet/devices/luks.py -index 5d6d6c65..555f1acd 100644 +index 2eb1f130..5ab840ea 100644 --- a/blivet/devices/luks.py +++ b/blivet/devices/luks.py @@ -66,13 +66,17 @@ class LUKSDevice(DMCryptDevice): @@ -270,10 +270,10 @@ index 5d6d6c65..555f1acd 100644 super(LUKSDevice, self).populate_ksdata(data) diff --git a/blivet/errors.py b/blivet/errors.py -index fd51283f..f6bf853a 100644 +index b886ffec..30c9921a 100644 --- a/blivet/errors.py +++ b/blivet/errors.py -@@ -192,7 +192,7 @@ class DeviceTreeError(StorageError): +@@ -201,7 +201,7 @@ class DeviceTreeError(StorageError): pass @@ -283,7 +283,7 @@ index fd51283f..f6bf853a 100644 diff --git a/blivet/partitioning.py b/blivet/partitioning.py -index 53f9cc3f..ca0a55d1 100644 +index ce77e4eb..2cd6554c 100644 --- a/blivet/partitioning.py +++ b/blivet/partitioning.py @@ -32,7 +32,7 @@ import _ped @@ -295,7 +295,7 @@ index 53f9cc3f..ca0a55d1 100644 from .size import Size from .i18n import _ from .util import stringize, unicodeize, compare -@@ -1632,7 +1632,15 @@ class TotalSizeSet(object): +@@ -1635,7 +1635,15 @@ class TotalSizeSet(object): :param size: the target combined size :type size: :class:`~.size.Size` """ @@ -312,7 +312,7 @@ index 53f9cc3f..ca0a55d1 100644 self.size = size self.requests = [] -@@ -1670,7 +1678,15 @@ class SameSizeSet(object): +@@ -1673,7 +1681,15 @@ class SameSizeSet(object): :keyword max_size: the maximum size for growable devices :type max_size: :class:`~.size.Size` """ @@ -330,10 +330,10 @@ index 53f9cc3f..ca0a55d1 100644 self.grow = grow self.max_size = max_size diff --git a/blivet/populator/helpers/dm.py b/blivet/populator/helpers/dm.py -index 30e99aa1..770736b0 100644 +index 4721390e..0ad065e2 100644 --- a/blivet/populator/helpers/dm.py +++ b/blivet/populator/helpers/dm.py -@@ -46,13 +46,13 @@ class DMDevicePopulator(DevicePopulator): +@@ -47,13 +47,13 @@ class DMDevicePopulator(DevicePopulator): name = udev.device_get_name(self.data) log_method_call(self, name=name) sysfs_path = udev.device_get_sysfs_path(self.data) @@ -350,7 +350,7 @@ index 30e99aa1..770736b0 100644 device.controllable = False self._devicetree._add_device(device) diff --git a/blivet/populator/helpers/luks.py b/blivet/populator/helpers/luks.py -index 52795a98..51488691 100644 +index 3221122a..9b5023f8 100644 --- a/blivet/populator/helpers/luks.py +++ b/blivet/populator/helpers/luks.py @@ -43,7 +43,7 @@ class LUKSDevicePopulator(DevicePopulator): @@ -368,14 +368,14 @@ index 52795a98..51488691 100644 def run(self): - parents = self._devicetree._add_parent_devices(self.data) + parents = self._devicetree._add_slave_devices(self.data) - device = IntegrityDevice(udev.device_get_name(self.data), - sysfs_path=udev.device_get_sysfs_path(self.data), - parents=parents, + name = udev.device_get_name(self.data) + + try: diff --git a/blivet/populator/helpers/lvm.py b/blivet/populator/helpers/lvm.py -index c7adfa4e..b1626306 100644 +index 6ef2f417..b549e8d3 100644 --- a/blivet/populator/helpers/lvm.py +++ b/blivet/populator/helpers/lvm.py -@@ -57,7 +57,7 @@ class LVMDevicePopulator(DevicePopulator): +@@ -58,7 +58,7 @@ class LVMDevicePopulator(DevicePopulator): log.warning("found non-vg device with name %s", vg_name) device = None @@ -385,7 +385,7 @@ index c7adfa4e..b1626306 100644 # LVM provides no means to resolve conflicts caused by duplicated VG # names, so we're just being optimistic here. Woo! diff --git a/blivet/populator/helpers/mdraid.py b/blivet/populator/helpers/mdraid.py -index 3479e3f7..76aebf25 100644 +index a7602d20..9bec11ef 100644 --- a/blivet/populator/helpers/mdraid.py +++ b/blivet/populator/helpers/mdraid.py @@ -31,7 +31,7 @@ from ... import udev @@ -448,7 +448,7 @@ index 96c0a9ad..10c745bf 100644 return device diff --git a/blivet/populator/populator.py b/blivet/populator/populator.py -index 75bb1741..d252281d 100644 +index 3a419418..068270b2 100644 --- a/blivet/populator/populator.py +++ b/blivet/populator/populator.py @@ -31,7 +31,7 @@ gi.require_version("BlockDev", "2.0") @@ -549,17 +549,8 @@ index 75bb1741..d252281d 100644 def _add_name(self, name): if name not in self.names: -@@ -317,7 +318,7 @@ class PopulatorMixin(object): - continue - - # Make sure lvm doesn't get confused by PVs that belong to -- # incomplete VGs. We will remove the PVs from the reject list when/if -+ # incomplete VGs. We will remove the PVs from the blacklist when/if - # the time comes to remove the incomplete VG and its PVs. - for pv in vg.pvs: - lvm.lvm_cc_addFilterRejectRegexp(pv.name) diff --git a/blivet/threads.py b/blivet/threads.py -index 7e6d3105..a70deb69 100644 +index 5e2dff3f..1a5cc6db 100644 --- a/blivet/threads.py +++ b/blivet/threads.py @@ -63,11 +63,12 @@ class SynchronizedMeta(type): @@ -577,7 +568,7 @@ index 7e6d3105..a70deb69 100644 elif isinstance(obj, FunctionType): obj = exclusive(obj) diff --git a/blivet/udev.py b/blivet/udev.py -index a8297f3f..e1b67845 100644 +index efbc53d6..ddc49a37 100644 --- a/blivet/udev.py +++ b/blivet/udev.py @@ -39,7 +39,7 @@ from gi.repository import BlockDev as blockdev @@ -615,16 +606,16 @@ index a8297f3f..e1b67845 100644 return True dev_path = "/sys/class/block/%s" % dev_name -@@ -374,7 +374,7 @@ def device_is_disk(info): - device_is_dm_lvm(info) or +@@ -375,7 +375,7 @@ def device_is_disk(info): device_is_dm_crypt(info) or + device_is_dm_stratis(info) or (device_is_md(info) and - (not device_get_md_container(info) and not all(device_is_disk(d) for d in device_get_parents(info)))))) + (not device_get_md_container(info) and not all(device_is_disk(d) for d in device_get_slaves(info)))))) def device_is_partition(info): -@@ -453,18 +453,18 @@ def device_get_devname(info): +@@ -454,18 +454,18 @@ def device_get_devname(info): return info.get('DEVNAME') @@ -651,7 +642,7 @@ index a8297f3f..e1b67845 100644 def device_get_holders(info): -@@ -736,7 +736,7 @@ def device_get_partition_disk(info): +@@ -742,7 +742,7 @@ def device_get_partition_disk(info): disk = None majorminor = info.get("ID_PART_ENTRY_DISK") sysfs_path = device_get_sysfs_path(info) @@ -660,7 +651,7 @@ index a8297f3f..e1b67845 100644 if majorminor: major, minor = majorminor.split(":") for device in get_devices(): -@@ -744,8 +744,8 @@ def device_get_partition_disk(info): +@@ -750,8 +750,8 @@ def device_get_partition_disk(info): disk = device_get_name(device) break elif device_is_dm_partition(info): @@ -671,11 +662,11 @@ index a8297f3f..e1b67845 100644 if len(parents) == 1: disk = resolve_devspec(parents[0].replace('!', '/')) else: -diff --git a/tests/devicefactory_test.py b/tests/devicefactory_test.py -index dc0d6408..dfd78a7a 100644 ---- a/tests/devicefactory_test.py -+++ b/tests/devicefactory_test.py -@@ -112,9 +112,9 @@ class DeviceFactoryTestCase(unittest.TestCase): +diff --git a/tests/unit_tests/devicefactory_test.py b/tests/unit_tests/devicefactory_test.py +index ff6bcb9e..552aadc1 100644 +--- a/tests/unit_tests/devicefactory_test.py ++++ b/tests/unit_tests/devicefactory_test.py +@@ -115,9 +115,9 @@ class DeviceFactoryTestCase(unittest.TestCase): kwargs.get("encrypted", False) or kwargs.get("container_encrypted", False)) if kwargs.get("encrypted", False): @@ -687,7 +678,7 @@ index dc0d6408..dfd78a7a 100644 kwargs.get("luks_sector_size", 0)) self.assertTrue(set(device.disks).issubset(kwargs["disks"])) -@@ -354,7 +354,7 @@ class LVMFactoryTestCase(DeviceFactoryTestCase): +@@ -357,7 +357,7 @@ class LVMFactoryTestCase(DeviceFactoryTestCase): device = args[0] if kwargs.get("encrypted"): @@ -696,7 +687,7 @@ index dc0d6408..dfd78a7a 100644 else: container = device.container -@@ -373,7 +373,7 @@ class LVMFactoryTestCase(DeviceFactoryTestCase): +@@ -376,7 +376,7 @@ class LVMFactoryTestCase(DeviceFactoryTestCase): self.assertIsInstance(pv, member_class) if pv.encrypted: @@ -705,7 +696,7 @@ index dc0d6408..dfd78a7a 100644 kwargs.get("luks_version", crypto.DEFAULT_LUKS_VERSION)) @patch("blivet.formats.lvmpv.LVMPhysicalVolume.formattable", return_value=True) -@@ -589,7 +589,7 @@ class LVMThinPFactoryTestCase(LVMFactoryTestCase): +@@ -592,7 +592,7 @@ class LVMThinPFactoryTestCase(LVMFactoryTestCase): device = args[0] if kwargs.get("encrypted", False): @@ -714,10 +705,10 @@ index dc0d6408..dfd78a7a 100644 else: thinlv = device -diff --git a/tests/devices_test/size_test.py b/tests/devices_test/size_test.py +diff --git a/tests/unit_tests/devices_test/device_size_test.py b/tests/unit_tests/devices_test/device_size_test.py index d0c0a3f4..a1efa86d 100644 ---- a/tests/devices_test/size_test.py -+++ b/tests/devices_test/size_test.py +--- a/tests/unit_tests/devices_test/device_size_test.py ++++ b/tests/unit_tests/devices_test/device_size_test.py @@ -107,8 +107,8 @@ class LUKSDeviceSizeTest(StorageDeviceSizeTest): def _get_device(self, *args, **kwargs): @@ -735,11 +726,11 @@ index d0c0a3f4..a1efa86d 100644 self.assertEqual(dev.size, initial_size) - self.assertEqual(dev.raw_device.size, initial_size + crypto.LUKS_METADATA_SIZE) + self.assertEqual(dev.slave.size, initial_size + crypto.LUKS_METADATA_SIZE) -diff --git a/tests/populator_test.py b/tests/populator_test.py -index a7748a9d..531ec74b 100644 ---- a/tests/populator_test.py -+++ b/tests/populator_test.py -@@ -81,7 +81,7 @@ class DMDevicePopulatorTestCase(PopulatorHelperTestCase): +diff --git a/tests/unit_tests/populator_test.py b/tests/unit_tests/populator_test.py +index 369fe878..7ba04bac 100644 +--- a/tests/unit_tests/populator_test.py ++++ b/tests/unit_tests/populator_test.py +@@ -86,7 +86,7 @@ class DMDevicePopulatorTestCase(PopulatorHelperTestCase): @patch.object(DeviceTree, "get_device_by_name") @patch.object(DMDevice, "status", return_value=True) @patch.object(DMDevice, "update_sysfs_path") @@ -748,7 +739,7 @@ index a7748a9d..531ec74b 100644 @patch("blivet.udev.device_get_name") @patch("blivet.udev.device_get_sysfs_path", return_value=sentinel.sysfs_path) def test_run(self, *args): -@@ -90,7 +90,7 @@ class DMDevicePopulatorTestCase(PopulatorHelperTestCase): +@@ -95,7 +95,7 @@ class DMDevicePopulatorTestCase(PopulatorHelperTestCase): devicetree = DeviceTree() @@ -756,17 +747,17 @@ index a7748a9d..531ec74b 100644 + # The general case for dm devices is that adding the slave/parent devices # will result in the dm device itself being in the tree. device = Mock() - devicetree.get_device_by_name.return_value = device -@@ -99,7 +99,7 @@ class DMDevicePopulatorTestCase(PopulatorHelperTestCase): - + device.id = 0 +@@ -106,7 +106,7 @@ class DMDevicePopulatorTestCase(PopulatorHelperTestCase): parent = Mock() + parent.id = 0 parent.parents = [] - devicetree._add_parent_devices.return_value = [parent] + devicetree._add_slave_devices.return_value = [parent] devicetree._add_device(parent) devicetree.get_device_by_name.return_value = None device_name = "dmdevice" -@@ -228,7 +228,7 @@ class LVMDevicePopulatorTestCase(PopulatorHelperTestCase): +@@ -235,7 +235,7 @@ class LVMDevicePopulatorTestCase(PopulatorHelperTestCase): # could be the first helper class checked. @patch.object(DeviceTree, "get_device_by_name") @@ -775,7 +766,7 @@ index a7748a9d..531ec74b 100644 @patch("blivet.udev.device_get_name") @patch("blivet.udev.device_get_lv_vg_name") def test_run(self, *args): -@@ -240,7 +240,7 @@ class LVMDevicePopulatorTestCase(PopulatorHelperTestCase): +@@ -247,7 +247,7 @@ class LVMDevicePopulatorTestCase(PopulatorHelperTestCase): devicetree = DeviceTree() data = Mock() @@ -784,7 +775,7 @@ index a7748a9d..531ec74b 100644 device_get_name.return_value = sentinel.lv_name devicetree.get_device_by_name.return_value = None -@@ -260,7 +260,7 @@ class LVMDevicePopulatorTestCase(PopulatorHelperTestCase): +@@ -267,7 +267,7 @@ class LVMDevicePopulatorTestCase(PopulatorHelperTestCase): call(sentinel.vg_name), call(sentinel.lv_name)]) @@ -793,7 +784,7 @@ index a7748a9d..531ec74b 100644 get_device_by_name.side_effect = None get_device_by_name.return_value = None self.assertEqual(helper.run(), None) -@@ -625,7 +625,7 @@ class MDDevicePopulatorTestCase(PopulatorHelperTestCase): +@@ -639,7 +639,7 @@ class MDDevicePopulatorTestCase(PopulatorHelperTestCase): # could be the first helper class checked. @patch.object(DeviceTree, "get_device_by_name") @@ -802,7 +793,7 @@ index a7748a9d..531ec74b 100644 @patch("blivet.udev.device_get_name") @patch("blivet.udev.device_get_md_uuid") @patch("blivet.udev.device_get_md_name") -@@ -636,7 +636,7 @@ class MDDevicePopulatorTestCase(PopulatorHelperTestCase): +@@ -650,7 +650,7 @@ class MDDevicePopulatorTestCase(PopulatorHelperTestCase): devicetree = DeviceTree() @@ -811,7 +802,7 @@ index a7748a9d..531ec74b 100644 data = Mock() device = Mock() device.parents = [] -@@ -699,12 +699,12 @@ class MultipathDevicePopulatorTestCase(PopulatorHelperTestCase): +@@ -713,12 +713,12 @@ class MultipathDevicePopulatorTestCase(PopulatorHelperTestCase): # could be the first helper class checked. @patch("blivet.udev.device_get_sysfs_path") @@ -826,20 +817,20 @@ index a7748a9d..531ec74b 100644 devicetree = DeviceTree() # set up some fake udev data to verify handling of specific entries -@@ -719,13 +719,13 @@ class MultipathDevicePopulatorTestCase(PopulatorHelperTestCase): +@@ -733,13 +733,13 @@ class MultipathDevicePopulatorTestCase(PopulatorHelperTestCase): device_name = "mpathtest" device_get_name.return_value = device_name -- parent_1 = Mock(tags=set(), wwn=wwn[2:]) +- parent_1 = Mock(tags=set(), wwn=wwn[2:], id=0) - parent_1.parents = [] -- parent_2 = Mock(tags=set(), wwn=wwn[2:]) +- parent_2 = Mock(tags=set(), wwn=wwn[2:], id=0) - parent_2.parents = [] - devicetree._add_device(parent_1) - devicetree._add_device(parent_2) - add_parent_devices.return_value = [parent_1, parent_2] -+ slave_1 = Mock(tags=set(), wwn=wwn[2:]) ++ slave_1 = Mock(tags=set(), wwn=wwn[2:], id=0) + slave_1.parents = [] -+ slave_2 = Mock(tags=set(), wwn=wwn[2:]) ++ slave_2 = Mock(tags=set(), wwn=wwn[2:], id=0) + slave_2.parents = [] + devicetree._add_device(slave_1) + devicetree._add_device(slave_2) @@ -847,11 +838,11 @@ index a7748a9d..531ec74b 100644 helper = self.helper_class(devicetree, data) -diff --git a/tests/udev_test.py b/tests/udev_test.py -index f9b10620..d30a647b 100644 ---- a/tests/udev_test.py -+++ b/tests/udev_test.py -@@ -45,11 +45,11 @@ class UdevTest(unittest.TestCase): +diff --git a/tests/unit_tests/udev_test.py b/tests/unit_tests/udev_test.py +index b208efa8..ebcd59e2 100644 +--- a/tests/unit_tests/udev_test.py ++++ b/tests/unit_tests/udev_test.py +@@ -49,11 +49,11 @@ class UdevTest(unittest.TestCase): @mock.patch('blivet.udev.device_is_dm_crypt', return_value=False) @mock.patch('blivet.udev.device_is_md') @mock.patch('blivet.udev.device_get_md_container') @@ -865,7 +856,7 @@ index f9b10620..d30a647b 100644 disk_parents = [dict(DEVTYPE="disk", SYS_PATH='/fake/path/2'), dict(DEVTYPE="disk", SYS_PATH='/fake/path/3')] -@@ -64,20 +64,20 @@ class UdevTest(unittest.TestCase): +@@ -68,20 +68,20 @@ class UdevTest(unittest.TestCase): # Intel FW RAID (MD RAID w/ container layer) # device_get_container will return some mock value which will evaluate to True device_get_md_container.return_value = mock.sentinel.md_container @@ -904,5 +895,5 @@ index 797bac85..6255104f 100644 # # create disk images -- -2.31.1 +2.38.1 diff --git a/SOURCES/0005-DDF-RAID-support-using-mdadm.patch b/SOURCES/0005-DDF-RAID-support-using-mdadm.patch new file mode 100644 index 0000000..1232d02 --- /dev/null +++ b/SOURCES/0005-DDF-RAID-support-using-mdadm.patch @@ -0,0 +1,86 @@ +From f6490c469904f4808c63a170210e53acc908b018 Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Wed, 17 Aug 2022 14:24:21 +0200 +Subject: [PATCH 1/2] Use MD populator instead of DM to handle DDF RAID format + +--- + blivet/formats/dmraid.py | 2 +- + blivet/formats/mdraid.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/blivet/formats/dmraid.py b/blivet/formats/dmraid.py +index 2ba9dcfe..ce15905d 100644 +--- a/blivet/formats/dmraid.py ++++ b/blivet/formats/dmraid.py +@@ -43,7 +43,7 @@ class DMRaidMember(DeviceFormat): + # + # One problem that presents is the possibility of someone passing + # a dmraid member to the MDRaidArrayDevice constructor. +- _udev_types = ["adaptec_raid_member", "ddf_raid_member", ++ _udev_types = ["adaptec_raid_member", + "hpt37x_raid_member", "hpt45x_raid_member", + "isw_raid_member", + "jmicron_raid_member", "lsi_mega_raid_member", +diff --git a/blivet/formats/mdraid.py b/blivet/formats/mdraid.py +index 41ddef81..4aa3f3b0 100644 +--- a/blivet/formats/mdraid.py ++++ b/blivet/formats/mdraid.py +@@ -41,7 +41,7 @@ class MDRaidMember(DeviceFormat): + """ An mdraid member disk. """ + _type = "mdmember" + _name = N_("software RAID") +- _udev_types = ["linux_raid_member"] ++ _udev_types = ["linux_raid_member", "ddf_raid_member"] + parted_flag = PARTITION_RAID + _formattable = True # can be formatted + _supported = True # is supported +-- +2.38.1 + + +From 5fadd850aae217d7692a6c8a50b2dcd5e61a63cd Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Wed, 17 Aug 2022 14:24:58 +0200 +Subject: [PATCH 2/2] Do not read DDF RAID UUID from udev + +The UUID we get from udev isn't the array UUID, we need to get +that using libblockdev. +--- + blivet/populator/helpers/mdraid.py | 16 ++++++++++------ + 1 file changed, 10 insertions(+), 6 deletions(-) + +diff --git a/blivet/populator/helpers/mdraid.py b/blivet/populator/helpers/mdraid.py +index 3479e3f7..a7602d20 100644 +--- a/blivet/populator/helpers/mdraid.py ++++ b/blivet/populator/helpers/mdraid.py +@@ -98,17 +98,21 @@ class MDFormatPopulator(FormatPopulator): + + def _get_kwargs(self): + kwargs = super(MDFormatPopulator, self)._get_kwargs() +- try: +- # ID_FS_UUID contains the array UUID +- kwargs["md_uuid"] = udev.device_get_uuid(self.data) +- except KeyError: +- log.warning("mdraid member %s has no md uuid", udev.device_get_name(self.data)) ++ kwargs["biosraid"] = udev.device_is_biosraid_member(self.data) ++ if not kwargs["biosraid"]: ++ try: ++ # ID_FS_UUID contains the array UUID ++ kwargs["md_uuid"] = udev.device_get_uuid(self.data) ++ except KeyError: ++ log.warning("mdraid member %s has no md uuid", udev.device_get_name(self.data)) ++ else: ++ # for BIOS RAIDs we can't get the UUID from udev, we'll get it from mdadm in `run` below ++ kwargs["md_uuid"] = None + + # reset the uuid to the member-specific value + # this will be None for members of v0 metadata arrays + kwargs["uuid"] = udev.device_get_md_device_uuid(self.data) + +- kwargs["biosraid"] = udev.device_is_biosraid_member(self.data) + return kwargs + + def run(self): +-- +2.38.1 + diff --git a/SOURCES/0005-Fix-activating-old-style-LVM-snapshots.patch b/SOURCES/0005-Fix-activating-old-style-LVM-snapshots.patch deleted file mode 100644 index e07ea1e..0000000 --- a/SOURCES/0005-Fix-activating-old-style-LVM-snapshots.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 8ece3da18b1abb89320d02f4475002e6a3ed7875 Mon Sep 17 00:00:00 2001 -From: Vojtech Trefny -Date: Thu, 20 May 2021 13:40:26 +0200 -Subject: [PATCH] Fix activating old style LVM snapshots - -The old style snapshots are activated together with the origin LV -so we need to make sure it is activated to be able to remove the -snapshot or its format. - -Resolves: rhbz#1961739 ---- - blivet/devices/lvm.py | 10 +++++++--- - 1 file changed, 7 insertions(+), 3 deletions(-) - -diff --git a/blivet/devices/lvm.py b/blivet/devices/lvm.py -index a55515fcb..fb57804d9 100644 ---- a/blivet/devices/lvm.py -+++ b/blivet/devices/lvm.py -@@ -1461,9 +1461,13 @@ def _set_format(self, fmt): # pylint: disable=unused-argument - self._update_format_from_origin() - - @old_snapshot_specific -- def setup(self, orig=False): -- # the old snapshot cannot be setup and torn down -- pass -+ def setup(self, orig=False): # pylint: disable=unused-argument -+ # the old snapshot is activated together with the origin -+ if self.origin and not self.origin.status: -+ try: -+ self.origin.setup() -+ except blockdev.LVMError as lvmerr: -+ log.error("failed to activate origin LV: %s", lvmerr) - - @old_snapshot_specific - def teardown(self, recursive=False): diff --git a/SOURCES/0006-Fix-resolving-devices-with-names-that-look-like-BIOS.patch b/SOURCES/0006-Fix-resolving-devices-with-names-that-look-like-BIOS.patch deleted file mode 100644 index 28c7351..0000000 --- a/SOURCES/0006-Fix-resolving-devices-with-names-that-look-like-BIOS.patch +++ /dev/null @@ -1,75 +0,0 @@ -From 344e624f91010b6041c22ee8a24c9305b82af969 Mon Sep 17 00:00:00 2001 -From: Vojtech Trefny -Date: Tue, 18 May 2021 12:54:02 +0200 -Subject: [PATCH] Fix resolving devices with names that look like BIOS drive - number - -A RAID array named "10" will not be resolved because we try to -resolve it using EDD data and after this lookup fails, we don't -try the name. - -Resolves: rhbz#1960798 ---- - blivet/devicetree.py | 18 +++++++++--------- - tests/devicetree_test.py | 4 ++++ - 2 files changed, 13 insertions(+), 9 deletions(-) - -diff --git a/blivet/devicetree.py b/blivet/devicetree.py -index 88e9f0e5..f4ae1968 100644 ---- a/blivet/devicetree.py -+++ b/blivet/devicetree.py -@@ -634,20 +634,20 @@ class DeviceTreeBase(object): - (label.startswith("'") and label.endswith("'"))): - label = label[1:-1] - device = self.labels.get(label) -- elif re.match(r'(0x)?[A-Fa-f0-9]{2}(p\d+)?$', devspec): -- # BIOS drive number -- (drive, _p, partnum) = devspec.partition("p") -- spec = int(drive, 16) -- for (edd_name, edd_number) in self.edd_dict.items(): -- if edd_number == spec: -- device = self.get_device_by_name(edd_name + partnum) -- break - elif options and "nodev" in options.split(","): - device = self.get_device_by_name(devspec) - if not device: - device = self.get_device_by_path(devspec) - else: -- if not devspec.startswith("/dev/"): -+ if re.match(r'(0x)?[A-Fa-f0-9]{2}(p\d+)?$', devspec): -+ # BIOS drive number -+ (drive, _p, partnum) = devspec.partition("p") -+ spec = int(drive, 16) -+ for (edd_name, edd_number) in self.edd_dict.items(): -+ if edd_number == spec: -+ device = self.get_device_by_name(edd_name + partnum) -+ break -+ if not device and not devspec.startswith("/dev/"): - device = self.get_device_by_name(devspec) - if not device: - devspec = "/dev/" + devspec -diff --git a/tests/devicetree_test.py b/tests/devicetree_test.py -index 11f8469d..b033343d 100644 ---- a/tests/devicetree_test.py -+++ b/tests/devicetree_test.py -@@ -49,6 +49,9 @@ class DeviceTreeTestCase(unittest.TestCase): - dev3 = StorageDevice("sdp2", exists=True) - dt._add_device(dev3) - -+ dev4 = StorageDevice("10", exists=True) -+ dt._add_device(dev4) -+ - dt.edd_dict.update({"dev1": 0x81, - "dev2": 0x82}) - -@@ -62,6 +65,7 @@ class DeviceTreeTestCase(unittest.TestCase): - self.assertEqual(dt.resolve_device("0x82"), dev2) - - self.assertEqual(dt.resolve_device(dev3.name), dev3) -+ self.assertEqual(dt.resolve_device(dev4.name), dev4) - - def test_device_name(self): - # check that devicetree.names property contains all device's names --- -2.31.1 - diff --git a/SOURCES/0006-Revert-Remove-the-Blivet.roots-attribute.patch b/SOURCES/0006-Revert-Remove-the-Blivet.roots-attribute.patch new file mode 100644 index 0000000..76f3db8 --- /dev/null +++ b/SOURCES/0006-Revert-Remove-the-Blivet.roots-attribute.patch @@ -0,0 +1,77 @@ +From 62af1d7f96b8ed8eb8f2732787576161ae5da79f Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Thu, 13 Oct 2022 10:47:52 +0200 +Subject: [PATCH] Revert "Remove the Blivet.roots attribute" + +This reverts commit 19a826073345ca6b57a8f9a95ec855892320300e. +--- + blivet/blivet.py | 21 +++++++++++++++++++++ + blivet/devicefactory.py | 3 +++ + 2 files changed, 24 insertions(+) + +diff --git a/blivet/blivet.py b/blivet/blivet.py +index bf72ee9c..dc066b03 100644 +--- a/blivet/blivet.py ++++ b/blivet/blivet.py +@@ -88,6 +88,7 @@ class Blivet(object): + self.devicetree = DeviceTree(ignored_disks=self.ignored_disks, + exclusive_disks=self.exclusive_disks, + disk_images=self.disk_images) ++ self.roots = [] + + @property + def short_product_name(self): +@@ -1314,5 +1315,25 @@ class Blivet(object): + p = partition.disk.format.parted_disk.getPartitionByPath(partition.path) + partition.parted_partition = p + ++ for root in new.roots: ++ root.swaps = [new.devicetree.get_device_by_id(d.id, hidden=True) for d in root.swaps] ++ root.swaps = [s for s in root.swaps if s] ++ ++ removed = set() ++ for (mountpoint, old_dev) in root.mounts.items(): ++ if old_dev is None: ++ continue ++ ++ new_dev = new.devicetree.get_device_by_id(old_dev.id, hidden=True) ++ if new_dev is None: ++ # if the device has been removed don't include this ++ # mountpoint at all ++ removed.add(mountpoint) ++ else: ++ root.mounts[mountpoint] = new_dev ++ ++ for mnt in removed: ++ del root.mounts[mnt] ++ + log.debug("finished Blivet copy") + return new +diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py +index 8105bfc7..6f460f6d 100644 +--- a/blivet/devicefactory.py ++++ b/blivet/devicefactory.py +@@ -383,6 +383,7 @@ class DeviceFactory(object): + # used for error recovery + self.__devices = [] + self.__actions = [] ++ self.__roots = [] + + def _is_container_encrypted(self): + return all(isinstance(p, LUKSDevice) for p in self.device.container.parents) +@@ -994,10 +995,12 @@ class DeviceFactory(object): + _blivet_copy = self.storage.copy() + self.__devices = _blivet_copy.devicetree._devices + self.__actions = _blivet_copy.devicetree._actions ++ self.__roots = _blivet_copy.roots + + def _revert_devicetree(self): + self.storage.devicetree._devices = self.__devices + self.storage.devicetree._actions = self.__actions ++ self.storage.roots = self.__roots + + + class PartitionFactory(DeviceFactory): +-- +2.38.1 + diff --git a/SOURCES/0007-Do-not-set-chunk-size-for-RAID1.patch b/SOURCES/0007-Do-not-set-chunk-size-for-RAID1.patch deleted file mode 100644 index 2b40cfa..0000000 --- a/SOURCES/0007-Do-not-set-chunk-size-for-RAID1.patch +++ /dev/null @@ -1,151 +0,0 @@ -From dc1e2fe7783748528cac2f7aa516c89d1959b052 Mon Sep 17 00:00:00 2001 -From: Vojtech Trefny -Date: Thu, 29 Jul 2021 14:44:22 +0200 -Subject: [PATCH] Do not set chunk size for RAID 1 - -Setting chunk size for RAID 1 doesn't make sense and latest -mdadm started returning error instead of ignoring the --chunk -option when creating an array. - -Resolves: rhbz#1987170 ---- - blivet/devicelibs/raid.py | 12 ++++++++++ - blivet/devices/md.py | 15 ++++++++++--- - tests/devices_test/md_test.py | 41 +++++++++++++++++++++++++++++++++-- - 3 files changed, 63 insertions(+), 5 deletions(-) - -diff --git a/blivet/devicelibs/raid.py b/blivet/devicelibs/raid.py -index 19c3fae98..a9e241c7a 100644 ---- a/blivet/devicelibs/raid.py -+++ b/blivet/devicelibs/raid.py -@@ -462,6 +462,18 @@ def _pad(self, size, chunk_size): - def _get_recommended_stride(self, member_count): - return None - -+ def get_size(self, member_sizes, num_members=None, chunk_size=None, superblock_size_func=None): -+ if not member_sizes: -+ return Size(0) -+ -+ if num_members is None: -+ num_members = len(member_sizes) -+ -+ min_size = min(member_sizes) -+ superblock_size = superblock_size_func(min_size) -+ min_data_size = self._trim(min_size - superblock_size, chunk_size) -+ return self.get_net_array_size(num_members, min_data_size) -+ - - RAID1 = RAID1() - ALL_LEVELS.add_raid_level(RAID1) -diff --git a/blivet/devices/md.py b/blivet/devices/md.py -index 69eee93a5..d1a2faf1f 100644 ---- a/blivet/devices/md.py -+++ b/blivet/devices/md.py -@@ -138,7 +138,7 @@ def __init__(self, name, level=None, major=None, minor=None, size=None, - if self.exists: - self._chunk_size = self.read_chunk_size() - else: -- self._chunk_size = chunk_size or mdraid.MD_CHUNK_SIZE -+ self.chunk_size = chunk_size or Size(0) - - if not self.exists and not isinstance(metadata_version, str): - self.metadata_version = "default" -@@ -208,8 +208,14 @@ def sector_size(self): - - @property - def chunk_size(self): -- if self.exists and self._chunk_size == Size(0): -- self._chunk_size = self.read_chunk_size() -+ if self._chunk_size == Size(0): -+ if self.exists: -+ return self.read_chunk_size() -+ else: -+ if self.level == raid.RAID1: -+ return self._chunk_size -+ else: -+ return mdraid.MD_CHUNK_SIZE - return self._chunk_size - - @chunk_size.setter -@@ -223,6 +229,9 @@ def chunk_size(self, newsize): - if self.exists: - raise ValueError("cannot set chunk size for an existing device") - -+ if self.level == raid.RAID1 and newsize != Size(0): -+ raise ValueError("specifying chunk size is not allowed for raid1") -+ - self._chunk_size = newsize - - def read_chunk_size(self): -diff --git a/tests/devices_test/md_test.py b/tests/devices_test/md_test.py -index 46df76d3d..47a0fa0cc 100644 ---- a/tests/devices_test/md_test.py -+++ b/tests/devices_test/md_test.py -@@ -1,6 +1,11 @@ - import six - import unittest - -+try: -+ from unittest.mock import patch -+except ImportError: -+ from mock import patch -+ - import blivet - - from blivet.devices import StorageDevice -@@ -27,9 +32,27 @@ def test_chunk_size1(self): - raid_array = MDRaidArrayDevice(name="raid", level="raid0", member_devices=2, - total_devices=2, parents=[member1, member2]) - -- # no chunk_size specified -- default value -+ # no chunk_size specified and RAID0 -- default value - self.assertEqual(raid_array.chunk_size, mdraid.MD_CHUNK_SIZE) - -+ with patch("blivet.devices.md.blockdev.md.create") as md_create: -+ raid_array._create() -+ md_create.assert_called_with("/dev/md/raid", "raid0", ["/dev/member1", "/dev/member2"], -+ 0, version="default", bitmap=False, -+ chunk_size=mdraid.MD_CHUNK_SIZE) -+ -+ raid_array = MDRaidArrayDevice(name="raid", level="raid1", member_devices=2, -+ total_devices=2, parents=[member1, member2]) -+ -+ # no chunk_size specified and RAID1 -- no chunk size set (0) -+ self.assertEqual(raid_array.chunk_size, Size(0)) -+ -+ with patch("blivet.devices.md.blockdev.md.create") as md_create: -+ raid_array._create() -+ md_create.assert_called_with("/dev/md/raid", "raid1", ["/dev/member1", "/dev/member2"], -+ 0, version="default", bitmap=True, -+ chunk_size=0) -+ - def test_chunk_size2(self): - - member1 = StorageDevice("member1", fmt=blivet.formats.get_format("mdmember"), -@@ -40,11 +63,25 @@ def test_chunk_size2(self): - raid_array = MDRaidArrayDevice(name="raid", level="raid0", member_devices=2, - total_devices=2, parents=[member1, member2], - chunk_size=Size("1024 KiB")) -- - self.assertEqual(raid_array.chunk_size, Size("1024 KiB")) - -+ # for raid0 setting chunk_size = 0 means "default" -+ raid_array.chunk_size = Size(0) -+ self.assertEqual(raid_array.chunk_size, mdraid.MD_CHUNK_SIZE) -+ - with six.assertRaisesRegex(self, ValueError, "new chunk size must be of type Size"): - raid_array.chunk_size = 1 - - with six.assertRaisesRegex(self, ValueError, "new chunk size must be multiple of 4 KiB"): - raid_array.chunk_size = Size("5 KiB") -+ -+ with six.assertRaisesRegex(self, ValueError, "specifying chunk size is not allowed for raid1"): -+ MDRaidArrayDevice(name="raid", level="raid1", member_devices=2, -+ total_devices=2, parents=[member1, member2], -+ chunk_size=Size("1024 KiB")) -+ -+ raid_array = MDRaidArrayDevice(name="raid", level="raid1", member_devices=2, -+ total_devices=2, parents=[member1, member2]) -+ -+ with six.assertRaisesRegex(self, ValueError, "specifying chunk size is not allowed for raid1"): -+ raid_array.chunk_size = Size("512 KiB") diff --git a/SOURCES/0007-Fix-potential-AttributeError-when-getting-stratis-bl.patch b/SOURCES/0007-Fix-potential-AttributeError-when-getting-stratis-bl.patch new file mode 100644 index 0000000..e117038 --- /dev/null +++ b/SOURCES/0007-Fix-potential-AttributeError-when-getting-stratis-bl.patch @@ -0,0 +1,45 @@ +From 1561bfe8820118178bbb07021adc1cacd875c4c7 Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Tue, 18 Oct 2022 12:28:37 +0200 +Subject: [PATCH] Fix potential AttributeError when getting stratis blockdev + info + +--- + blivet/static_data/stratis_info.py | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +diff --git a/blivet/static_data/stratis_info.py b/blivet/static_data/stratis_info.py +index bd1c5a18..42f230ee 100644 +--- a/blivet/static_data/stratis_info.py ++++ b/blivet/static_data/stratis_info.py +@@ -124,20 +124,22 @@ class StratisInfo(object): + log.error("Failed to get DBus properties of '%s'", blockdev_path) + return None + ++ blockdev_uuid = str(uuid.UUID(properties["Uuid"])) ++ + pool_path = properties["Pool"] + if pool_path == "/": + pool_name = "" ++ return StratisBlockdevInfo(path=properties["Devnode"], uuid=blockdev_uuid, ++ pool_name="", pool_uuid="", object_path=blockdev_path) + else: + pool_info = self._get_pool_info(properties["Pool"]) + if not pool_info: + return None + pool_name = pool_info.name + +- blockdev_uuid = str(uuid.UUID(properties["Uuid"])) +- +- return StratisBlockdevInfo(path=properties["Devnode"], uuid=blockdev_uuid, +- pool_name=pool_name, pool_uuid=pool_info.uuid, +- object_path=blockdev_path) ++ return StratisBlockdevInfo(path=properties["Devnode"], uuid=blockdev_uuid, ++ pool_name=pool_name, pool_uuid=pool_info.uuid, ++ object_path=blockdev_path) + + def _get_locked_pools_info(self): + locked_pools = [] +-- +2.38.1 + diff --git a/SOURCES/0008-Fix-running-tests-in-gating.patch b/SOURCES/0008-Fix-running-tests-in-gating.patch deleted file mode 100644 index b24cd44..0000000 --- a/SOURCES/0008-Fix-running-tests-in-gating.patch +++ /dev/null @@ -1,240 +0,0 @@ -From 3b9a781e138830a190d16c8dd970b800a086de46 Mon Sep 17 00:00:00 2001 -From: Vojtech Trefny -Date: Wed, 4 Aug 2021 13:00:53 +0200 -Subject: [PATCH 1/3] edd_test: Locate the edd_data based on the test file - location - -We can't use the blivet.edd module location when running tests -against installed version of blivet. ---- - tests/devicelibs_test/edd_test.py | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - -diff --git a/tests/devicelibs_test/edd_test.py b/tests/devicelibs_test/edd_test.py -index 23d736f4..7ec8d1e6 100644 ---- a/tests/devicelibs_test/edd_test.py -+++ b/tests/devicelibs_test/edd_test.py -@@ -1,7 +1,6 @@ - import unittest - import mock - import os --import inspect - import logging - import copy - -@@ -110,9 +109,9 @@ class EddTestCase(unittest.TestCase): - name = name[:-1] - if name.startswith("/"): - name = name[1:] -- dirname = os.path.dirname(inspect.getfile(edd)) -+ dirname = os.path.abspath(os.path.dirname(__file__)) - return os.path.join(dirname, -- "../../tests/devicelibs_test/edd_data/", -+ "edd_data/", - name) - - def edd_debug(self, *args): --- -2.31.1 - - -From 7ad3824fceb98e2741820b76a9cfea5add338343 Mon Sep 17 00:00:00 2001 -From: Vojtech Trefny -Date: Wed, 4 Aug 2021 13:02:08 +0200 -Subject: [PATCH 2/3] tests: Allow running tests without the tests directory in - PYTHONPATH - -When running the tests against installed version of blivet, the -"tests" directory is not in PYTHONPATH so we need to import all -helper modules using relative path. ---- - tests/action_test.py | 2 +- - tests/devicelibs_test/edd_test.py | 2 +- - tests/{ => devicelibs_test}/lib.py | 0 - tests/formats_test/fs_test.py | 2 +- - tests/formats_test/fslabeling.py | 2 +- - tests/formats_test/fstesting.py | 2 +- - tests/formats_test/fsuuid.py | 2 +- - tests/formats_test/labeling_test.py | 2 +- - tests/{ => formats_test}/loopbackedtestcase.py | 0 - tests/formats_test/luks_test.py | 2 +- - tests/formats_test/lvmpv_test.py | 2 +- - tests/partitioning_test.py | 2 +- - 12 files changed, 10 insertions(+), 10 deletions(-) - rename tests/{ => devicelibs_test}/lib.py (100%) - rename tests/{ => formats_test}/loopbackedtestcase.py (100%) - -diff --git a/tests/action_test.py b/tests/action_test.py -index 38a2e872..1e84c20b 100644 ---- a/tests/action_test.py -+++ b/tests/action_test.py -@@ -6,7 +6,7 @@ if PY3: - else: - from mock import Mock - --from tests.storagetestcase import StorageTestCase -+from storagetestcase import StorageTestCase - import blivet - from blivet.formats import get_format - from blivet.size import Size -diff --git a/tests/devicelibs_test/edd_test.py b/tests/devicelibs_test/edd_test.py -index 7ec8d1e6..379c7aeb 100644 ---- a/tests/devicelibs_test/edd_test.py -+++ b/tests/devicelibs_test/edd_test.py -@@ -6,7 +6,7 @@ import copy - - from blivet import arch - from blivet.devicelibs import edd --from tests import lib -+from . import lib - - - class FakeDevice(object): -diff --git a/tests/lib.py b/tests/devicelibs_test/lib.py -similarity index 100% -rename from tests/lib.py -rename to tests/devicelibs_test/lib.py -diff --git a/tests/formats_test/fs_test.py b/tests/formats_test/fs_test.py -index ab3499a7..bd643370 100644 ---- a/tests/formats_test/fs_test.py -+++ b/tests/formats_test/fs_test.py -@@ -10,7 +10,7 @@ from blivet.errors import DeviceFormatError - from blivet.formats import get_format - from blivet.devices import PartitionDevice, DiskDevice - --from tests import loopbackedtestcase -+from . import loopbackedtestcase - - from . import fstesting - -diff --git a/tests/formats_test/fslabeling.py b/tests/formats_test/fslabeling.py -index fbb28eee..0e0dc261 100644 ---- a/tests/formats_test/fslabeling.py -+++ b/tests/formats_test/fslabeling.py -@@ -2,7 +2,7 @@ - import abc - import six - --from tests import loopbackedtestcase -+from . import loopbackedtestcase - from blivet.errors import FSError, FSReadLabelError - from blivet.size import Size - -diff --git a/tests/formats_test/fstesting.py b/tests/formats_test/fstesting.py -index 86b2a116..e34584d8 100644 ---- a/tests/formats_test/fstesting.py -+++ b/tests/formats_test/fstesting.py -@@ -5,7 +5,7 @@ from six import add_metaclass - import os - import tempfile - --from tests import loopbackedtestcase -+from . import loopbackedtestcase - from blivet.errors import FSError, FSResizeError, DeviceFormatError - from blivet.size import Size, ROUND_DOWN - from blivet.formats import fs -diff --git a/tests/formats_test/fsuuid.py b/tests/formats_test/fsuuid.py -index c8003945..16aa19a6 100644 ---- a/tests/formats_test/fsuuid.py -+++ b/tests/formats_test/fsuuid.py -@@ -3,7 +3,7 @@ import abc - import six - from unittest import skipIf - --from tests import loopbackedtestcase -+from . import loopbackedtestcase - from blivet.errors import FSError, FSWriteUUIDError - from blivet.size import Size - from blivet.util import capture_output -diff --git a/tests/formats_test/labeling_test.py b/tests/formats_test/labeling_test.py -index e26cb7df..d24e6619 100644 ---- a/tests/formats_test/labeling_test.py -+++ b/tests/formats_test/labeling_test.py -@@ -1,10 +1,10 @@ - import unittest - --from tests import loopbackedtestcase - from blivet.formats import device_formats - import blivet.formats.fs as fs - import blivet.formats.swap as swap - -+from . import loopbackedtestcase - from . import fslabeling - - -diff --git a/tests/loopbackedtestcase.py b/tests/formats_test/loopbackedtestcase.py -similarity index 100% -rename from tests/loopbackedtestcase.py -rename to tests/formats_test/loopbackedtestcase.py -diff --git a/tests/formats_test/luks_test.py b/tests/formats_test/luks_test.py -index be0d50b0..5423ebdf 100644 ---- a/tests/formats_test/luks_test.py -+++ b/tests/formats_test/luks_test.py -@@ -7,7 +7,7 @@ from blivet.formats.luks import LUKS - - from blivet.size import Size - --from tests import loopbackedtestcase -+from . import loopbackedtestcase - - - class LUKSTestCase(loopbackedtestcase.LoopBackedTestCase): -diff --git a/tests/formats_test/lvmpv_test.py b/tests/formats_test/lvmpv_test.py -index 792a2f1d..da7270d9 100644 ---- a/tests/formats_test/lvmpv_test.py -+++ b/tests/formats_test/lvmpv_test.py -@@ -4,7 +4,7 @@ from blivet.formats.lvmpv import LVMPhysicalVolume - - from blivet.size import Size - --from tests import loopbackedtestcase -+from . import loopbackedtestcase - - - class LVMPVTestCase(loopbackedtestcase.LoopBackedTestCase): -diff --git a/tests/partitioning_test.py b/tests/partitioning_test.py -index b7aa5045..a713aaa1 100644 ---- a/tests/partitioning_test.py -+++ b/tests/partitioning_test.py -@@ -29,7 +29,7 @@ from blivet.devices.lvm import LVMCacheRequest - - from blivet.errors import PartitioningError - --from tests.imagebackedtestcase import ImageBackedTestCase -+from imagebackedtestcase import ImageBackedTestCase - from blivet.blivet import Blivet - from blivet.util import sparsetmpfile - from blivet.formats import get_format --- -2.31.1 - - -From 9ee41c8b60c56ce752e305be73001c7089f43011 Mon Sep 17 00:00:00 2001 -From: Vojtech Trefny -Date: Fri, 6 Aug 2021 14:51:01 +0200 -Subject: [PATCH 3/3] tests: Print version and blivet location when running - tests - ---- - tests/run_tests.py | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/tests/run_tests.py b/tests/run_tests.py -index 32e3f2d3..8ad8b61a 100644 ---- a/tests/run_tests.py -+++ b/tests/run_tests.py -@@ -32,6 +32,11 @@ if __name__ == '__main__': - - testdir = os.path.abspath(os.path.dirname(__file__)) - -+ import blivet -+ print("Running tests with Blivet %s from %s" % (blivet.__version__, -+ os.path.abspath(os.path.dirname(blivet.__file__))), -+ file=sys.stderr) -+ - if args.testname: - for n in args.testname: - suite.addTests(unittest.TestLoader().loadTestsFromName(n)) --- -2.31.1 - diff --git a/SOURCES/0008-tests-Skip-XFS-resize-test-on-CentOS-RHEL-8.patch b/SOURCES/0008-tests-Skip-XFS-resize-test-on-CentOS-RHEL-8.patch new file mode 100644 index 0000000..634eead --- /dev/null +++ b/SOURCES/0008-tests-Skip-XFS-resize-test-on-CentOS-RHEL-8.patch @@ -0,0 +1,27 @@ +From b747c4ed07937f54a546ffb2f2c8c95e0797dd6c Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Thu, 20 Oct 2022 15:19:29 +0200 +Subject: [PATCH] tests: Skip XFS resize test on CentOS/RHEL 8 + +Partitions on loop devices are broken on CentOS/RHEL 8. +--- + tests/skip.yml | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/tests/skip.yml b/tests/skip.yml +index 568c3fff..66b34493 100644 +--- a/tests/skip.yml ++++ b/tests/skip.yml +@@ -29,3 +29,9 @@ + - distro: "centos" + version: "9" + reason: "Creating RAID 1 LV on CentOS/RHEL 9 causes a system deadlock" ++ ++- test: storage_tests.formats_test.fs_test.XFSTestCase.test_resize ++ skip_on: ++ - distro: ["centos", "enterprise_linux"] ++ version: "8" ++ reason: "Creating partitions on loop devices is broken on CentOS/RHEL 8 latest kernel" +-- +2.37.3 + diff --git a/SOURCES/0009-PO-update.patch b/SOURCES/0009-PO-update.patch deleted file mode 100644 index 9f9b8c6..0000000 --- a/SOURCES/0009-PO-update.patch +++ /dev/null @@ -1,2288 +0,0 @@ -diff --git a/po/blivet.pot b/po/blivet.pot -index 7c7e376..15a08f7 100644 ---- a/po/blivet.pot -+++ b/po/blivet.pot -@@ -8,7 +8,7 @@ msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" --"POT-Creation-Date: 2020-01-29 14:04+0100\n" -+"POT-Creation-Date: 2021-06-08 10:33+0200\n" - "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" - "Last-Translator: FULL NAME \n" - "Language-Team: LANGUAGE \n" -@@ -18,120 +18,112 @@ msgstr "" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" - --#: ../blivet/errors.py:210 --msgid "" --"This is usually caused by cloning the device image resulting in duplication " --"of the UUID value which should be unique. In that case you can either " --"disconnect one of the devices or reformat it." -+#: ../blivet/deviceaction.py:196 -+#, python-format -+msgid "Executing %(action)s" - msgstr "" - --#: ../blivet/errors.py:217 --msgid "" --"For some reason we were unable to locate a disklabel on a disk that the " --"kernel is reporting partitions on. It is unclear what the exact problem is. " --"Please file a bug at http://bugzilla.redhat.com" -+#: ../blivet/deviceaction.py:324 -+msgid "create device" - msgstr "" - --#: ../blivet/errors.py:224 --msgid "" --"Either restore the disklabel to a completely working state or remove it " --"completely.\n" --"Hint: parted can restore it or wipefs can remove it." -+#: ../blivet/deviceaction.py:383 -+msgid "destroy device" - msgstr "" - --#: ../blivet/errors.py:230 --msgid "" --"Rename one of the volume groups so the names are distinct.\n" --"Hint 1: vgrename accepts UUID in place of the old name.\n" --"Hint 2: You can get the VG UUIDs by running 'pvs -o +vg_uuid'." -+#: ../blivet/deviceaction.py:494 -+msgid "resize device" - msgstr "" - --#: ../blivet/fcoe.py:121 --msgid "FCoE not available" -+#: ../blivet/deviceaction.py:583 -+msgid "create format" - msgstr "" - --#: ../blivet/zfcp.py:62 --msgid "You have not specified a device number or the number is invalid" -+#: ../blivet/deviceaction.py:623 -+#, python-format -+msgid "Creating %(type)s on %(device)s" - msgstr "" - --#: ../blivet/zfcp.py:64 --msgid "You have not specified a worldwide port name or the name is invalid." -+#: ../blivet/deviceaction.py:650 -+#, python-format -+msgid "Not enough entropy to create LUKS format. %d bits are needed." - msgstr "" - --#: ../blivet/zfcp.py:66 --msgid "You have not specified a FCP LUN or the number is invalid." -+#: ../blivet/deviceaction.py:680 -+#, python-format -+msgid "Created %(type)s on %(device)s" - msgstr "" - --#: ../blivet/zfcp.py:91 --#, python-format --msgid "zFCP device %s not found, not even in device ignore list." -+#: ../blivet/deviceaction.py:729 -+msgid "destroy format" - msgstr "" - --#: ../blivet/zfcp.py:101 --#, python-format --msgid "Could not set zFCP device %(devnum)s online (%(e)s)." -+#: ../blivet/deviceaction.py:842 -+msgid "resize format" - msgstr "" - --#: ../blivet/zfcp.py:112 -+#: ../blivet/deviceaction.py:881 - #, python-format --msgid "Could not add WWPN %(wwpn)s to zFCP device %(devnum)s (%(e)s)." -+msgid "Resizing filesystem on %(device)s" - msgstr "" - --#. newer zfcp sysfs interface with auto port scan --#: ../blivet/zfcp.py:119 -+#: ../blivet/deviceaction.py:888 - #, python-format --msgid "WWPN %(wwpn)s not found at zFCP device %(devnum)s." -+msgid "Resized filesystem on %(device)s" - msgstr "" - --#: ../blivet/zfcp.py:134 --#, python-format --msgid "" --"Could not add LUN %(fcplun)s to WWPN %(wwpn)s on zFCP device %(devnum)s " --"(%(e)s)." -+#: ../blivet/deviceaction.py:935 -+msgid "add container member" - msgstr "" - --#: ../blivet/zfcp.py:140 --#, python-format --msgid "" --"LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s already configured." -+#: ../blivet/deviceaction.py:1000 -+msgid "remove container member" - msgstr "" - --#: ../blivet/zfcp.py:152 --#, python-format -+#: ../blivet/deviceaction.py:1070 -+msgid "configure format" -+msgstr "" -+ -+#: ../blivet/deviceaction.py:1126 -+msgid "configure device" -+msgstr "" -+ -+#: ../blivet/errors.py:214 - msgid "" --"Could not read failed attribute of LUN %(fcplun)s at WWPN %(wwpn)s on zFCP " --"device %(devnum)s (%(e)s)." -+"This is usually caused by cloning the device image resulting in duplication " -+"of the UUID value which should be unique. In that case you can either " -+"disconnect one of the devices or reformat it." - msgstr "" - --#: ../blivet/zfcp.py:161 --#, python-format -+#: ../blivet/errors.py:221 - msgid "" --"Failed LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s removed " --"again." -+"For some reason we were unable to locate a disklabel on a disk that the " -+"kernel is reporting partitions on. It is unclear what the exact problem is. " -+"Please file a bug at http://bugzilla.redhat.com" - msgstr "" - --#: ../blivet/zfcp.py:218 --#, python-format -+#: ../blivet/errors.py:228 - msgid "" --"Could not correctly delete SCSI device of zFCP %(devnum)s %(wwpn)s " --"%(fcplun)s (%(e)s)." -+"Either restore the disklabel to a completely working state or remove it " -+"completely.\n" -+"Hint: parted can restore it or wipefs can remove it." - msgstr "" - --#: ../blivet/zfcp.py:227 --#, python-format -+#: ../blivet/errors.py:234 - msgid "" --"Could not remove LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s " --"(%(e)s)." -+"Rename one of the volume groups so the names are distinct.\n" -+"Hint 1: vgrename accepts UUID in place of the old name.\n" -+"Hint 2: You can get the VG UUIDs by running 'pvs -o +vg_uuid'." - msgstr "" - --#: ../blivet/zfcp.py:245 --#, python-format --msgid "Could not remove WWPN %(wwpn)s on zFCP device %(devnum)s (%(e)s)." -+#: ../blivet/errors.py:242 -+msgid "" -+"All parent devices must be selected when choosing exclusive or ignored disks " -+"for a multipath or firmware RAID device." - msgstr "" - --#: ../blivet/zfcp.py:271 --#, python-format --msgid "Could not set zFCP device %(devnum)s offline (%(e)s)." -+#: ../blivet/fcoe.py:121 -+msgid "FCoE not available" - msgstr "" - - #: ../blivet/iscsi.py:217 -@@ -142,155 +134,182 @@ msgstr "" - msgid "Must provide an iSCSI initiator name" - msgstr "" - --#: ../blivet/iscsi.py:410 -+#: ../blivet/iscsi.py:413 - msgid "iSCSI not available" - msgstr "" - --#: ../blivet/iscsi.py:412 -+#: ../blivet/iscsi.py:415 - msgid "No initiator name set" - msgstr "" - --#: ../blivet/iscsi.py:530 -+#: ../blivet/iscsi.py:533 - msgid "No iSCSI nodes discovered" - msgstr "" - --#: ../blivet/iscsi.py:550 -+#: ../blivet/iscsi.py:553 - msgid "No new iSCSI nodes discovered" - msgstr "" - --#: ../blivet/iscsi.py:553 -+#: ../blivet/iscsi.py:556 - msgid "Could not log in to any of the discovered nodes" - msgstr "" - --#: ../blivet/partitioning.py:454 -+#: ../blivet/partitioning.py:455 - msgid "unable to allocate aligned partition" - msgstr "" - --#: ../blivet/partitioning.py:462 -+#: ../blivet/partitioning.py:463 - msgid "requested size exceeds maximum allowed" - msgstr "" - --#: ../blivet/partitioning.py:580 -+#: ../blivet/partitioning.py:475 -+#, python-format -+msgid "failed to add partition to disk: %s" -+msgstr "" -+ -+#: ../blivet/partitioning.py:586 - #, python-format - msgid "disk %s inaccessible" - msgstr "" - --#: ../blivet/partitioning.py:641 -+#: ../blivet/partitioning.py:647 - #, python-format - msgid "" - "partition is too small for %(format)s formatting (allowable size is " - "%(min_size)s to %(max_size)s)" - msgstr "" - --#: ../blivet/partitioning.py:646 -+#: ../blivet/partitioning.py:652 - #, python-format - msgid "" - "partition is too large for %(format)s formatting (allowable size is " - "%(min_size)s to %(max_size)s)" - msgstr "" - --#: ../blivet/partitioning.py:962 -+#: ../blivet/partitioning.py:968 - msgid "Unable to allocate requested partition scheme." - msgstr "" - --#: ../blivet/partitioning.py:997 -+#: ../blivet/partitioning.py:1003 - msgid "not enough free space after creating extended partition" - msgstr "" - --#: ../blivet/partitioning.py:1004 -+#: ../blivet/partitioning.py:1010 - msgid "failed to allocate aligned partition" - msgstr "" - --#: ../blivet/partitioning.py:1205 -+#: ../blivet/partitioning.py:1211 - msgid "cannot reclaim more than request has grown" - msgstr "" - --#: ../blivet/partitioning.py:1419 -+#: ../blivet/partitioning.py:1425 - msgid "DiskChunk requests must be of type PartitionRequest" - msgstr "" - --#: ../blivet/partitioning.py:1432 -+#: ../blivet/partitioning.py:1438 - msgid "partitions allocated outside disklabel limits" - msgstr "" - --#: ../blivet/partitioning.py:1517 -+#: ../blivet/partitioning.py:1523 - msgid "VGChunk requests must be of type LVRequest" - msgstr "" - - #. by now we have allocated the PVs so if there isn't enough - #. space in the VG we have a real problem --#: ../blivet/partitioning.py:2025 -+#: ../blivet/partitioning.py:2031 - msgid "not enough space for LVM requests" - msgstr "" - --#: ../blivet/deviceaction.py:194 --#, python-format --msgid "Executing %(action)s" -+#: ../blivet/zfcp.py:62 -+msgid "You have not specified a device number or the number is invalid" - msgstr "" - --#: ../blivet/deviceaction.py:322 --msgid "create device" -+#: ../blivet/zfcp.py:64 -+msgid "You have not specified a worldwide port name or the name is invalid." - msgstr "" - --#: ../blivet/deviceaction.py:381 --msgid "destroy device" -+#: ../blivet/zfcp.py:66 -+msgid "You have not specified a FCP LUN or the number is invalid." - msgstr "" - --#: ../blivet/deviceaction.py:484 --msgid "resize device" -+#: ../blivet/zfcp.py:91 -+#, python-format -+msgid "zFCP device %s not found, not even in device ignore list." - msgstr "" - --#: ../blivet/deviceaction.py:573 --msgid "create format" -+#: ../blivet/zfcp.py:101 -+#, python-format -+msgid "Could not set zFCP device %(devnum)s online (%(e)s)." - msgstr "" - --#: ../blivet/deviceaction.py:613 -+#: ../blivet/zfcp.py:112 - #, python-format --msgid "Creating %(type)s on %(device)s" -+msgid "Could not add WWPN %(wwpn)s to zFCP device %(devnum)s (%(e)s)." - msgstr "" - --#: ../blivet/deviceaction.py:640 -+#. newer zfcp sysfs interface with auto port scan -+#: ../blivet/zfcp.py:119 - #, python-format --msgid "Not enough entropy to create LUKS format. %d bits are needed." -+msgid "WWPN %(wwpn)s not found at zFCP device %(devnum)s." - msgstr "" - --#: ../blivet/deviceaction.py:670 -+#: ../blivet/zfcp.py:134 - #, python-format --msgid "Created %(type)s on %(device)s" -+msgid "" -+"Could not add LUN %(fcplun)s to WWPN %(wwpn)s on zFCP device %(devnum)s " -+"(%(e)s)." - msgstr "" - --#: ../blivet/deviceaction.py:717 --msgid "destroy format" -+#: ../blivet/zfcp.py:140 -+#, python-format -+msgid "" -+"LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s already configured." - msgstr "" - --#: ../blivet/deviceaction.py:830 --msgid "resize format" -+#: ../blivet/zfcp.py:152 -+#, python-format -+msgid "" -+"Could not read failed attribute of LUN %(fcplun)s at WWPN %(wwpn)s on zFCP " -+"device %(devnum)s (%(e)s)." - msgstr "" - --#: ../blivet/deviceaction.py:869 -+#: ../blivet/zfcp.py:161 - #, python-format --msgid "Resizing filesystem on %(device)s" -+msgid "" -+"Failed LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s removed " -+"again." - msgstr "" - --#: ../blivet/deviceaction.py:876 -+#: ../blivet/zfcp.py:218 - #, python-format --msgid "Resized filesystem on %(device)s" -+msgid "" -+"Could not correctly delete SCSI device of zFCP %(devnum)s %(wwpn)s " -+"%(fcplun)s (%(e)s)." - msgstr "" - --#: ../blivet/deviceaction.py:923 --msgid "add container member" -+#: ../blivet/zfcp.py:227 -+#, python-format -+msgid "" -+"Could not remove LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s " -+"(%(e)s)." - msgstr "" - --#: ../blivet/deviceaction.py:988 --msgid "remove container member" -+#: ../blivet/zfcp.py:245 -+#, python-format -+msgid "Could not remove WWPN %(wwpn)s on zFCP device %(devnum)s (%(e)s)." - msgstr "" - --#: ../blivet/deviceaction.py:1058 --msgid "configure format" -+#: ../blivet/zfcp.py:271 -+#, python-format -+msgid "Could not set zFCP device %(devnum)s offline (%(e)s)." - msgstr "" - --#: ../blivet/deviceaction.py:1114 --msgid "configure device" -+#: ../blivet/devicelibs/lvm.py:59 -+msgid "Generic" -+msgstr "" -+ -+#: ../blivet/devicelibs/lvm.py:60 -+msgid "Performance" - msgstr "" - - #: ../blivet/devices/raid.py:58 -@@ -315,54 +334,54 @@ msgstr "" - msgid "Cannot remove a member from existing %s array" - msgstr "" - --#: ../blivet/formats/fs.py:932 --msgid "EFI System Partition" -+#: ../blivet/formats/biosboot.py:35 -+msgid "BIOS Boot" - msgstr "" - --#: ../blivet/formats/fs.py:1137 --msgid "Apple Bootstrap" -+#: ../blivet/formats/disklabel.py:50 -+msgid "partition table" - msgstr "" - --#: ../blivet/formats/fs.py:1173 --msgid "Linux HFS+ ESP" -+#. Translators: Name for an unsupported disklabel; e.g. "Unsupported partition table" -+#: ../blivet/formats/disklabel.py:326 -+#, python-format -+msgid "Unsupported %(name)s" - msgstr "" - --#: ../blivet/formats/prepboot.py:37 --msgid "PPC PReP Boot" -+#: ../blivet/formats/dmraid.py:37 -+msgid "dm-raid member device" - msgstr "" - --#: ../blivet/formats/luks.py:58 --msgid "LUKS" -+#: ../blivet/formats/fs.py:947 -+msgid "EFI System Partition" - msgstr "" - --#: ../blivet/formats/luks.py:59 --msgid "Encrypted" -+#: ../blivet/formats/fs.py:1155 -+msgid "Apple Bootstrap" - msgstr "" - --#: ../blivet/formats/luks.py:388 --msgid "DM Integrity" -+#: ../blivet/formats/fs.py:1191 -+msgid "Linux HFS+ ESP" - msgstr "" - - #: ../blivet/formats/__init__.py:148 - msgid "Unknown" - msgstr "" - --#: ../blivet/formats/biosboot.py:35 --msgid "BIOS Boot" -+#: ../blivet/formats/luks.py:60 -+msgid "LUKS" - msgstr "" - --#: ../blivet/formats/dmraid.py:37 --msgid "dm-raid member device" -+#: ../blivet/formats/luks.py:61 -+msgid "Encrypted" - msgstr "" - --#: ../blivet/formats/disklabel.py:50 --msgid "partition table" -+#: ../blivet/formats/luks.py:402 -+msgid "DM Integrity" - msgstr "" - --#. Translators: Name for an unsupported disklabel; e.g. "Unsupported partition table" --#: ../blivet/formats/disklabel.py:320 --#, python-format --msgid "Unsupported %(name)s" -+#: ../blivet/formats/lvmpv.py:49 -+msgid "physical volume (LVM)" - msgstr "" - - #: ../blivet/formats/mdraid.py:43 -@@ -373,14 +392,6 @@ msgstr "" - msgid "multipath member device" - msgstr "" - --#: ../blivet/formats/lvmpv.py:49 --msgid "physical volume (LVM)" --msgstr "" -- --#: ../blivet/devicelibs/lvm.py:59 --msgid "Generic" --msgstr "" -- --#: ../blivet/devicelibs/lvm.py:60 --msgid "Performance" -+#: ../blivet/formats/prepboot.py:37 -+msgid "PPC PReP Boot" - msgstr "" -diff --git a/po/bn_IN.po b/po/bn_IN.po -index 9e684dd..e91e275 100644 ---- a/po/bn_IN.po -+++ b/po/bn_IN.po -@@ -13,7 +13,6 @@ - # runab , 2004-2010 - # runa , 2012 - # Saibal Ray, 2014 --# Akarshan Biswas , 2020. - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" -@@ -22,7 +21,7 @@ msgstr "" - "PO-Revision-Date: 2020-06-25 14:40+0000\n" - "Last-Translator: Akarshan Biswas \n" - "Language-Team: Bengali (India) \n" -+"blivet/blivet-rhel8/bn_IN/>\n" - "Language: bn_IN\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" -diff --git a/po/es.po b/po/es.po -index 04bc743..b9fb01e 100644 ---- a/po/es.po -+++ b/po/es.po -@@ -26,22 +26,21 @@ - # Abdel G. Martínez L. , 2015. #zanata - # Máximo Castañeda Riloba , 2016. #zanata - # Máximo Castañeda Riloba , 2018. #zanata --# Adolfo Jayme Barrientos , 2020. - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2020-08-16 12:29+0000\n" --"Last-Translator: Adolfo Jayme Barrientos \n" -+"PO-Revision-Date: 2021-07-07 23:04+0000\n" -+"Last-Translator: Emilio Herrera \n" - "Language-Team: Spanish \n" -+"blivet-rhel8/es/>\n" - "Language: es\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=2; plural=n != 1;\n" --"X-Generator: Weblate 4.1.1\n" -+"X-Generator: Weblate 4.7.1\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -59,9 +58,9 @@ msgid "" - "kernel is reporting partitions on. It is unclear what the exact problem is. " - "Please file a bug at http://bugzilla.redhat.com" - msgstr "" --"No se puede localizar la etiqueta en el disco en el que el núcleo informa de " --"las particiones. La causa del problema no es obvia. Informe del problema en " --"https://bugzilla.redhat.com" -+"Por alguna razón no se pudo encontrar una etiqueta de disco en un disco para " -+"el que el kernel dice que hay particiones. No se sabe exactamente cuál es el " -+"problema. Por favor, informe del error en http://bugzilla.redhat.com" - - #: ../blivet/errors.py:224 - msgid "" -@@ -79,11 +78,11 @@ msgid "" - "Hint 1: vgrename accepts UUID in place of the old name.\n" - "Hint 2: You can get the VG UUIDs by running 'pvs -o +vg_uuid'." - msgstr "" --"Cambie el nombre de uno de los grupos de volúmenes de forma que los nombres " --"sean diferentes.\n" --"Consejo 1: vgrename acepta UUID en lugar del nombre antiguo.\n" --"Consejo 2: puede obtener los UUID de los grupos de volúmenes mediante «pvs -" --"o +vg_uuid»." -+"Renombre uno de los grupos de volúmenes de forma que los nombres sean " -+"diferentes.\n" -+"Nota 1: vgrename acepta UUID en lugar del nombre viejo.\n" -+"Nota 2: Puede obtener los UUIDs de los grupos de volúmenes mediante 'pvs -o " -+"+vg_uuid'." - - #: ../blivet/fcoe.py:121 - msgid "FCoE not available" -@@ -91,41 +90,40 @@ msgstr "FCoE no disponible" - - #: ../blivet/zfcp.py:62 - msgid "You have not specified a device number or the number is invalid" --msgstr "No ha especificado un número de dispositivo o el número no es válido" -+msgstr "No ha especificado un número de dispositivo o el número es inválido" - - #: ../blivet/zfcp.py:64 - msgid "You have not specified a worldwide port name or the name is invalid." --msgstr "No ha especificado un nombre de puerto global o el nombre no es válido." -+msgstr "" -+"No ha especificado un nombre de puerto universal o el nombre es inválido." - - #: ../blivet/zfcp.py:66 - msgid "You have not specified a FCP LUN or the number is invalid." --msgstr "No ha especificado un FCP LUN o el número no es válido." -+msgstr "No ha especificado un FCP LUN o el número es inválido." - - #: ../blivet/zfcp.py:91 - #, python-format - msgid "zFCP device %s not found, not even in device ignore list." - msgstr "" --"No se encontró el dispositivo zFCP %s, ni siquiera en la lista de " --"dispositivos que ignorar." -+"El dispositivo zFCP %s no fue encontrado, ni siquiera en la lista de " -+"dispositivos a ignorar." - - #: ../blivet/zfcp.py:101 - #, python-format - msgid "Could not set zFCP device %(devnum)s online (%(e)s)." --msgstr "" --"No se pudo configurar el dispositivo zFCP %(devnum)s en modo en línea " --"(%(e)s)." -+msgstr "No se pudo establecer al dispositivo zFCP %(devnum)s en línea (%(e)s)." - - #: ../blivet/zfcp.py:112 - #, python-format - msgid "Could not add WWPN %(wwpn)s to zFCP device %(devnum)s (%(e)s)." - msgstr "" --"No se pudo añadir el WWPN %(wwpn)s al dispositivo zFCP %(devnum)s (%(e)s)." -+"No se pudo agregar el WWPN %(wwpn)s al dispositivo zFCP %(devnum)s (%(e)s)." - - #. newer zfcp sysfs interface with auto port scan - #: ../blivet/zfcp.py:119 - #, python-format - msgid "WWPN %(wwpn)s not found at zFCP device %(devnum)s." --msgstr "No se encontró el WWPN %(wwpn)s en el dispositivo zFCP %(devnum)s." -+msgstr "El WWPN %(wwpn)s no fue encontrado en el dispositivo zFCP %(devnum)s." - - #: ../blivet/zfcp.py:134 - #, python-format -@@ -133,7 +131,7 @@ msgid "" - "Could not add LUN %(fcplun)s to WWPN %(wwpn)s on zFCP device %(devnum)s " - "(%(e)s)." - msgstr "" --"No se pudo añadir el LUN %(fcplun)s al WWPN %(wwpn)s en el dispositivo zFCP " -+"No se pudo agregar el LUN %(fcplun)s al WWPN %(wwpn)s en el dispositivo zFCP " - "%(devnum)s (%(e)s)." - - #: ../blivet/zfcp.py:140 -@@ -212,7 +210,7 @@ msgstr "No se ha definido un nombre del iniciador" - - #: ../blivet/iscsi.py:530 - msgid "No iSCSI nodes discovered" --msgstr "No se descubrió ningún nodo iSCSI" -+msgstr "No han sido descubiertos nodos iSCSI" - - #: ../blivet/iscsi.py:550 - msgid "No new iSCSI nodes discovered" -@@ -387,15 +385,15 @@ msgstr "No puede eliminar un miembro de un conjunto %s existente" - - #: ../blivet/formats/fs.py:932 - msgid "EFI System Partition" --msgstr "Partición de sistema EFI" -+msgstr "Partición de Sistema EFI" - - #: ../blivet/formats/fs.py:1137 - msgid "Apple Bootstrap" --msgstr "Bootstrap de Apple" -+msgstr "Apple Bootstrap" - - #: ../blivet/formats/fs.py:1173 - msgid "Linux HFS+ ESP" --msgstr "ESP HFS+ de Linux" -+msgstr "Linux HFS+ ESP" - - #: ../blivet/formats/prepboot.py:37 - msgid "PPC PReP Boot" -diff --git a/po/fa.po b/po/fa.po -index d9ceae0..326a7e5 100644 ---- a/po/fa.po -+++ b/po/fa.po -@@ -15,22 +15,21 @@ - # Morteza Adi , 2012 - # Noori , 2011 - # Roozbeh Pournader , 2005-2006 --# Amirerfan Rafati , 2021. - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2021-04-26 05:02+0000\n" --"Last-Translator: Amirerfan Rafati \n" --"Language-Team: Persian \n" -+"PO-Revision-Date: 2015-01-05 05:26+0000\n" -+"Last-Translator: Copied by Zanata \n" -+"Language-Team: Persian (http://www.transifex.com/projects/p/blivet/language/" -+"fa/)\n" - "Language: fa\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=1; plural=0;\n" --"X-Generator: Weblate 4.6\n" -+"X-Generator: Zanata 4.6.2\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -38,9 +37,6 @@ msgid "" - "of the UUID value which should be unique. In that case you can either " - "disconnect one of the devices or reformat it." - msgstr "" --"این اتفاق معمولا در اثر کلون کردن ایمیج یک دستگاه رخ می‌دهد و سبب می‌شود " --"UUID‌ها که باید یکتا باشند، تکراری شوند. در این صورت شما می‌توانید یکی از " --"دستگاه‌های را جدا کنید یا آن را فرمت کنید." - - #: ../blivet/errors.py:217 - msgid "" -@@ -65,11 +61,11 @@ msgstr "" - - #: ../blivet/fcoe.py:121 - msgid "FCoE not available" --msgstr "FCoE موجود نیست" -+msgstr "FCoE موجود نیست" - - #: ../blivet/zfcp.py:62 - msgid "You have not specified a device number or the number is invalid" --msgstr "شمارهٔ دستگاهی مشخص نکرده‌اید یا شماره معتبر نیست" -+msgstr "شمارهٔ دستگاهی مشخص نکرده‌اید یا شماره معتبر نیست." - - #: ../blivet/zfcp.py:64 - msgid "You have not specified a worldwide port name or the name is invalid." -@@ -82,7 +78,7 @@ msgstr "شمارهٔ قطعهٔ منطقی FCP را مشخص نکرده‌اید - #: ../blivet/zfcp.py:91 - #, python-format - msgid "zFCP device %s not found, not even in device ignore list." --msgstr "وسیله ی zFCP %s یافت نشد، حتی در لیست ابزار نادیده گرفته شده." -+msgstr "وسیله ی zFCP %s یافت نشد، حتی در لیست ابزار نادیده گرفته شده" - - #: ../blivet/zfcp.py:101 - #, python-format -@@ -92,7 +88,8 @@ msgstr "نمی توان وسیله ی zFCP %(devnum)s online (%(e)s) تنظیم - #: ../blivet/zfcp.py:112 - #, python-format - msgid "Could not add WWPN %(wwpn)s to zFCP device %(devnum)s (%(e)s)." --msgstr "نمی تواند WWPN %(wwpn)s به وسیله ی zFCP %(devnum)s (%(e)s) اضافه کند." -+msgstr "" -+"نمی تواند WWPN %(wwpn)s به وسیله ی zFCP %(devnum)s (%(e)s) اضافه کند." - - #. newer zfcp sysfs interface with auto port scan - #: ../blivet/zfcp.py:119 -@@ -106,15 +103,15 @@ msgid "" - "Could not add LUN %(fcplun)s to WWPN %(wwpn)s on zFCP device %(devnum)s " - "(%(e)s)." - msgstr "" --"نمی تواند LUN %(fcplun)s به WWPN %(wwpn)s در وسیله ی zFCP اضافه کند %(devnum)" --"s (%(e)s)." -+"نمی تواند LUN %(fcplun)s به WWPN %(wwpn)s در وسیله ی zFCP اضافه کند " -+"%(devnum)s (%(e)s)." - - #: ../blivet/zfcp.py:140 - #, python-format - msgid "" - "LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s already configured." - msgstr "" --"LUN %(fcplun)s در WWPN %(wwpn)s بر روی وسیله ی zFCP %(devnum)s از قبل پیکره " -+"LUN %(fcplun)s در WWPN %(wwpn)s بر روی وسیله ی zFCP %(devnum)s از قبل پیکره " - "بندی شده است." - - #: ../blivet/zfcp.py:152 -@@ -156,7 +153,7 @@ msgstr "" - #: ../blivet/zfcp.py:245 - #, python-format - msgid "Could not remove WWPN %(wwpn)s on zFCP device %(devnum)s (%(e)s)." --msgstr "نمی توان WWPN %(wwpn)s را از وسیله zFCP %(devnum)s (%(e)s) برداشت." -+msgstr "نمی توان WWPN %(wwpn)s را از وسیله zFCP %(devnum)s (%(e)s) برداشت" - - #: ../blivet/zfcp.py:271 - #, python-format -@@ -169,7 +166,7 @@ msgstr "قادر به تغییر نام آغازگر iSCSI تنظیم نیست" - - #: ../blivet/iscsi.py:219 - msgid "Must provide an iSCSI initiator name" --msgstr "باید نام یک آغازگر iSCSI را وارد کنید" -+msgstr "باید نام یک آغازگر iSCSI را وارد کنید." - - #: ../blivet/iscsi.py:410 - msgid "iSCSI not available" -@@ -181,7 +178,7 @@ msgstr "هیچ نام آغازگری تنطیم نشد" - - #: ../blivet/iscsi.py:530 - msgid "No iSCSI nodes discovered" --msgstr "هیچ گره iSCSI یافت نشد" -+msgstr "" - - #: ../blivet/iscsi.py:550 - msgid "No new iSCSI nodes discovered" -@@ -189,7 +186,7 @@ msgstr "هیچ گره iSCSI جدیدی یافت نشد" - - #: ../blivet/iscsi.py:553 - msgid "Could not log in to any of the discovered nodes" --msgstr "قادر به لاگین کردن به هیچ یک از گره‌های یافت شده نیستیم" -+msgstr "" - - #: ../blivet/partitioning.py:454 - msgid "unable to allocate aligned partition" -@@ -197,12 +194,12 @@ msgstr "" - - #: ../blivet/partitioning.py:462 - msgid "requested size exceeds maximum allowed" --msgstr "اندازه درخواستی از اندازه بیشینه مجاز بیشتر است" -+msgstr "" - - #: ../blivet/partitioning.py:580 - #, python-format - msgid "disk %s inaccessible" --msgstr "دیسک %s در دسترس نیست" -+msgstr "" - - #: ../blivet/partitioning.py:641 - #, python-format -@@ -210,8 +207,6 @@ msgid "" - "partition is too small for %(format)s formatting (allowable size is " - "%(min_size)s to %(max_size)s)" - msgstr "" --"بخش برای فرمت %(format)s بسیار کوچک است (اندازه مجاز از %(min_size)s تا " --"%(max_size)s است)" - - #: ../blivet/partitioning.py:646 - #, python-format -@@ -219,8 +214,6 @@ msgid "" - "partition is too large for %(format)s formatting (allowable size is " - "%(min_size)s to %(max_size)s)" - msgstr "" --"بخش برای فرمت %(format)s بسیار بزرگ است (اندازه مجاز از %(min_size)s تا " --"%(max_size)s است)" - - #: ../blivet/partitioning.py:962 - msgid "Unable to allocate requested partition scheme." -@@ -254,16 +247,16 @@ msgstr "" - #. space in the VG we have a real problem - #: ../blivet/partitioning.py:2025 - msgid "not enough space for LVM requests" --msgstr "فضای کافی برای درخواست‌های LVM وجود ندارد" -+msgstr "" - - #: ../blivet/deviceaction.py:194 - #, python-format - msgid "Executing %(action)s" --msgstr "در حال اجرای %(action)s" -+msgstr "" - - #: ../blivet/deviceaction.py:322 - msgid "create device" --msgstr "ساخت دستگاه" -+msgstr "" - - #: ../blivet/deviceaction.py:381 - msgid "destroy device" -@@ -271,11 +264,11 @@ msgstr "" - - #: ../blivet/deviceaction.py:484 - msgid "resize device" --msgstr "تغییر اندازه دستگاه" -+msgstr "" - - #: ../blivet/deviceaction.py:573 - msgid "create format" --msgstr "ساخت فرمت" -+msgstr "" - - #: ../blivet/deviceaction.py:613 - #, python-format -@@ -290,25 +283,25 @@ msgstr "" - #: ../blivet/deviceaction.py:670 - #, python-format - msgid "Created %(type)s on %(device)s" --msgstr "%(type)s روی %(device)s ساخته شد" -+msgstr "" - - #: ../blivet/deviceaction.py:717 - msgid "destroy format" --msgstr "حذف فرمت" -+msgstr "" - - #: ../blivet/deviceaction.py:830 - msgid "resize format" --msgstr "تغییر اندازه فرمت" -+msgstr "" - - #: ../blivet/deviceaction.py:869 - #, python-format - msgid "Resizing filesystem on %(device)s" --msgstr "در حال تغییر اندازه فایل سیستم بر %(device)s" -+msgstr "" - - #: ../blivet/deviceaction.py:876 - #, python-format - msgid "Resized filesystem on %(device)s" --msgstr "اندازه فایل سیستم روی %(device)s تغییر کرد" -+msgstr "" - - #: ../blivet/deviceaction.py:923 - msgid "add container member" -@@ -320,11 +313,11 @@ msgstr "" - - #: ../blivet/deviceaction.py:1058 - msgid "configure format" --msgstr "تنظیم فرمت" -+msgstr "" - - #: ../blivet/deviceaction.py:1114 - msgid "configure device" --msgstr "تنظیم دستگاه" -+msgstr "" - - #: ../blivet/devices/raid.py:58 - #, python-format -@@ -335,13 +328,12 @@ msgid_plural "" - "RAID level %(raid_level)s requires that device have at least %(min_members)d " - "members." - msgstr[0] "" --"RAID سطح %(raid_level)s نیاز به دستگاهی با حداقل %(min_members)d عضو دارد." - - #: ../blivet/devices/raid.py:79 - #, python-format - msgid "" - "RAID level %(raid_level)s is an invalid value. Must be one of (%(levels)s)." --msgstr "RAID سطح %(raid_level)s نامعتبر است. باید یکی ازسطوح (%(levels)s) باشد." -+msgstr "" - - #: ../blivet/devices/raid.py:104 - #, python-format -@@ -366,7 +358,7 @@ msgstr "" - - #: ../blivet/formats/luks.py:58 - msgid "LUKS" --msgstr "LUKS" -+msgstr "" - - #: ../blivet/formats/luks.py:59 - msgid "Encrypted" -@@ -378,7 +370,7 @@ msgstr "" - - #: ../blivet/formats/__init__.py:148 - msgid "Unknown" --msgstr "ناشناخته" -+msgstr "" - - #: ../blivet/formats/biosboot.py:35 - msgid "BIOS Boot" -@@ -400,7 +392,7 @@ msgstr "" - - #: ../blivet/formats/mdraid.py:43 - msgid "software RAID" --msgstr "RAID نرم‌افزاری" -+msgstr "" - - #: ../blivet/formats/multipath.py:40 - msgid "multipath member device" -diff --git a/po/fi.po b/po/fi.po -index 6ce6cf7..8b1518a 100644 ---- a/po/fi.po -+++ b/po/fi.po -@@ -12,23 +12,21 @@ - # Updated by Tomi Kajala , 2000-2001 - # Ville-Pekka Vainio , 2011 - # Ville-Pekka Vainio , 2011-2012 --# Ricky Tigg , 2020. --# Jan Kuparinen , 2021. - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2021-04-22 15:02+0000\n" -+"PO-Revision-Date: 2021-05-27 07:02+0000\n" - "Last-Translator: Jan Kuparinen \n" - "Language-Team: Finnish \n" -+"blivet-rhel8/fi/>\n" - "Language: fi\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=2; plural=n != 1;\n" --"X-Generator: Weblate 4.6\n" -+"X-Generator: Weblate 4.6.2\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -238,7 +236,7 @@ msgstr "ei ole tarpeeksi vapaata tilaa laajennetun osion luomisen jälkeen" - - #: ../blivet/partitioning.py:1004 - msgid "failed to allocate aligned partition" --msgstr "kohdistetun osion jakaminen epäonnistui" -+msgstr "ei voi kohdistaa kohdistettua osiota" - - #: ../blivet/partitioning.py:1205 - msgid "cannot reclaim more than request has grown" -@@ -309,7 +307,7 @@ msgstr "Muuta alustan koko" - #: ../blivet/deviceaction.py:869 - #, python-format - msgid "Resizing filesystem on %(device)s" --msgstr "Tiedostojärjestelmän koon muuttaminen %(device)s:lla" -+msgstr "Tiedostojärjestelmän kokoa muutetaan %(device)s:lla" - - #: ../blivet/deviceaction.py:876 - #, python-format -diff --git a/po/hu.po b/po/hu.po -index 4509889..b9e2674 100644 ---- a/po/hu.po -+++ b/po/hu.po -@@ -16,22 +16,21 @@ - # Zoltan Hoppár , 2011-2013 - # Meskó Balázs , 2018. #zanata - # Meskó Balázs , 2019. #zanata --# Balázs Meskó , 2020. - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2020-07-21 14:29+0000\n" --"Last-Translator: Balázs Meskó \n" --"Language-Team: Hungarian \n" -+"PO-Revision-Date: 2019-08-22 01:56+0000\n" -+"Last-Translator: Meskó Balázs \n" -+"Language-Team: Hungarian (http://www.transifex.com/projects/p/blivet/" -+"language/hu/)\n" - "Language: hu\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" --"Plural-Forms: nplurals=2; plural=n != 1;\n" --"X-Generator: Weblate 4.1.1\n" -+"Plural-Forms: nplurals=2; plural=(n != 1);\n" -+"X-Generator: Zanata 4.6.2\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -104,7 +103,7 @@ msgstr "A(z) %(devnum)s zFCP eszköz nem állítható be elérhetővé (%(e)s) . - msgid "Could not add WWPN %(wwpn)s to zFCP device %(devnum)s (%(e)s)." - msgstr "" - "Hiba: Nem lehet %(wwpn)s WWPN-t hozzáadni a zFCP eszközhöz: %(devnum)s " --"(%(e)s)." -+"(%(e)s). " - - #. newer zfcp sysfs interface with auto port scan - #: ../blivet/zfcp.py:119 -@@ -119,7 +118,7 @@ msgid "" - "(%(e)s)." - msgstr "" - "A(z) %(fcplun)s LUN nem adható hozzá a(z) %(wwpn)s WWPN zFCP eszközhöz: " --"%(devnum)s (%(e)s)." -+"%(devnum)s (%(e)s). " - - #: ../blivet/zfcp.py:140 - #, python-format -@@ -136,7 +135,7 @@ msgid "" - "device %(devnum)s (%(e)s)." - msgstr "" - "Nem sikerült a hibás %(fcplun)s LUN attribútum kiolvasása a(z) %(wwpn)s WWPN-" --"en, a(z) %(devnum)s zFCP eszközön (%(e)s)." -+"en, a(z) %(devnum)s zFCP eszközön (%(e)s). " - - #: ../blivet/zfcp.py:161 - #, python-format -@@ -154,7 +153,7 @@ msgid "" - "%(fcplun)s (%(e)s)." - msgstr "" - "A SCSI eszköz nem törölhető helyesen: zFCP %(devnum)s %(wwpn)s %(fcplun)s " --"(%(e)s)." -+"(%(e)s). " - - #: ../blivet/zfcp.py:227 - #, python-format -@@ -162,8 +161,8 @@ msgid "" - "Could not remove LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s " - "(%(e)s)." - msgstr "" --"A(z) %(fcplun)s LUN nem távolítható el a(z) %(wwpn)s WWPN-en, a(z) %(devnum)" --"s zFCP eszközön (%(e)s)." -+"A(z) %(fcplun)s LUN nem távolítható el a(z) %(wwpn)s WWPN-en, a(z) " -+"%(devnum)s zFCP eszközön (%(e)s). " - - #: ../blivet/zfcp.py:245 - #, python-format -@@ -296,7 +295,7 @@ msgstr "formátum létrehozása" - #: ../blivet/deviceaction.py:613 - #, python-format - msgid "Creating %(type)s on %(device)s" --msgstr "%(type)s létrehozása itt: %(device)s" -+msgstr "%(type)s létrehozása itt: %(device)s " - - #: ../blivet/deviceaction.py:640 - #, python-format -diff --git a/po/id.po b/po/id.po -index 9ca8eae..67d32a0 100644 ---- a/po/id.po -+++ b/po/id.po -@@ -3,7 +3,7 @@ - # This file is distributed under the same license as the PACKAGE package. - # - # Translators: --# Andika Triwidada , 2012, 2020. -+# Andika Triwidada , 2012 - # Arif Tri Waluyo , 2011-2012 - # clumens , 2011 - # dcantrel , 2011 -@@ -17,16 +17,16 @@ msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2020-12-29 12:36+0000\n" --"Last-Translator: Andika Triwidada \n" --"Language-Team: Indonesian \n" -+"PO-Revision-Date: 2015-01-05 05:24+0000\n" -+"Last-Translator: Copied by Zanata \n" -+"Language-Team: Indonesian (http://www.transifex.com/projects/p/blivet/" -+"language/id/)\n" - "Language: id\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=1; plural=0;\n" --"X-Generator: Weblate 4.4\n" -+"X-Generator: Zanata 4.6.2\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -34,9 +34,6 @@ msgid "" - "of the UUID value which should be unique. In that case you can either " - "disconnect one of the devices or reformat it." - msgstr "" --"Ini biasanya disebabkan oleh membuat klon image peranti yang menghasilkan " --"duplikasi nilai UUID yang mestinya unik. Dalam kasus itu Anda dapat memutus " --"satu dari peranti atau memformat ulang." - - #: ../blivet/errors.py:217 - msgid "" -@@ -44,31 +41,20 @@ msgid "" - "kernel is reporting partitions on. It is unclear what the exact problem is. " - "Please file a bug at http://bugzilla.redhat.com" - msgstr "" --"Untuk beberapa alasan kami tidak dapat menemukan suatu disklabel pada suatu " --"disk yang oleh kernel dilaporkan partisi padanya. Tidak jelas apa masalah " --"tepatnya. Harap laporkan bug pada http://bugzilla.redhat.com" - - #: ../blivet/errors.py:224 --#, fuzzy - msgid "" - "Either restore the disklabel to a completely working state or remove it " - "completely.\n" - "Hint: parted can restore it or wipefs can remove it." - msgstr "" --"Pulihkan disklabel ke keadaan yang berfungsi total atau hapus sepenuhnya.\n" --"Petunjuk: berpisah dapat memulihkannya atau wipef dapat menghapusnya." - - #: ../blivet/errors.py:230 --#, fuzzy - msgid "" - "Rename one of the volume groups so the names are distinct.\n" - "Hint 1: vgrename accepts UUID in place of the old name.\n" - "Hint 2: You can get the VG UUIDs by running 'pvs -o +vg_uuid'." - msgstr "" --"Ganti nama salah satu grup volume sehingga nama berbeda.\n" --"Petunjuk 1: vgrename menerima UUID menggantikan nama lama.\n" --"Petunjuk 2: Anda bisa mendapatkan UUID VG dengan menjalankan 'pvs -o " --"+vg_uuid'." - - #: ../blivet/fcoe.py:121 - msgid "FCoE not available" -@@ -76,11 +62,11 @@ msgstr "FCoE tidak tersedia" - - #: ../blivet/zfcp.py:62 - msgid "You have not specified a device number or the number is invalid" --msgstr "Anda tidak memasukkan nomor divais atau nomor invalid" -+msgstr "Anda tidak memasukkan nomor divais atau nomor invalid." - - #: ../blivet/zfcp.py:64 - msgid "You have not specified a worldwide port name or the name is invalid." --msgstr "Anda tidak memasukkan worldwide port name atau nama invalid." -+msgstr "anda tidak memasukkan worldwide port name atau nama invalid" - - #: ../blivet/zfcp.py:66 - msgid "You have not specified a FCP LUN or the number is invalid." -@@ -159,14 +145,14 @@ msgid "" - "Could not remove LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s " - "(%(e)s)." - msgstr "" --"Tidak bisa menghapus LUN %(fcplun)s di WWPN %(wwpn)s pada perangkat zFCP " --"%(devnum)s (%(e)s)." -+"Could not remove LUN %(fcplun)s at WWPN %(wwpn)s on zFCP device %(devnum)s " -+"(%(e)s)." - - #: ../blivet/zfcp.py:245 - #, python-format - msgid "Could not remove WWPN %(wwpn)s on zFCP device %(devnum)s (%(e)s)." - msgstr "" --"Tidak dapat menghapus WWPN %(wwpn)s pada divais zFCP %(devnum)s (%(e)s)." -+"Tidak dapat menghapus WWPN %(wwpn)s pada divais zFCP %(devnum)s (%(e)s)." - - #: ../blivet/zfcp.py:271 - #, python-format -@@ -190,33 +176,29 @@ msgid "No initiator name set" - msgstr "Tidak ada nama inisiator mengatur" - - #: ../blivet/iscsi.py:530 --#, fuzzy - msgid "No iSCSI nodes discovered" --msgstr "Tidak ada node iSCSI yang ditemukan" -+msgstr "" - - #: ../blivet/iscsi.py:550 - msgid "No new iSCSI nodes discovered" - msgstr "Tidak ada node iSCSI baru yang ditemukan" - - #: ../blivet/iscsi.py:553 --#, fuzzy - msgid "Could not log in to any of the discovered nodes" --msgstr "Tak bisa log-masuk ke salah satu node yang ditemukan" -+msgstr "" - - #: ../blivet/partitioning.py:454 --#, fuzzy - msgid "unable to allocate aligned partition" --msgstr "tidak dapat mengalokasikan partisi rata" -+msgstr "" - - #: ../blivet/partitioning.py:462 --#, fuzzy - msgid "requested size exceeds maximum allowed" --msgstr "ukuran yang diminta melebihi maksimum yang diperbolehkan" -+msgstr "" - - #: ../blivet/partitioning.py:580 --#, fuzzy, python-format -+#, python-format - msgid "disk %s inaccessible" --msgstr "cakram %s dapat diakses" -+msgstr "" - - #: ../blivet/partitioning.py:641 - #, python-format -@@ -224,84 +206,68 @@ msgid "" - "partition is too small for %(format)s formatting (allowable size is " - "%(min_size)s to %(max_size)s)" - msgstr "" --"partisi terlalu kecil untuk pemformatan %(format)s (ukuran yang " --"diperbolehkan adalah %(min_size)s sampai %(max_size)s)" - - #: ../blivet/partitioning.py:646 --#, fuzzy, python-format -+#, python-format - msgid "" - "partition is too large for %(format)s formatting (allowable size is " - "%(min_size)s to %(max_size)s)" - msgstr "" --"partisi terlalu besar untuk pemformatan %(format)s (ukuran yang " --"diperbolehkan adalah %(min_size)s ke %(max_size)s)" - - #: ../blivet/partitioning.py:962 --#, fuzzy - msgid "Unable to allocate requested partition scheme." --msgstr "Tak bisa mengalokasikan skema partisi yang diminta." -+msgstr "" - - #: ../blivet/partitioning.py:997 --#, fuzzy - msgid "not enough free space after creating extended partition" --msgstr "tidak cukup ruang kosong setelah membuat partisi extended" -+msgstr "" - - #: ../blivet/partitioning.py:1004 --#, fuzzy - msgid "failed to allocate aligned partition" --msgstr "gagal mengalokasikan partisi aligned" -+msgstr "" - - #: ../blivet/partitioning.py:1205 --#, fuzzy - msgid "cannot reclaim more than request has grown" --msgstr "tidak dapat mengklaim kembali lebih dari permintaan telah tumbuh" -+msgstr "" - - #: ../blivet/partitioning.py:1419 --#, fuzzy - msgid "DiskChunk requests must be of type PartitionRequest" --msgstr "Permintaan DiskChunk harus dari tipe PartitionRequest" -+msgstr "" - - #: ../blivet/partitioning.py:1432 --#, fuzzy - msgid "partitions allocated outside disklabel limits" --msgstr "partisi dialokasikan di luar batas disklabel" -+msgstr "" - - #: ../blivet/partitioning.py:1517 --#, fuzzy - msgid "VGChunk requests must be of type LVRequest" --msgstr "Permintaan VGChunk harus tipe LVRequest" -+msgstr "" - - #. by now we have allocated the PVs so if there isn't enough - #. space in the VG we have a real problem - #: ../blivet/partitioning.py:2025 --#, fuzzy - msgid "not enough space for LVM requests" --msgstr "tidak cukup ruang untuk permintaan LVM" -+msgstr "" - - #: ../blivet/deviceaction.py:194 - #, python-format - msgid "Executing %(action)s" --msgstr "Mengeksekusi %(action)s" -+msgstr "" - - #: ../blivet/deviceaction.py:322 --#, fuzzy - msgid "create device" --msgstr "buat perangkat" -+msgstr "" - - #: ../blivet/deviceaction.py:381 --#, fuzzy - msgid "destroy device" --msgstr "hancurkan perangkat" -+msgstr "" - - #: ../blivet/deviceaction.py:484 --#, fuzzy - msgid "resize device" --msgstr "mengubah ukuran perangkat" -+msgstr "" - - #: ../blivet/deviceaction.py:573 --#, fuzzy - msgid "create format" --msgstr "buat format" -+msgstr "" - - #: ../blivet/deviceaction.py:613 - #, python-format -@@ -309,57 +275,51 @@ msgid "Creating %(type)s on %(device)s" - msgstr "Membuat %(type)s pada %(device)s" - - #: ../blivet/deviceaction.py:640 --#, fuzzy, python-format -+#, python-format - msgid "Not enough entropy to create LUKS format. %d bits are needed." --msgstr "Tidak cukup entropi untuk membuat format LUKS. %d bit diperlukan." -+msgstr "" - - #: ../blivet/deviceaction.py:670 - #, python-format - msgid "Created %(type)s on %(device)s" --msgstr "Dibuat %(type)s pada %(device)s" -+msgstr "" - - #: ../blivet/deviceaction.py:717 --#, fuzzy - msgid "destroy format" --msgstr "hancurkan format" -+msgstr "" - - #: ../blivet/deviceaction.py:830 --#, fuzzy - msgid "resize format" --msgstr "mengubah ukuran format" -+msgstr "" - - #: ../blivet/deviceaction.py:869 - #, python-format - msgid "Resizing filesystem on %(device)s" --msgstr "Mengubah ukuran sistem berkas pada %(device)s" -+msgstr "" - - #: ../blivet/deviceaction.py:876 - #, python-format - msgid "Resized filesystem on %(device)s" --msgstr "Sistem berkas diubah ukuran pada %(device)s" -+msgstr "" - - #: ../blivet/deviceaction.py:923 --#, fuzzy - msgid "add container member" --msgstr "tambahkan anggota kontainer" -+msgstr "" - - #: ../blivet/deviceaction.py:988 --#, fuzzy - msgid "remove container member" --msgstr "hapus anggota kontainer" -+msgstr "" - - #: ../blivet/deviceaction.py:1058 --#, fuzzy - msgid "configure format" --msgstr "konfigurasi format" -+msgstr "" - - #: ../blivet/deviceaction.py:1114 --#, fuzzy - msgid "configure device" --msgstr "konfigurasi perangkat" -+msgstr "" - - #: ../blivet/devices/raid.py:58 --#, fuzzy, python-format -+#, python-format - msgid "" - "RAID level %(raid_level)s requires that device have at least %(min_members)d " - "member." -@@ -367,21 +327,17 @@ msgid_plural "" - "RAID level %(raid_level)s requires that device have at least %(min_members)d " - "members." - msgstr[0] "" --"Tingkat RAID %(raid_level)s mensyi mengharuskan perangkat memiliki " --"setidaknya %(min_members)d anggota." - - #: ../blivet/devices/raid.py:79 - #, python-format - msgid "" - "RAID level %(raid_level)s is an invalid value. Must be one of (%(levels)s)." - msgstr "" --"Tingkat RAID %(raid_level)s adalah nilai yang tidak valid. Harus salah satu " --"dari (%(levels)s)." - - #: ../blivet/devices/raid.py:104 --#, fuzzy, python-format -+#, python-format - msgid "Cannot remove a member from existing %s array" --msgstr "Tak bisa menghapus anggota dari array %s yang sudah ada" -+msgstr "" - - #: ../blivet/formats/fs.py:932 - msgid "EFI System Partition" -@@ -389,75 +345,66 @@ msgstr "Partisi Sistem EFI" - - #: ../blivet/formats/fs.py:1137 - msgid "Apple Bootstrap" --msgstr "Bootstrap Apple" -+msgstr "" - - #: ../blivet/formats/fs.py:1173 - msgid "Linux HFS+ ESP" --msgstr "Linux HFS+ ESP" -+msgstr "" - - #: ../blivet/formats/prepboot.py:37 - msgid "PPC PReP Boot" --msgstr "PPC PReP Boot" -+msgstr "" - - #: ../blivet/formats/luks.py:58 - msgid "LUKS" --msgstr "LUKS" -+msgstr "" - - #: ../blivet/formats/luks.py:59 - msgid "Encrypted" - msgstr "Enkripsi" - - #: ../blivet/formats/luks.py:388 --#, fuzzy - msgid "DM Integrity" --msgstr "Integritas DM" -+msgstr "" - - #: ../blivet/formats/__init__.py:148 --#, fuzzy - msgid "Unknown" --msgstr "Tak Dikenal" -+msgstr "" - - #: ../blivet/formats/biosboot.py:35 --#, fuzzy - msgid "BIOS Boot" --msgstr "BIOS Boot" -+msgstr "" - - #: ../blivet/formats/dmraid.py:37 --#, fuzzy - msgid "dm-raid member device" --msgstr "perangkat anggota dm-raid" -+msgstr "" - - #: ../blivet/formats/disklabel.py:50 --#, fuzzy - msgid "partition table" --msgstr "tabel partisi" -+msgstr "" - - #. Translators: Name for an unsupported disklabel; e.g. "Unsupported partition table" - #: ../blivet/formats/disklabel.py:320 - #, python-format - msgid "Unsupported %(name)s" --msgstr "%(name)s yang tidak didukung" -+msgstr "" - - #: ../blivet/formats/mdraid.py:43 --#, fuzzy - msgid "software RAID" --msgstr "RAID Perangkat Lunak" -+msgstr "" - - #: ../blivet/formats/multipath.py:40 --#, fuzzy - msgid "multipath member device" --msgstr "perangkat anggota multipath" -+msgstr "" - - #: ../blivet/formats/lvmpv.py:49 --#, fuzzy - msgid "physical volume (LVM)" --msgstr "volume fisik (LVM)" -+msgstr "" - - #: ../blivet/devicelibs/lvm.py:59 --#, fuzzy - msgid "Generic" --msgstr "Generik" -+msgstr "" - - #: ../blivet/devicelibs/lvm.py:60 - msgid "Performance" --msgstr "Kinerja" -+msgstr "" -diff --git a/po/ja.po b/po/ja.po -index be46ed9..b4c864c 100644 ---- a/po/ja.po -+++ b/po/ja.po -@@ -30,16 +30,16 @@ msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2018-09-21 01:08+0000\n" --"Last-Translator: Copied by Zanata \n" --"Language-Team: Japanese (http://www.transifex.com/projects/p/blivet/language/" --"ja/)\n" -+"PO-Revision-Date: 2020-07-03 07:42+0000\n" -+"Last-Translator: Ludek Janda \n" -+"Language-Team: Japanese \n" - "Language: ja\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=1; plural=0;\n" --"X-Generator: Zanata 4.6.2\n" -+"X-Generator: Weblate 4.1.1\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -47,6 +47,8 @@ msgid "" - "of the UUID value which should be unique. In that case you can either " - "disconnect one of the devices or reformat it." - msgstr "" -+"これは通常、デバイスイメージを複製したことで、一意であるはずのUUID値が重複することが原因です。その場合は、いずれかのデバイスを切断するか、再フォーマッ" -+"トしてください。" - - #: ../blivet/errors.py:217 - msgid "" -@@ -54,9 +56,8 @@ msgid "" - "kernel is reporting partitions on. It is unclear what the exact problem is. " - "Please file a bug at http://bugzilla.redhat.com" - msgstr "" --"なんらかの理由により、kernel がパーティションを報告しているディスク上でディス" --"クラベルを見つけられませんでした。何が問題となっているかは不明です。バグを " --"http://bugzilla.redhat.com に提出してください。" -+"なんらかの理由により、kernel がパーティションを報告しているディスク上でディスクラベルを見つけられませんでした。何が問題となっているかは不明です。" -+"バグを http://bugzilla.redhat.com に提出してください" - - #: ../blivet/errors.py:224 - msgid "" -@@ -84,7 +85,7 @@ msgstr "FCoE は使用できません" - - #: ../blivet/zfcp.py:62 - msgid "You have not specified a device number or the number is invalid" --msgstr "デバイス番号を指定していないか番号が無効です。" -+msgstr "デバイス番号を指定していないか番号が無効です" - - #: ../blivet/zfcp.py:64 - msgid "You have not specified a worldwide port name or the name is invalid." -@@ -202,7 +203,7 @@ msgstr "iSCSI ノードが何も探索できませんでした" - - #: ../blivet/iscsi.py:550 - msgid "No new iSCSI nodes discovered" --msgstr "新しい iSCSI ノードは見つかりませんでした。" -+msgstr "新しい iSCSI ノードは見つかりませんでした" - - #: ../blivet/iscsi.py:553 - msgid "Could not log in to any of the discovered nodes" -@@ -257,7 +258,7 @@ msgstr "要求を超えたサイズを再利用することができません" - - #: ../blivet/partitioning.py:1419 - msgid "DiskChunk requests must be of type PartitionRequest" --msgstr "DiskChunk 要求には PartitionResquest タイプが必要です。" -+msgstr "DiskChunk 要求には PartitionResquest タイプが必要です" - - #: ../blivet/partitioning.py:1432 - msgid "partitions allocated outside disklabel limits" -@@ -265,7 +266,7 @@ msgstr "ディスクラベルの範囲外に割り当てられたパーティシ - - #: ../blivet/partitioning.py:1517 - msgid "VGChunk requests must be of type LVRequest" --msgstr "VGChunk 要求には LVResquest タイプが必要です。" -+msgstr "VGChunk 要求には LVResquest タイプが必要です" - - #. by now we have allocated the PVs so if there isn't enough - #. space in the VG we have a real problem -diff --git a/po/kk.po b/po/kk.po -index 015e3ce..a92a512 100644 ---- a/po/kk.po -+++ b/po/kk.po -@@ -3,22 +3,22 @@ - # This file is distributed under the same license as the PACKAGE package. - # - # Translators: --# Baurzhan Muftakhidinov , 2012-2014, 2020. -+# Baurzhan Muftakhidinov , 2012-2014 - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2020-07-12 13:27+0000\n" --"Last-Translator: Baurzhan Muftakhidinov \n" --"Language-Team: Kazakh \n" -+"PO-Revision-Date: 2015-01-05 05:25+0000\n" -+"Last-Translator: Copied by Zanata \n" -+"Language-Team: Kazakh (http://www.transifex.com/projects/p/blivet/language/" -+"kk/)\n" - "Language: kk\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=1; plural=0;\n" --"X-Generator: Weblate 4.1.1\n" -+"X-Generator: Zanata 4.6.2\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -26,9 +26,6 @@ msgid "" - "of the UUID value which should be unique. In that case you can either " - "disconnect one of the devices or reformat it." - msgstr "" --"Бұл әдетте құрылғы бейнесін клондау салдарынан пайда болады, нәтижесінде " --"бірегей болуы тиіс UUID мәні қайталанады. Бұл жағдайда сіз құрылғылардың " --"біреуін ажыратуға немесе оны қайта пішімдеуге болады." - - #: ../blivet/errors.py:217 - msgid "" -diff --git a/po/ko.po b/po/ko.po -index a4d6d32..31f30e1 100644 ---- a/po/ko.po -+++ b/po/ko.po -@@ -14,18 +14,17 @@ - # Michelle Ji Yeen Kim , 2005-2006 - # Michelle J Kim , 2003-2004 - # Michelle Kim , 2011 --# , 2011-2012 -+# , 2011-2012 - # Ludek Janda , 2018. #zanata --# simmon , 2021. - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2021-04-29 10:02+0000\n" -+"PO-Revision-Date: 2021-04-22 15:02+0000\n" - "Last-Translator: simmon \n" - "Language-Team: Korean \n" -+"blivet-rhel8/ko/>\n" - "Language: ko\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" -@@ -39,8 +38,8 @@ msgid "" - "of the UUID value which should be unique. In that case you can either " - "disconnect one of the devices or reformat it." - msgstr "" --"이는 일반적으로 고유한 UUID 값을 중복하는 결과로 장치 이미지 복제로 인해 발생합니다. 이와 같은 경우에 장치 중의 하나를 끊거나 " --"재구성 할 수 있습니다." -+"이는 일반적으로 장치 이미지 복제로 인해 고유한 UUID 값이 복제되기 때문에 발생합니다. 이 경우 장치 중 하나를 분리하거나 다시 " -+"포맷할 수 있습니다." - - #: ../blivet/errors.py:217 - msgid "" -@@ -48,8 +47,8 @@ msgid "" - "kernel is reporting partitions on. It is unclear what the exact problem is. " - "Please file a bug at http://bugzilla.redhat.com" - msgstr "" --"일부 이유로 커널이 파티션 설정을 보고하는 디스크에 디스크 레이블을 배치 할 수 없습니다. 정확한 문제가 무엇인지 알 수 없습니다. " --"http://bugzilla.redhat.com에 결점(bug) 보고서를 제출해 주십시오" -+"일부 이유로 커널이 파티션 설정을 보고하는 디스크에 디스크 레이블을 배치할 수 없습니다. 정확한 문제가 무엇인지 알 수 없습니다. " -+"http://bugzilla.redhat.com에 버그 리포트를 제출해 주십시오" - - #: ../blivet/errors.py:224 - msgid "" -@@ -57,7 +56,7 @@ msgid "" - "completely.\n" - "Hint: parted can restore it or wipefs can remove it." - msgstr "" --"디스크 이름표를 완전히 작동하는 상태로 복원하거나 완전히 제거합니다.\n" -+"디스크 레이블을 완전히 작동하는 상태로 복원하거나 완전히 제거합니다.\n" - "힌트: parted로 이를 복원하거나 wipefs로 완전히 제거합니다." - - #: ../blivet/errors.py:230 -@@ -163,11 +162,11 @@ msgstr "zFCP 장치 %(devnum)s (%(e)s)에서 WWPN %(wwpn)s을(를) 제거할 수 - #: ../blivet/zfcp.py:271 - #, python-format - msgid "Could not set zFCP device %(devnum)s offline (%(e)s)." --msgstr "zFCP 장치 %(devnum)s를 오프라인 (%(e)s)으로 설정 할 수 없습니다." -+msgstr "zFCP 장치 %(devnum)s를 오프라인 (%(e)s)으로 설정할 수 없습니다." - - #: ../blivet/iscsi.py:217 - msgid "Unable to change iSCSI initiator name once set" --msgstr "iSCSI 개시자 이름이 설정되면 이를 변경 할 수 없음" -+msgstr "iSCSI 개시자 이름이 설정되면 이를 변경할 수 없음" - - #: ../blivet/iscsi.py:219 - msgid "Must provide an iSCSI initiator name" -@@ -187,11 +186,11 @@ msgstr "iSCSI 노드를 찾을 수 없음" - - #: ../blivet/iscsi.py:550 - msgid "No new iSCSI nodes discovered" --msgstr "새로운 iSCSI 노드를 찾을 수 없음" -+msgstr "새 iSCSI 노드를 찾을 수 없음" - - #: ../blivet/iscsi.py:553 - msgid "Could not log in to any of the discovered nodes" --msgstr "검색된 노드로 로그인 할 수 없음" -+msgstr "검색된 노드로 로그인할 수 없음" - - #: ../blivet/partitioning.py:454 - msgid "unable to allocate aligned partition" -@@ -343,12 +342,12 @@ msgstr[0] "RAID 레벨 %(raid_level)s에는 최소 %(min_members)d개의 장치 - #, python-format - msgid "" - "RAID level %(raid_level)s is an invalid value. Must be one of (%(levels)s)." --msgstr "레이드 수준(level) %(raid_level)s이 유효한 값이 아닙니다. (%(levels)s) 중 하나여야 합니다." -+msgstr "RAID 레벨 %(raid_level)s이/가 유효한 값이 아닙니다. (%(levels)s) 중 하나여야 합니다." - - #: ../blivet/devices/raid.py:104 - #, python-format - msgid "Cannot remove a member from existing %s array" --msgstr "기존 %s 어레이에서 장치 구성원을 제거 할 수 없습니다" -+msgstr "기존 %s 어레이에서 장치 구성원을 제거할 수 없습니다" - - #: ../blivet/formats/fs.py:932 - msgid "EFI System Partition" -@@ -360,7 +359,7 @@ msgstr "Apple 부트스트랩" - - #: ../blivet/formats/fs.py:1173 - msgid "Linux HFS+ ESP" --msgstr "리눅스 HFS+ ESP" -+msgstr "Linux HFS+ ESP" - - #: ../blivet/formats/prepboot.py:37 - msgid "PPC PReP Boot" -diff --git a/po/pt.po b/po/pt.po -index 8438146..eee541a 100644 ---- a/po/pt.po -+++ b/po/pt.po -@@ -8,22 +8,21 @@ - # Miguel Sousa , 2012 - # Ricardo Pinto , 2011 - # Rui Gouveia , 2011-2012 --# Pedro Flores , 2021. - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2021-03-14 17:01+0000\n" --"Last-Translator: Pedro Flores \n" --"Language-Team: Portuguese \n" -+"PO-Revision-Date: 2015-01-05 05:26+0000\n" -+"Last-Translator: Copied by Zanata \n" -+"Language-Team: Portuguese (http://www.transifex.com/projects/p/blivet/" -+"language/pt/)\n" - "Language: pt\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=2; plural=(n != 1);\n" --"X-Generator: Weblate 4.5.1\n" -+"X-Generator: Zanata 4.6.2\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -31,9 +30,6 @@ msgid "" - "of the UUID value which should be unique. In that case you can either " - "disconnect one of the devices or reformat it." - msgstr "" --"Isto ocorre normalmente ao clonar a imagem do dispositivo que resulta na " --"duplicação do valor UUID que deve ser único. Nesse caso pode desligar um dos " --"dispositivos ou reformatá-lo." - - #: ../blivet/errors.py:217 - msgid "" -@@ -41,9 +37,6 @@ msgid "" - "kernel is reporting partitions on. It is unclear what the exact problem is. " - "Please file a bug at http://bugzilla.redhat.com" - msgstr "" --"Por alguma razão não fomos capazes de localizar uma etiqueta de disco num " --"disco onde o kernel está a reportar partições em. Não é sabido qual é o " --"problema exato. Por favor crie um bug em http://bugzilla.redhat.com" - - #: ../blivet/errors.py:224 - msgid "" -@@ -51,9 +44,6 @@ msgid "" - "completely.\n" - "Hint: parted can restore it or wipefs can remove it." - msgstr "" --"Ou restaure a etiqueta do disco para um estado funcional ou remova-a " --"completamente.\n" --"Dica: o parted pode restaurá-la ou o wipefs pode removê-la." - - #: ../blivet/errors.py:230 - msgid "" -@@ -61,9 +51,6 @@ msgid "" - "Hint 1: vgrename accepts UUID in place of the old name.\n" - "Hint 2: You can get the VG UUIDs by running 'pvs -o +vg_uuid'." - msgstr "" --"Renomeie um dos volumes de grupo para que os nomes sejam distintos.\n" --"Dica 1: vgrename aceita UUID no lugar do nome antigo.\n" --"Dica 2: Pode obter os UUIDs dos volumes de grupo ao correr 'pvs -o +vg_uuid'." - - #: ../blivet/fcoe.py:121 - msgid "FCoE not available" -@@ -190,7 +177,7 @@ msgstr "Nome do iniciador não configurado" - - #: ../blivet/iscsi.py:530 - msgid "No iSCSI nodes discovered" --msgstr "Não foram encontrados novos nós iSCCI" -+msgstr "" - - #: ../blivet/iscsi.py:550 - msgid "No new iSCSI nodes discovered" -@@ -198,20 +185,20 @@ msgstr "Não foram encontrados novos nós iSCCI" - - #: ../blivet/iscsi.py:553 - msgid "Could not log in to any of the discovered nodes" --msgstr "Não foi possível iniciar sessão em nenhum dos nós descobertos" -+msgstr "" - - #: ../blivet/partitioning.py:454 - msgid "unable to allocate aligned partition" --msgstr "impossível alocar partição alinhada" -+msgstr "" - - #: ../blivet/partitioning.py:462 - msgid "requested size exceeds maximum allowed" --msgstr "tamanho pedido excede o máximo permitido" -+msgstr "" - - #: ../blivet/partitioning.py:580 - #, python-format - msgid "disk %s inaccessible" --msgstr "disco %s inacessível" -+msgstr "" - - #: ../blivet/partitioning.py:641 - #, python-format -@@ -219,8 +206,6 @@ msgid "" - "partition is too small for %(format)s formatting (allowable size is " - "%(min_size)s to %(max_size)s)" - msgstr "" --"a partição é pequena demais para o formato %(format)s (o tamanho permitido é " --"%(min_size)s a %(max_size)s)" - - #: ../blivet/partitioning.py:646 - #, python-format -@@ -228,63 +213,61 @@ msgid "" - "partition is too large for %(format)s formatting (allowable size is " - "%(min_size)s to %(max_size)s)" - msgstr "" --"a partição é grande demais para o formato %(format)s (o tamanho permitido é " --"%(min_size)s a %(max_size)s)" - - #: ../blivet/partitioning.py:962 - msgid "Unable to allocate requested partition scheme." --msgstr "Impossível alocar o esquema de partições pedido." -+msgstr "" - - #: ../blivet/partitioning.py:997 - msgid "not enough free space after creating extended partition" --msgstr "não há espaço livre suficiente após a criação da partição estendida" -+msgstr "" - - #: ../blivet/partitioning.py:1004 - msgid "failed to allocate aligned partition" --msgstr "falhou a alocação da partição alinhada" -+msgstr "" - - #: ../blivet/partitioning.py:1205 - msgid "cannot reclaim more than request has grown" --msgstr "não é possível reclamar mais do que o pedido cresceu" -+msgstr "" - - #: ../blivet/partitioning.py:1419 - msgid "DiskChunk requests must be of type PartitionRequest" --msgstr "Pedidos DiskChunk devem ser do tipo PartitionRequest" -+msgstr "" - - #: ../blivet/partitioning.py:1432 - msgid "partitions allocated outside disklabel limits" --msgstr "partições alocadas fora dos limites da etiqueta de disco" -+msgstr "" - - #: ../blivet/partitioning.py:1517 - msgid "VGChunk requests must be of type LVRequest" --msgstr "Pedidos VGChunk devem ser do tipo LVRequest" -+msgstr "" - - #. by now we have allocated the PVs so if there isn't enough - #. space in the VG we have a real problem - #: ../blivet/partitioning.py:2025 - msgid "not enough space for LVM requests" --msgstr "não há espaço suficiente para pedidos LVM" -+msgstr "" - - #: ../blivet/deviceaction.py:194 - #, python-format - msgid "Executing %(action)s" --msgstr "A executar %(action)s" -+msgstr "" - - #: ../blivet/deviceaction.py:322 - msgid "create device" --msgstr "criar dispositivo" -+msgstr "" - - #: ../blivet/deviceaction.py:381 - msgid "destroy device" --msgstr "destruir dispositivo" -+msgstr "" - - #: ../blivet/deviceaction.py:484 - msgid "resize device" --msgstr "redimensionar dispositivo" -+msgstr "" - - #: ../blivet/deviceaction.py:573 - msgid "create format" --msgstr "criar formato" -+msgstr "" - - #: ../blivet/deviceaction.py:613 - #, python-format -@@ -294,46 +277,46 @@ msgstr "A criar %(type)s em %(device)s" - #: ../blivet/deviceaction.py:640 - #, python-format - msgid "Not enough entropy to create LUKS format. %d bits are needed." --msgstr "Entropia insuficiente para criar formato LUKS. %d bits são necessários." -+msgstr "" - - #: ../blivet/deviceaction.py:670 - #, python-format - msgid "Created %(type)s on %(device)s" --msgstr "Criado %(type)s em %(device)s" -+msgstr "" - - #: ../blivet/deviceaction.py:717 - msgid "destroy format" --msgstr "destruir formato" -+msgstr "" - - #: ../blivet/deviceaction.py:830 - msgid "resize format" --msgstr "redimensionar formato" -+msgstr "" - - #: ../blivet/deviceaction.py:869 - #, python-format - msgid "Resizing filesystem on %(device)s" --msgstr "A redimensionar sistema de ficheiros em %(device)s" -+msgstr "" - - #: ../blivet/deviceaction.py:876 - #, python-format - msgid "Resized filesystem on %(device)s" --msgstr "Sistema de ficheiros redimensionado em %(device)s" -+msgstr "" - - #: ../blivet/deviceaction.py:923 - msgid "add container member" --msgstr "adicionar membro do contentor" -+msgstr "" - - #: ../blivet/deviceaction.py:988 - msgid "remove container member" --msgstr "remover membro do contentor" -+msgstr "" - - #: ../blivet/deviceaction.py:1058 - msgid "configure format" --msgstr "configurar formato" -+msgstr "" - - #: ../blivet/deviceaction.py:1114 - msgid "configure device" --msgstr "configurar dispositivo" -+msgstr "" - - #: ../blivet/devices/raid.py:58 - #, python-format -@@ -344,24 +327,17 @@ msgid_plural "" - "RAID level %(raid_level)s requires that device have at least %(min_members)d " - "members." - msgstr[0] "" --"Nível RAID %(raid_level)s requer que o dispositivo tenha pelo menos " --"%(min_members)d membro." --msgstr[1] "" --"Nível RAID %(raid_level)s requer que o dispositivo tenha pelo menos " --"%(min_members)d membros." - - #: ../blivet/devices/raid.py:79 - #, python-format - msgid "" - "RAID level %(raid_level)s is an invalid value. Must be one of (%(levels)s)." - msgstr "" --"Nível RAID %(raid_level)s é inválido. Tem que ser um dos seguintes " --"(%(levels)s)." - - #: ../blivet/devices/raid.py:104 - #, python-format - msgid "Cannot remove a member from existing %s array" --msgstr "Não pode remover um membro de um array %s" -+msgstr "" - - #: ../blivet/formats/fs.py:932 - msgid "EFI System Partition" -@@ -369,19 +345,19 @@ msgstr "Partição do Sistema EFI" - - #: ../blivet/formats/fs.py:1137 - msgid "Apple Bootstrap" --msgstr "Apple Bootstrap" -+msgstr "" - - #: ../blivet/formats/fs.py:1173 - msgid "Linux HFS+ ESP" --msgstr "Linux HFS+ ESP" -+msgstr "" - - #: ../blivet/formats/prepboot.py:37 - msgid "PPC PReP Boot" --msgstr "PPC PReP Boot" -+msgstr "" - - #: ../blivet/formats/luks.py:58 - msgid "LUKS" --msgstr "LUKS" -+msgstr "" - - #: ../blivet/formats/luks.py:59 - msgid "Encrypted" -@@ -389,46 +365,46 @@ msgstr "Cifrado" - - #: ../blivet/formats/luks.py:388 - msgid "DM Integrity" --msgstr "Integridade DM" -+msgstr "" - - #: ../blivet/formats/__init__.py:148 - msgid "Unknown" --msgstr "Desconhecido" -+msgstr "" - - #: ../blivet/formats/biosboot.py:35 - msgid "BIOS Boot" --msgstr "Arranque BIOS" -+msgstr "" - - #: ../blivet/formats/dmraid.py:37 - msgid "dm-raid member device" --msgstr "dispositivo membro dm-raid" -+msgstr "" - - #: ../blivet/formats/disklabel.py:50 - msgid "partition table" --msgstr "tabela de partições" -+msgstr "" - - #. Translators: Name for an unsupported disklabel; e.g. "Unsupported partition table" - #: ../blivet/formats/disklabel.py:320 - #, python-format - msgid "Unsupported %(name)s" --msgstr "%(name)s não suportado" -+msgstr "" - - #: ../blivet/formats/mdraid.py:43 - msgid "software RAID" --msgstr "RAID por software" -+msgstr "" - - #: ../blivet/formats/multipath.py:40 - msgid "multipath member device" --msgstr "dispositivo membro multicaminho" -+msgstr "" - - #: ../blivet/formats/lvmpv.py:49 - msgid "physical volume (LVM)" --msgstr "volume físico (LVM)" -+msgstr "" - - #: ../blivet/devicelibs/lvm.py:59 - msgid "Generic" --msgstr "Genérico" -+msgstr "" - - #: ../blivet/devicelibs/lvm.py:60 - msgid "Performance" --msgstr "Desempenho" -+msgstr "" -diff --git a/po/sv.po b/po/sv.po -index 64a72e4..f81ef32 100644 ---- a/po/sv.po -+++ b/po/sv.po -@@ -4,21 +4,21 @@ - # - # Translators: - # Dimitris Glezos , 2011 --# Göran Uddeborg , 2011-2012, 2020. -+# Göran Uddeborg , 2011-2012 - # fedoratrans , 2007 - # Ulrika , 2012 --# Göran Uddeborg , 2015. #zanata, 2020. --# Göran Uddeborg , 2016. #zanata, 2020. --# Göran Uddeborg , 2018. #zanata, 2020. --# Göran Uddeborg , 2019. #zanata, 2020. -+# Göran Uddeborg , 2015. #zanata -+# Göran Uddeborg , 2016. #zanata -+# Göran Uddeborg , 2018. #zanata -+# Göran Uddeborg , 2019. #zanata - # Allan Nordhøy , 2020. - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2020-09-12 15:29+0000\n" --"Last-Translator: Göran Uddeborg \n" -+"PO-Revision-Date: 2020-05-21 05:40+0000\n" -+"Last-Translator: Allan Nordhøy \n" - "Language-Team: Swedish \n" - "Language: sv\n" -@@ -26,7 +26,7 @@ msgstr "" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=2; plural=n != 1;\n" --"X-Generator: Weblate 4.2.2\n" -+"X-Generator: Weblate 4.0.4\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -45,7 +45,7 @@ msgid "" - "Please file a bug at http://bugzilla.redhat.com" - msgstr "" - "Av någon anledning kunde vi inte hitta en disketikett på en disk som kärnan " --"rapporterar partitioner på. Det är oklart vad det precisa problemet är. " -+"rapporterar partitioner på. Det är oklart vad det precisa problemet är. " - "Rapportera gärna felet på http://bugzilla.redhat.com" - - #: ../blivet/errors.py:224 -diff --git a/po/tr.po b/po/tr.po -index 43083d8..f414156 100644 ---- a/po/tr.po -+++ b/po/tr.po -@@ -1,7 +1,7 @@ - # SOME DESCRIPTIVE TITLE. - # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER - # This file is distributed under the same license as the PACKAGE package. --# -+# - # Translators: - # Bahadir Yagan , 2004 - # dcantrel , 2011 -@@ -18,16 +18,16 @@ msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2020-09-15 19:29+0000\n" -+"PO-Revision-Date: 2021-09-05 20:04+0000\n" - "Last-Translator: Oğuz Ersen \n" - "Language-Team: Turkish \n" -+"blivet-rhel8/tr/>\n" - "Language: tr\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" - "Content-Transfer-Encoding: 8bit\n" - "Plural-Forms: nplurals=2; plural=(n>1);\n" --"X-Generator: Weblate 4.2.2\n" -+"X-Generator: Weblate 4.8\n" - - #: ../blivet/errors.py:210 - msgid "" -@@ -238,7 +238,7 @@ msgstr "genişletilmiş bölüm oluşturduktan sonra yeterli boş alan yok" - - #: ../blivet/partitioning.py:1004 - msgid "failed to allocate aligned partition" --msgstr "hizalanmış bölüm ayırma başarısız oldu" -+msgstr "hizalanmış bölüm ayrılamadı" - - #: ../blivet/partitioning.py:1205 - msgid "cannot reclaim more than request has grown" -diff --git a/po/zh_CN.po b/po/zh_CN.po -index 0c488fc..2be6d49 100644 ---- a/po/zh_CN.po -+++ b/po/zh_CN.po -@@ -16,16 +16,15 @@ - # xiaofeng , 2012 - # yusuf , 2011 - # Ludek Janda , 2018. #zanata --# Charles Lee , 2020. - msgid "" - msgstr "" - "Project-Id-Version: PACKAGE VERSION\n" - "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2020-01-29 14:04+0100\n" --"PO-Revision-Date: 2020-08-02 07:29+0000\n" --"Last-Translator: Charles Lee \n" -+"PO-Revision-Date: 2020-07-03 07:42+0000\n" -+"Last-Translator: Ludek Janda \n" - "Language-Team: Chinese (Simplified) \n" -+"projects/blivet/blivet-rhel8/zh_CN/>\n" - "Language: zh_CN\n" - "MIME-Version: 1.0\n" - "Content-Type: text/plain; charset=UTF-8\n" -@@ -46,7 +45,8 @@ msgid "" - "kernel is reporting partitions on. It is unclear what the exact problem is. " - "Please file a bug at http://bugzilla.redhat.com" - msgstr "" --"由于某些原因我们无法在磁盘上定位内核所报告分区的磁盘标签。尚不了解具体问题所在。请在 http://bugzilla.redhat.com 提交 bug" -+"由于某些原因无法定位内核报告中显示在其中进行分区的磁盘的磁盘标签。尚不了解具体问题所在。请在 http://bugzilla.redhat.com 提交 " -+"bug" - - #: ../blivet/errors.py:224 - msgid "" -@@ -170,7 +170,7 @@ msgstr "设定后就无法更改 iSCSI 启动程序名称" - - #: ../blivet/iscsi.py:219 - msgid "Must provide an iSCSI initiator name" --msgstr "您必须提供一个 iSCSI 发起者的名称" -+msgstr "您必须提供一个 iSCSI 启动程序名称" - - #: ../blivet/iscsi.py:410 - msgid "iSCSI not available" -@@ -223,7 +223,7 @@ msgstr "" - - #: ../blivet/partitioning.py:962 - msgid "Unable to allocate requested partition scheme." --msgstr "无法分配请求的分区方案。" -+msgstr "无法分配所需分区方案。" - - #: ../blivet/partitioning.py:997 - msgid "not enough free space after creating extended partition" diff --git a/SOURCES/0009-Revert-Adjust-to-new-XFS-min-size.patch b/SOURCES/0009-Revert-Adjust-to-new-XFS-min-size.patch new file mode 100644 index 0000000..167fd2d --- /dev/null +++ b/SOURCES/0009-Revert-Adjust-to-new-XFS-min-size.patch @@ -0,0 +1,160 @@ +From 9618b84f94187efddc7316c2546bed923a91ecf9 Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Thu, 3 Nov 2022 08:36:27 +0100 +Subject: [PATCH 1/2] Revert "Set XFS minimal size to 300 MiB" + +This reverts commit 307d49833771d161314bae50c68e70dc35c3bb36. +--- + blivet/formats/fs.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py +index 8c346aa5..33922f3a 100644 +--- a/blivet/formats/fs.py ++++ b/blivet/formats/fs.py +@@ -1091,7 +1091,7 @@ class XFS(FS): + _modules = ["xfs"] + _labelfs = fslabeling.XFSLabeling() + _uuidfs = fsuuid.XFSUUID() +- _min_size = Size("300 MiB") ++ _min_size = Size("16 MiB") + _max_size = Size("16 EiB") + _formattable = True + _linux_native = True +-- +2.38.1 + + +From 24d94922d6879baa85aaa101f6b21efa568a9cbc Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Thu, 3 Nov 2022 08:36:39 +0100 +Subject: [PATCH 2/2] Revert "tests: Create bigger devices for XFS testing" + +This reverts commit 467cb8024010b2cabb1e92d9e64f6d3cbe949ad9. +--- + tests/storage_tests/formats_test/fs_test.py | 7 +++---- + tests/storage_tests/formats_test/fslabeling.py | 4 +--- + tests/storage_tests/formats_test/fsuuid.py | 4 +--- + tests/storage_tests/formats_test/labeling_test.py | 2 -- + tests/storage_tests/formats_test/uuid_test.py | 3 --- + 5 files changed, 5 insertions(+), 15 deletions(-) + +diff --git a/tests/storage_tests/formats_test/fs_test.py b/tests/storage_tests/formats_test/fs_test.py +index cf8fb441..97f4cbbe 100644 +--- a/tests/storage_tests/formats_test/fs_test.py ++++ b/tests/storage_tests/formats_test/fs_test.py +@@ -54,7 +54,6 @@ class ReiserFSTestCase(fstesting.FSAsRoot): + + class XFSTestCase(fstesting.FSAsRoot): + _fs_class = fs.XFS +- _DEVICE_SIZE = Size("500 MiB") + + def can_resize(self, an_fs): + resize_tasks = (an_fs._resize, an_fs._size_info) +@@ -96,12 +95,12 @@ class XFSTestCase(fstesting.FSAsRoot): + self.assertFalse(an_fs.resizable) + # Not resizable, so can not do resizing actions. + with self.assertRaises(DeviceFormatError): +- an_fs.target_size = Size("300 MiB") ++ an_fs.target_size = Size("64 MiB") + with self.assertRaises(DeviceFormatError): + an_fs.do_resize() + else: + disk = DiskDevice(os.path.basename(self.loop_devices[0])) +- part = self._create_partition(disk, Size("300 MiB")) ++ part = self._create_partition(disk, Size("50 MiB")) + an_fs = self._fs_class() + an_fs.device = part.path + self.assertIsNone(an_fs.create()) +@@ -114,7 +113,7 @@ class XFSTestCase(fstesting.FSAsRoot): + part = self._create_partition(disk, size=part.size + Size("40 MiB")) + + # Try a reasonable target size +- TARGET_SIZE = Size("325 MiB") ++ TARGET_SIZE = Size("64 MiB") + an_fs.target_size = TARGET_SIZE + self.assertEqual(an_fs.target_size, TARGET_SIZE) + self.assertNotEqual(an_fs._size, TARGET_SIZE) +diff --git a/tests/storage_tests/formats_test/fslabeling.py b/tests/storage_tests/formats_test/fslabeling.py +index ebe0b70a..0e0dc261 100644 +--- a/tests/storage_tests/formats_test/fslabeling.py ++++ b/tests/storage_tests/formats_test/fslabeling.py +@@ -21,10 +21,8 @@ class LabelingAsRoot(loopbackedtestcase.LoopBackedTestCase): + _invalid_label = abc.abstractproperty( + doc="A label which is invalid for this filesystem.") + +- _DEVICE_SIZE = Size("100 MiB") +- + def __init__(self, methodName='run_test'): +- super(LabelingAsRoot, self).__init__(methodName=methodName, device_spec=[self._DEVICE_SIZE]) ++ super(LabelingAsRoot, self).__init__(methodName=methodName, device_spec=[Size("100 MiB")]) + + def setUp(self): + an_fs = self._fs_class() +diff --git a/tests/storage_tests/formats_test/fsuuid.py b/tests/storage_tests/formats_test/fsuuid.py +index 0b9762fd..16aa19a6 100644 +--- a/tests/storage_tests/formats_test/fsuuid.py ++++ b/tests/storage_tests/formats_test/fsuuid.py +@@ -23,11 +23,9 @@ class SetUUID(loopbackedtestcase.LoopBackedTestCase): + _invalid_uuid = abc.abstractproperty( + doc="An invalid UUID for this filesystem.") + +- _DEVICE_SIZE = Size("100 MiB") +- + def __init__(self, methodName='run_test'): + super(SetUUID, self).__init__(methodName=methodName, +- device_spec=[self._DEVICE_SIZE]) ++ device_spec=[Size("100 MiB")]) + + def setUp(self): + an_fs = self._fs_class() +diff --git a/tests/storage_tests/formats_test/labeling_test.py b/tests/storage_tests/formats_test/labeling_test.py +index 0702260a..d24e6619 100644 +--- a/tests/storage_tests/formats_test/labeling_test.py ++++ b/tests/storage_tests/formats_test/labeling_test.py +@@ -1,7 +1,6 @@ + import unittest + + from blivet.formats import device_formats +-from blivet.size import Size + import blivet.formats.fs as fs + import blivet.formats.swap as swap + +@@ -62,7 +61,6 @@ class InitializationTestCase(unittest.TestCase): + class XFSTestCase(fslabeling.CompleteLabelingAsRoot): + _fs_class = fs.XFS + _invalid_label = "root filesystem" +- _DEVICE_SIZE = Size("500 MiB") + + + class FATFSTestCase(fslabeling.CompleteLabelingAsRoot): +diff --git a/tests/storage_tests/formats_test/uuid_test.py b/tests/storage_tests/formats_test/uuid_test.py +index af35c0ee..ee8d452e 100644 +--- a/tests/storage_tests/formats_test/uuid_test.py ++++ b/tests/storage_tests/formats_test/uuid_test.py +@@ -2,7 +2,6 @@ import unittest + + import blivet.formats.fs as fs + import blivet.formats.swap as swap +-from blivet.size import Size + + from . import fsuuid + +@@ -53,14 +52,12 @@ class XFSTestCase(fsuuid.SetUUIDWithMkFs): + _fs_class = fs.XFS + _invalid_uuid = "abcdefgh-ijkl-mnop-qrst-uvwxyz123456" + _valid_uuid = "97e3d40f-dca8-497d-8b86-92f257402465" +- _DEVICE_SIZE = Size("500 MiB") + + + class XFSAfterTestCase(fsuuid.SetUUIDAfterMkFs): + _fs_class = fs.XFS + _invalid_uuid = "abcdefgh-ijkl-mnop-qrst-uvwxyz123456" + _valid_uuid = "97e3d40f-dca8-497d-8b86-92f257402465" +- _DEVICE_SIZE = Size("500 MiB") + + + class FATFSTestCase(fsuuid.SetUUIDWithMkFs): +-- +2.38.1 + diff --git a/SOURCES/0010-Catch-BlockDevNotImplementedError-for-btrfs-plugin-c.patch b/SOURCES/0010-Catch-BlockDevNotImplementedError-for-btrfs-plugin-c.patch new file mode 100644 index 0000000..a3a5f90 --- /dev/null +++ b/SOURCES/0010-Catch-BlockDevNotImplementedError-for-btrfs-plugin-c.patch @@ -0,0 +1,55 @@ +From fed62af06eb1584adbacd821dfe79c2df52c6aa4 Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Wed, 2 Nov 2022 12:14:28 +0100 +Subject: [PATCH] Catch BlockDevNotImplementedError for btrfs plugin calls + +This is a workaround for RHEL where the btrfs plugin is not +available and where we might still try to call some libblockdev +functions to gather information about preexisting btrfs devices. +--- + blivet/devices/btrfs.py | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/blivet/devices/btrfs.py b/blivet/devices/btrfs.py +index 0e029715..1ae6a04d 100644 +--- a/blivet/devices/btrfs.py ++++ b/blivet/devices/btrfs.py +@@ -362,7 +362,7 @@ class BTRFSVolumeDevice(BTRFSDevice, ContainerDevice, RaidDevice): + try: + subvols = blockdev.btrfs.list_subvolumes(mountpoint, + snapshots_only=snapshots_only) +- except blockdev.BtrfsError as e: ++ except (blockdev.BtrfsError, blockdev.BlockDevNotImplementedError) as e: + log.debug("failed to list subvolumes: %s", e) + else: + self._get_default_subvolume_id() +@@ -400,7 +400,7 @@ class BTRFSVolumeDevice(BTRFSDevice, ContainerDevice, RaidDevice): + with self._do_temp_mount() as mountpoint: + try: + subvolid = blockdev.btrfs.get_default_subvolume_id(mountpoint) +- except blockdev.BtrfsError as e: ++ except (blockdev.BtrfsError, blockdev.BlockDevNotImplementedError) as e: + log.debug("failed to get default subvolume id: %s", e) + + self._default_subvolume_id = subvolid +@@ -413,7 +413,7 @@ class BTRFSVolumeDevice(BTRFSDevice, ContainerDevice, RaidDevice): + with self._do_temp_mount() as mountpoint: + try: + blockdev.btrfs.set_default_subvolume(mountpoint, vol_id) +- except blockdev.BtrfsError as e: ++ except (blockdev.BtrfsError, blockdev.BlockDevNotImplementedError) as e: + log.error("failed to set new default subvolume id (%s): %s", + vol_id, e) + # The only time we set a new default subvolume is so we can remove +@@ -471,7 +471,7 @@ class BTRFSVolumeDevice(BTRFSDevice, ContainerDevice, RaidDevice): + if not self.format.vol_uuid: + try: + bd_info = blockdev.btrfs.filesystem_info(self.parents[0].path) +- except blockdev.BtrfsError as e: ++ except (blockdev.BtrfsError, blockdev.BlockDevNotImplementedError) as e: + log.error("failed to get filesystem info for new btrfs volume %s", e) + else: + self.format.vol_uuid = bd_info.uuid +-- +2.38.1 + diff --git a/SOURCES/0011-Default-to-encryption-sector-size-512-for-LUKS-devic.patch b/SOURCES/0011-Default-to-encryption-sector-size-512-for-LUKS-devic.patch new file mode 100644 index 0000000..ed3ede5 --- /dev/null +++ b/SOURCES/0011-Default-to-encryption-sector-size-512-for-LUKS-devic.patch @@ -0,0 +1,57 @@ +From 2aba050e74dc5df483da022dcf436b101c7a4301 Mon Sep 17 00:00:00 2001 +From: Vojtech Trefny +Date: Wed, 11 Jan 2023 14:59:24 +0100 +Subject: [PATCH] Default to encryption sector size 512 for LUKS devices + +We are currently letting cryptsetup decide the optimal encryption +sector size for LUKS. The problem is that for disks with physical +sector size 4096 cryptsetup will default to 4096 encryption sector +size even if the drive logical sector size is 512 which means +these disks cannot be combined with other 512 logical sector size +disks in LVM. This requires a more sophisticated solution in the +future, but for now just default to 512 if not specified by the +user otherwise. + +Resolves: rhbz#2103800 +--- + blivet/formats/luks.py | 10 +++++++--- + tests/unit_tests/formats_tests/luks_test.py | 2 +- + 2 files changed, 8 insertions(+), 4 deletions(-) + +diff --git a/blivet/formats/luks.py b/blivet/formats/luks.py +index 8de4911f..2637e0c5 100644 +--- a/blivet/formats/luks.py ++++ b/blivet/formats/luks.py +@@ -166,9 +166,13 @@ class LUKS(DeviceFormat): + if self.pbkdf_args.type == "pbkdf2" and self.pbkdf_args.max_memory_kb: + log.warning("Memory limit is not used for pbkdf2 and it will be ignored.") + +- self.luks_sector_size = kwargs.get("luks_sector_size") or 0 +- if self.luks_sector_size and self.luks_version != "luks2": +- raise ValueError("Sector size argument is valid only for LUKS version 2.") ++ self.luks_sector_size = kwargs.get("luks_sector_size") ++ if self.luks_version == "luks2": ++ if self.luks_sector_size is None: ++ self.luks_sector_size = 512 # XXX we don't want cryptsetup choose automatically here so fallback to 512 ++ else: ++ if self.luks_sector_size: ++ raise ValueError("Sector size argument is valid only for LUKS version 2.") + + def __repr__(self): + s = DeviceFormat.__repr__(self) +diff --git a/tests/unit_tests/formats_tests/luks_test.py b/tests/unit_tests/formats_tests/luks_test.py +index 5ae6acfe..ec7b7592 100644 +--- a/tests/unit_tests/formats_tests/luks_test.py ++++ b/tests/unit_tests/formats_tests/luks_test.py +@@ -53,7 +53,7 @@ class LUKSNodevTestCase(unittest.TestCase): + + def test_sector_size(self): + fmt = LUKS() +- self.assertEqual(fmt.luks_sector_size, 0) ++ self.assertEqual(fmt.luks_sector_size, 512) + + with self.assertRaises(ValueError): + fmt = LUKS(luks_version="luks1", luks_sector_size=4096) +-- +2.39.0 + diff --git a/SPECS/python-blivet.spec b/SPECS/python-blivet.spec index bb2c288..e63c2cf 100644 --- a/SPECS/python-blivet.spec +++ b/SPECS/python-blivet.spec @@ -19,11 +19,11 @@ Summary: A python module for system storage configuration Name: python-blivet Url: https://storageapis.wordpress.com/projects/blivet -Version: 3.4.0 +Version: 3.6.0 #%%global prerelease .b2 # prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2 -Release: 7%{?prerelease}%{?dist} +Release: 8%{?prerelease}%{?dist} Epoch: 1 License: LGPLv2+ %global realname blivet @@ -34,11 +34,13 @@ Patch0: 0001-force-lvm-cli.plugin Patch1: 0002-remove-btrfs-plugin.patch Patch2: 0003-Revert-More-consistent-lvm-errors.patch Patch3: 0004-Revert-Terminology-cleanups.patch -Patch4: 0005-Fix-activating-old-style-LVM-snapshots.patch -Patch5: 0006-Fix-resolving-devices-with-names-that-look-like-BIOS.patch -Patch6: 0007-Do-not-set-chunk-size-for-RAID1.patch -Patch7: 0008-Fix-running-tests-in-gating.patch -Patch8: 0009-PO-update.patch +Patch4: 0005-DDF-RAID-support-using-mdadm.patch +Patch5: 0006-Revert-Remove-the-Blivet.roots-attribute.patch +Patch6: 0007-Fix-potential-AttributeError-when-getting-stratis-bl.patch +Patch7: 0008-tests-Skip-XFS-resize-test-on-CentOS-RHEL-8.patch +Patch8: 0009-Revert-Adjust-to-new-XFS-min-size.patch +Patch9: 0010-Catch-BlockDevNotImplementedError-for-btrfs-plugin-c.patch +Patch10: 0011-Default-to-encryption-sector-size-512-for-LUKS-devic.patch # Versions of required components (done so we make sure the buildrequires # match the requires versions of things). @@ -209,9 +211,69 @@ configuration. * Tue Sep 28 2021 Neal Gompa - 3.4.0-7 - Enable Btrfs for CentOS Hyperscale SIG -* Mon Sep 13 2021 Vojtech Trefny - 3.4.0-6 +* Thu Jan 19 2023 Vojtech Trefny - 3.6.0-4 +- Default to encryption sector size 512 for LUKS devices + Resolves: rhbz#2160465 + +* Thu Nov 03 2022 Vojtech Trefny - 3.6.0-3 +- Catch BlockDevNotImplementedError for btrfs plugin calls + Resolves: rhbz#2139169 +- Revert "Adjust to new XFS min size" + Resolves: rhbz#2139187 + +* Fri Oct 21 2022 Vojtech Trefny - 3.6.0-2 +- Skip XFS resize test on CentOS/RHEL 8 + Related: rhbz#2123712 + +* Fri Oct 21 2022 Vojtech Trefny - 3.6.0-1 +- Rebase to the latest upstream release 3.6.0 + Resolves: rhbz#2123712 + +* Thu Aug 18 2022 Vojtech Trefny - 3.4.0-13 +- DDF RAID support using mdadm + Resolves: rhbz#2063791 + +* Mon Jun 20 2022 Vojtech Trefny - 3.4.0-12 +- Add support for NPIV-enabled zFCP devices + Resolves: rhbz#1497087 + +* Thu Jun 02 2022 Vojtech Trefny - 3.4.0-11 +- Fix running gating tests on AWS/Xen machines + Resolves: rhbz#2093207 + +* Thu Jun 02 2022 Vojtech Trefny - 3.4.0-10 +- Fix getting PV info in LVMPhysicalVolume from the cache + Resolves: rhbz#2079220 +- Do not crash when changing disklabel on disks with active devices + Resolves: rhbz#2078801 +- ActionDestroyDevice should not obsolete ActionRemoveMember + Resolves: rhbz#2076958 +- Correctly set vg_name after adding/removing a PV from a VG + Resolves: rhbz#2081276 +- Use LVM PV format current_size in LVMVolumeGroupDevice._remove + Related: rhbz#2081276 +- Add support for creating LVM cache pools + Resolves: rhbz#2055198 + +* Mon Jan 10 2022 Vojtech Trefny - 3.4.0-9 +- Translation update + Resolves: rhbz#2003050 + +* Tue Dec 14 2021 ojtech Trefny - 3.4.0-8 +- Replace all log_exception_info calls with log.info + Resolves: rhbz#2028134 + +* Fri Nov 26 2021 Vojtech Trefny - 3.4.0-7 +- Release number bump + Related: rhbz#1988276 + +* Fri Nov 26 2021 Vojtech Trefny - 3.4.0-6 - Localization update for 8.5 Resolves: rhbz#1962016 +- Improve error message printed for missing dependecies + Resolves: rhbz#1988276 +- Use bigger chunk size for thinpools bigger than ~15.88 TiB + Resolves: rhbz#1949953 * Wed Aug 4 2021 Vojtech Trefny - 3.4.0-5 - Fix running upstream test suite in gating