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