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