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