1if ! test -x $DEBUGFS_EXE; then 2 echo "$test_name: $test_description: skipped (no debugfs)" 3 return 0 4fi 5 6SKIP_GUNZIP="true" 7TEST_DATA="$test_name.tmp" 8 9dd if=/dev/zero of=$TMPFILE bs=1k count=256 > /dev/null 2>&1 10$MKE2FS -Ft ext4 $TMPFILE > /dev/null 2>&1 11$DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1 12write /dev/null testfile 13setb 100 15 14setb 130 30 15setb 200 30 16extent_open testfile 17 insert_node 0 15 100 18 insert_node --after 15 15 115 19 insert_node --after 30 15 130 20 insert_node --after 45 15 145 21 split 22 down 23 split 24 root 25 down 26 next 27 replace_node 15 30 200 28 extent_close 29set_inode_field testfile i_size 61400 30set_inode_field testfile i_blocks 154 31set_bg 0 free_blocks_count 156 32set_bg 0 bg_checksum calc 33set_super_value free_blocks_count 156 34q 35EOF 36 37. $cmd_dir/run_e2fsck 38 39rm -f $TEST_DATA 40 41unset E2FSCK_TIME TEST_DATA 42