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