1if test -x $DEBUGFS_EXE; then 2 3SKIP_GUNZIP="true" 4TEST_DATA="$test_name.tmp" 5 6echo "/ Murphy Magic. The SeCrEt of the UnIvErSe is 43, NOT 42" > $TEST_DATA 7 8touch $TMPFILE 9$MKE2FS -N 32 -F -o Linux -b 1024 $TMPFILE 100 > /dev/null 2>&1 10$DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1 11set_current_time 20070410210000 12set_super_value lastcheck 0 13set_super_value hash_seed null 14set_super_value mkfs_time 0 15mkdir dir 16mkdir dir2 17mkdir dir3 18mkdir dir4 19cd /dir 20write $TEST_DATA foo 21cd /dir2 22write $TEST_DATA bar 23cd /dir3 24write $TEST_DATA baz 25cd /dir4 26write $TEST_DATA quux 27mkdir /dir/fee 28mkdir /dir2/fie 29mkdir /dir3/foe 30mkdir /dir4/fum 31link /dir/foo /dir2/foo1 32link /dir/foo /dir3/foo2 33link /dir2/bar /dir3/bar1 34link /dir4/quux /dir/quux1 35link /dir4/quux /dir2/quux2 36set_inode_field /dir/foo block[0] 30 37set_inode_field /dir2/bar block[0] 30 38set_inode_field /dir3/baz block[0] 30 39set_inode_field /dir/fee block[0] 34 40set_inode_field /dir2/fie block[0] 34 41set_inode_field /dir3/foe block[0] 34 42q 43EOF 44 45E2FSCK_TIME=200704102100 46export E2FSCK_TIME 47 48. $cmd_dir/run_e2fsck 49 50rm -f $TEST_DATA 51 52unset E2FSCK_TIME TEST_DATA 53 54else #if test -x $DEBUGFS_EXE; then 55 echo "$test_name: $test_description: skipped" 56fi 57