Home | History | Annotate | Download | only in f_dup_resize
      1 SKIP_GUNZIP="true"
      2 TEST_DATA="test.data"
      3 
      4 dd if=$TEST_BITS of=$TEST_DATA bs=63k count=1 conv=sync > /dev/null 2>&1
      5 
      6 touch $TMPFILE
      7 $MKE2FS -F -O resize_inode $TMPFILE 10240 > /dev/null 2>&1
      8 $DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1
      9 freeb 4 4
     10 freeb 8195 4
     11 write $TEST_DATA debugfs
     12 set_current_time 200504110000
     13 set_inode_field debugfs mtime 200504110000
     14 q
     15 EOF
     16 
     17 E2FSCK_TIME=1113200000
     18 export E2FSCK_TIME
     19 
     20 . $cmd_dir/run_e2fsck
     21 
     22 rm -f $TEST_DATA
     23 
     24 unset E2FSCK_TIME TEST_DATA
     25