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=$TEST_BITS of=$TEST_DATA bs=63k count=1 conv=sync > /dev/null 2>&1 10 11touch $TMPFILE 12$MKE2FS -F -O resize_inode $TMPFILE 10240 > /dev/null 2>&1 13$DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1 14freeb 4 4 15freeb 8195 4 16write $TEST_DATA debugfs 17set_current_time 20050411000000 18set_inode_field debugfs mtime 20050411000000 19q 20EOF 21 22E2FSCK_TIME=1113200000 23export E2FSCK_TIME 24 25. $cmd_dir/run_e2fsck 26 27rm -f $TEST_DATA 28 29unset E2FSCK_TIME TEST_DATA 30