ff33a1
From 9618b84f94187efddc7316c2546bed923a91ecf9 Mon Sep 17 00:00:00 2001
ff33a1
From: Vojtech Trefny <vtrefny@redhat.com>
ff33a1
Date: Thu, 3 Nov 2022 08:36:27 +0100
ff33a1
Subject: [PATCH 1/2] Revert "Set XFS minimal size to 300 MiB"
ff33a1
ff33a1
This reverts commit 307d49833771d161314bae50c68e70dc35c3bb36.
ff33a1
---
ff33a1
 blivet/formats/fs.py | 2 +-
ff33a1
 1 file changed, 1 insertion(+), 1 deletion(-)
ff33a1
ff33a1
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
ff33a1
index 8c346aa5..33922f3a 100644
ff33a1
--- a/blivet/formats/fs.py
ff33a1
+++ b/blivet/formats/fs.py
ff33a1
@@ -1091,7 +1091,7 @@ class XFS(FS):
ff33a1
     _modules = ["xfs"]
ff33a1
     _labelfs = fslabeling.XFSLabeling()
ff33a1
     _uuidfs = fsuuid.XFSUUID()
ff33a1
-    _min_size = Size("300 MiB")
ff33a1
+    _min_size = Size("16 MiB")
ff33a1
     _max_size = Size("16 EiB")
ff33a1
     _formattable = True
ff33a1
     _linux_native = True
ff33a1
-- 
ff33a1
2.38.1
ff33a1
ff33a1
ff33a1
From 24d94922d6879baa85aaa101f6b21efa568a9cbc Mon Sep 17 00:00:00 2001
ff33a1
From: Vojtech Trefny <vtrefny@redhat.com>
ff33a1
Date: Thu, 3 Nov 2022 08:36:39 +0100
ff33a1
Subject: [PATCH 2/2] Revert "tests: Create bigger devices for XFS testing"
ff33a1
ff33a1
This reverts commit 467cb8024010b2cabb1e92d9e64f6d3cbe949ad9.
ff33a1
---
ff33a1
 tests/storage_tests/formats_test/fs_test.py       | 7 +++----
ff33a1
 tests/storage_tests/formats_test/fslabeling.py    | 4 +---
ff33a1
 tests/storage_tests/formats_test/fsuuid.py        | 4 +---
ff33a1
 tests/storage_tests/formats_test/labeling_test.py | 2 --
ff33a1
 tests/storage_tests/formats_test/uuid_test.py     | 3 ---
ff33a1
 5 files changed, 5 insertions(+), 15 deletions(-)
ff33a1
ff33a1
diff --git a/tests/storage_tests/formats_test/fs_test.py b/tests/storage_tests/formats_test/fs_test.py
ff33a1
index cf8fb441..97f4cbbe 100644
ff33a1
--- a/tests/storage_tests/formats_test/fs_test.py
ff33a1
+++ b/tests/storage_tests/formats_test/fs_test.py
ff33a1
@@ -54,7 +54,6 @@ class ReiserFSTestCase(fstesting.FSAsRoot):
ff33a1
 
ff33a1
 class XFSTestCase(fstesting.FSAsRoot):
ff33a1
     _fs_class = fs.XFS
ff33a1
-    _DEVICE_SIZE = Size("500 MiB")
ff33a1
 
ff33a1
     def can_resize(self, an_fs):
ff33a1
         resize_tasks = (an_fs._resize, an_fs._size_info)
ff33a1
@@ -96,12 +95,12 @@ class XFSTestCase(fstesting.FSAsRoot):
ff33a1
             self.assertFalse(an_fs.resizable)
ff33a1
             # Not resizable, so can not do resizing actions.
ff33a1
             with self.assertRaises(DeviceFormatError):
ff33a1
-                an_fs.target_size = Size("300 MiB")
ff33a1
+                an_fs.target_size = Size("64 MiB")
ff33a1
             with self.assertRaises(DeviceFormatError):
ff33a1
                 an_fs.do_resize()
ff33a1
         else:
ff33a1
             disk = DiskDevice(os.path.basename(self.loop_devices[0]))
ff33a1
-            part = self._create_partition(disk, Size("300 MiB"))
ff33a1
+            part = self._create_partition(disk, Size("50 MiB"))
ff33a1
             an_fs = self._fs_class()
ff33a1
             an_fs.device = part.path
ff33a1
             self.assertIsNone(an_fs.create())
ff33a1
@@ -114,7 +113,7 @@ class XFSTestCase(fstesting.FSAsRoot):
ff33a1
             part = self._create_partition(disk, size=part.size + Size("40 MiB"))
ff33a1
 
ff33a1
             # Try a reasonable target size
ff33a1
-            TARGET_SIZE = Size("325 MiB")
ff33a1
+            TARGET_SIZE = Size("64 MiB")
ff33a1
             an_fs.target_size = TARGET_SIZE
ff33a1
             self.assertEqual(an_fs.target_size, TARGET_SIZE)
ff33a1
             self.assertNotEqual(an_fs._size, TARGET_SIZE)
ff33a1
diff --git a/tests/storage_tests/formats_test/fslabeling.py b/tests/storage_tests/formats_test/fslabeling.py
ff33a1
index ebe0b70a..0e0dc261 100644
ff33a1
--- a/tests/storage_tests/formats_test/fslabeling.py
ff33a1
+++ b/tests/storage_tests/formats_test/fslabeling.py
ff33a1
@@ -21,10 +21,8 @@ class LabelingAsRoot(loopbackedtestcase.LoopBackedTestCase):
ff33a1
     _invalid_label = abc.abstractproperty(
ff33a1
         doc="A label which is invalid for this filesystem.")
ff33a1
 
ff33a1
-    _DEVICE_SIZE = Size("100 MiB")
ff33a1
-
ff33a1
     def __init__(self, methodName='run_test'):
ff33a1
-        super(LabelingAsRoot, self).__init__(methodName=methodName, device_spec=[self._DEVICE_SIZE])
ff33a1
+        super(LabelingAsRoot, self).__init__(methodName=methodName, device_spec=[Size("100 MiB")])
ff33a1
 
ff33a1
     def setUp(self):
ff33a1
         an_fs = self._fs_class()
ff33a1
diff --git a/tests/storage_tests/formats_test/fsuuid.py b/tests/storage_tests/formats_test/fsuuid.py
ff33a1
index 0b9762fd..16aa19a6 100644
ff33a1
--- a/tests/storage_tests/formats_test/fsuuid.py
ff33a1
+++ b/tests/storage_tests/formats_test/fsuuid.py
ff33a1
@@ -23,11 +23,9 @@ class SetUUID(loopbackedtestcase.LoopBackedTestCase):
ff33a1
     _invalid_uuid = abc.abstractproperty(
ff33a1
         doc="An invalid UUID for this filesystem.")
ff33a1
 
ff33a1
-    _DEVICE_SIZE = Size("100 MiB")
ff33a1
-
ff33a1
     def __init__(self, methodName='run_test'):
ff33a1
         super(SetUUID, self).__init__(methodName=methodName,
ff33a1
-                                      device_spec=[self._DEVICE_SIZE])
ff33a1
+                                      device_spec=[Size("100 MiB")])
ff33a1
 
ff33a1
     def setUp(self):
ff33a1
         an_fs = self._fs_class()
ff33a1
diff --git a/tests/storage_tests/formats_test/labeling_test.py b/tests/storage_tests/formats_test/labeling_test.py
ff33a1
index 0702260a..d24e6619 100644
ff33a1
--- a/tests/storage_tests/formats_test/labeling_test.py
ff33a1
+++ b/tests/storage_tests/formats_test/labeling_test.py
ff33a1
@@ -1,7 +1,6 @@
ff33a1
 import unittest
ff33a1
 
ff33a1
 from blivet.formats import device_formats
ff33a1
-from blivet.size import Size
ff33a1
 import blivet.formats.fs as fs
ff33a1
 import blivet.formats.swap as swap
ff33a1
 
ff33a1
@@ -62,7 +61,6 @@ class InitializationTestCase(unittest.TestCase):
ff33a1
 class XFSTestCase(fslabeling.CompleteLabelingAsRoot):
ff33a1
     _fs_class = fs.XFS
ff33a1
     _invalid_label = "root filesystem"
ff33a1
-    _DEVICE_SIZE = Size("500 MiB")
ff33a1
 
ff33a1
 
ff33a1
 class FATFSTestCase(fslabeling.CompleteLabelingAsRoot):
ff33a1
diff --git a/tests/storage_tests/formats_test/uuid_test.py b/tests/storage_tests/formats_test/uuid_test.py
ff33a1
index af35c0ee..ee8d452e 100644
ff33a1
--- a/tests/storage_tests/formats_test/uuid_test.py
ff33a1
+++ b/tests/storage_tests/formats_test/uuid_test.py
ff33a1
@@ -2,7 +2,6 @@ import unittest
ff33a1
 
ff33a1
 import blivet.formats.fs as fs
ff33a1
 import blivet.formats.swap as swap
ff33a1
-from blivet.size import Size
ff33a1
 
ff33a1
 from . import fsuuid
ff33a1
 
ff33a1
@@ -53,14 +52,12 @@ class XFSTestCase(fsuuid.SetUUIDWithMkFs):
ff33a1
     _fs_class = fs.XFS
ff33a1
     _invalid_uuid = "abcdefgh-ijkl-mnop-qrst-uvwxyz123456"
ff33a1
     _valid_uuid = "97e3d40f-dca8-497d-8b86-92f257402465"
ff33a1
-    _DEVICE_SIZE = Size("500 MiB")
ff33a1
 
ff33a1
 
ff33a1
 class XFSAfterTestCase(fsuuid.SetUUIDAfterMkFs):
ff33a1
     _fs_class = fs.XFS
ff33a1
     _invalid_uuid = "abcdefgh-ijkl-mnop-qrst-uvwxyz123456"
ff33a1
     _valid_uuid = "97e3d40f-dca8-497d-8b86-92f257402465"
ff33a1
-    _DEVICE_SIZE = Size("500 MiB")
ff33a1
 
ff33a1
 
ff33a1
 class FATFSTestCase(fsuuid.SetUUIDWithMkFs):
ff33a1
-- 
ff33a1
2.38.1
ff33a1