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

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