From 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:49:25 +0200 Subject: Adding upstream version 1.47.0. Signed-off-by: Daniel Baumann --- tests/f_bigalloc_badinode/script | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/f_bigalloc_badinode/script (limited to 'tests/f_bigalloc_badinode/script') diff --git a/tests/f_bigalloc_badinode/script b/tests/f_bigalloc_badinode/script new file mode 100644 index 0000000..6ceb6ee --- /dev/null +++ b/tests/f_bigalloc_badinode/script @@ -0,0 +1,23 @@ +if ! test -x $DEBUGFS_EXE; then + echo "$test_name: $test_description: skipped (no debugfs)" + return 0 +fi + +SKIP_GUNZIP="true" +TEST_DATA="$test_name.tmp" + +dd if=$TEST_BITS of=$TEST_DATA bs=4k count=2 seek=1> /dev/null 2>&1 + +touch $TMPFILE +$MKE2FS -Fq -t ext4 -o Linux -O bigalloc -C 16384 $TMPFILE 1M > /dev/null 2>&1 +$DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1 +write $TEST_DATA testfile +set_inode_field testfile i_mode 0120000 +quit +EOF + +. $cmd_dir/run_e2fsck + +rm -f $TEST_DATA + +unset E2FSCK_TIME TEST_DATA -- cgit v1.2.3