1 if ! test -x $DEBUGFS_EXE; then
2 echo "$test_name: $test_description: skipped (no debugfs)"
7 TEST_DATA="$test_name.tmp"
9 dd 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
12 write /dev/null testfile
18 insert_node --after 15 15 115
19 insert_node --after 30 15 130
20 insert_node --after 45 15 145
27 replace_node 15 30 200
29 set_inode_field testfile i_size 61400
30 set_inode_field testfile i_blocks 154
31 set_bg 0 free_blocks_count 156
32 set_bg 0 bg_checksum calc
33 set_super_value free_blocks_count 156
41 unset E2FSCK_TIME TEST_DATA