1 if ! test -x $DEBUGFS_EXE; then 2 echo "$test_name: $test_description: skipped (no debugfs)" 3 return 0 4 fi 5 6 SKIP_GUNZIP="true" 7 TEST_DATA="$test_name.tmp" 8 9 dd if=$TEST_BITS of=$TEST_DATA bs=63k count=1 conv=sync > /dev/null 2>&1 10 11 touch $TMPFILE 12 $MKE2FS -F -O resize_inode $TMPFILE 10240 > /dev/null 2>&1 13 $DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1 14 freeb 4 4 15 freeb 8195 4 16 write $TEST_DATA debugfs 17 set_current_time 20050411000000 18 set_inode_field debugfs mtime 20050411000000 19 q 20 EOF 21 22 E2FSCK_TIME=1113200000 23 export E2FSCK_TIME 24 25 . $cmd_dir/run_e2fsck 26 27 rm -f $TEST_DATA 28 29 unset E2FSCK_TIME TEST_DATA 30