55 lines
2.3 KiB
Diff
55 lines
2.3 KiB
Diff
|
From caa588269709659d5cf51bf64c559e193f371de4 Mon Sep 17 00:00:00 2001
|
||
|
From: "Brian C. Lane" <bcl@redhat.com>
|
||
|
Date: Tue, 13 Dec 2022 14:38:24 -0800
|
||
|
Subject: [PATCH] tests: XFS requires a minimum size of 300M
|
||
|
|
||
|
---
|
||
|
tests/t1700-probe-fs.sh | 3 ++-
|
||
|
tests/t4100-dvh-partition-limits.sh | 2 +-
|
||
|
tests/t4100-msdos-partition-limits.sh | 2 +-
|
||
|
3 files changed, 4 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/tests/t1700-probe-fs.sh b/tests/t1700-probe-fs.sh
|
||
|
index d33606e..f8af74e 100755
|
||
|
--- a/tests/t1700-probe-fs.sh
|
||
|
+++ b/tests/t1700-probe-fs.sh
|
||
|
@@ -42,7 +42,8 @@ for type in ext2 ext3 ext4 btrfs xfs nilfs2 ntfs vfat hfsplus udf f2fs; do
|
||
|
# create an $type file system, creation failures are not parted bugs,
|
||
|
# skip the filesystem instead of failing the test.
|
||
|
if [ "$type" = "xfs" ]; then
|
||
|
- mkfs.xfs -ssize=$ss -dfile,name=$dev,size=${n_sectors}s || { warn_ "$ME: mkfs.$type failed, skipping"; continue; }
|
||
|
+ # XFS requires at least 300M which is > 1024 sectors with 8192b sector size
|
||
|
+ mkfs.xfs -ssize=$ss -dfile,name=$dev,size=300m || { warn_ "$ME: mkfs.$type failed, skipping"; continue; }
|
||
|
else
|
||
|
dd if=/dev/null of=$dev bs=$ss seek=$n_sectors >/dev/null || { warn_ "$ME: dd failed, skipping $type"; continue; }
|
||
|
mkfs.$type $force $dev || { warn_ "$ME: mkfs.$type failed skipping"; continue; }
|
||
|
diff --git a/tests/t4100-dvh-partition-limits.sh b/tests/t4100-dvh-partition-limits.sh
|
||
|
index d3798d2..a5b3516 100755
|
||
|
--- a/tests/t4100-dvh-partition-limits.sh
|
||
|
+++ b/tests/t4100-dvh-partition-limits.sh
|
||
|
@@ -37,7 +37,7 @@ mp=`pwd`/mount-point
|
||
|
n=4096
|
||
|
|
||
|
# create an XFS file system
|
||
|
-mkfs.xfs -dfile,name=$fs,size=100m || fail=1
|
||
|
+mkfs.xfs -dfile,name=$fs,size=300m || fail=1
|
||
|
mkdir "$mp" || fail=1
|
||
|
|
||
|
# Unmount upon interrupt, failure, etc., as well as upon normal completion.
|
||
|
diff --git a/tests/t4100-msdos-partition-limits.sh b/tests/t4100-msdos-partition-limits.sh
|
||
|
index b591123..09267b5 100755
|
||
|
--- a/tests/t4100-msdos-partition-limits.sh
|
||
|
+++ b/tests/t4100-msdos-partition-limits.sh
|
||
|
@@ -37,7 +37,7 @@ mp=`pwd`/mount-point
|
||
|
n=4096
|
||
|
|
||
|
# create an XFS file system
|
||
|
-mkfs.xfs -dfile,name=$fs,size=100m || fail=1
|
||
|
+mkfs.xfs -dfile,name=$fs,size=300m || fail=1
|
||
|
mkdir "$mp" || fail=1
|
||
|
|
||
|
# Unmount upon interrupt, failure, etc., as well as upon normal completion.
|
||
|
--
|
||
|
2.38.1
|
||
|
|