]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - tests/f_bigalloc_badinode/script
tests: clean up $DEBUGFS_EXE usage in scripts
[thirdparty/e2fsprogs.git] / tests / f_bigalloc_badinode / script
CommitLineData
3819bff4
AD
1if ! test -x $DEBUGFS_EXE; then
2 echo "$test_name: $test_description: skipped (no debugfs)"
3 return 0
4fi
9d248022 5
6SKIP_GUNZIP="true"
7TEST_DATA="$test_name.tmp"
8
9dd if=$TEST_BITS of=$TEST_DATA bs=4k count=2 seek=1> /dev/null 2>&1
10
11touch $TMPFILE
79284d39
TT
12$MKE2FS -Fq -t ext4 -O bigalloc -C 16384 $TMPFILE 1M > /dev/null 2>&1
13$DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1
9d248022 14write $TEST_DATA testfile
15set_inode_field testfile i_mode 0120000
16quit
17EOF
18
19. $cmd_dir/run_e2fsck
20
21rm -f $TEST_DATA
22
23unset E2FSCK_TIME TEST_DATA