Blame SOURCES/0001-tests-specify-inode-size-in-r_corrupt_fs.patch

1806a9
From 0ec67ba5063b1fdcad4142633338c2cc98b60b5b Mon Sep 17 00:00:00 2001
1806a9
From: Lukas Czerner <lczerner@redhat.com>
1806a9
Date: Wed, 16 Feb 2022 11:12:28 +0100
1806a9
Subject: [PATCH] tests: specify inode size in r_corrupt_fs
1806a9
1806a9
Inode size will have an effect on the minimum resize size and this will
1806a9
have an effect on the test output. Stabilize the output by specifying
1806a9
the inode size instead of relying on the system configuration.
1806a9
1806a9
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
1806a9
---
1806a9
 tests/r_corrupt_fs/expect | 2 +-
1806a9
 tests/r_corrupt_fs/script | 4 ++--
1806a9
 2 files changed, 3 insertions(+), 3 deletions(-)
1806a9
1806a9
diff --git a/tests/r_corrupt_fs/expect b/tests/r_corrupt_fs/expect
1806a9
index fe0f2bc4..fbc0c23e 100644
1806a9
--- a/tests/r_corrupt_fs/expect
1806a9
+++ b/tests/r_corrupt_fs/expect
1806a9
@@ -1,4 +1,4 @@
1806a9
-mke2fs -q -F -t ext4 -o Linux -b 1024 test.img 32M
1806a9
+mke2fs -q -F -t ext4 -o Linux -b 1024 -I 256 test.img 32M
1806a9
 debugfs -w -R "set_bg 1 free_blocks_count 65536" /tmp/foo.img
1806a9
 resize2fs -P /tmp/foo.img
1806a9
 Estimated minimum size of the filesystem: 6604
1806a9
diff --git a/tests/r_corrupt_fs/script b/tests/r_corrupt_fs/script
1806a9
index f6d3a89d..45bbe071 100644
1806a9
--- a/tests/r_corrupt_fs/script
1806a9
+++ b/tests/r_corrupt_fs/script
1806a9
@@ -11,8 +11,8 @@ else
1806a9
 	EXP=$test_dir/expect
1806a9
 fi
1806a9
 
1806a9
-echo mke2fs -q -F -t ext4 -o Linux -b 1024 test.img 32M > $OUT.new
1806a9
-$MKE2FS -q -F -t ext4 -o Linux -b 1024 $TMPFILE 32M >> $OUT.new 2>&1
1806a9
+echo mke2fs -q -F -t ext4 -o Linux -b 1024 -I 256 test.img 32M > $OUT.new
1806a9
+$MKE2FS -q -F -t ext4 -o Linux -b 1024 -I 256 $TMPFILE 32M >> $OUT.new 2>&1
1806a9
 
1806a9
 echo debugfs -w -R \"set_bg 1 free_blocks_count 65536\" /tmp/foo.img >> $OUT.new
1806a9
 $DEBUGFS -w -R "set_bg 1 free_blocks_count 65536" $TMPFILE > /dev/null 2>&1
1806a9
-- 
1806a9
2.34.1
1806a9