Whamcloud - gitweb
lib/ext2fs: fix a printf format specifier in file_test()
[tools/e2fsprogs.git] / tests / f_uninit_last_uninit / script
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
8 touch $TMPFILE
9 $MKE2FS -N 32 -F -o Linux -O uninit_bg -b 1024 $TMPFILE 10000 > /dev/null 2>&1 
10 $DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1
11 set_current_time 20070410210000
12 set_super_value lastcheck 0
13 set_super_value hash_seed null
14 set_super_value mkfs_time 0
15 set_bg 1 flags 0x7
16 set_bg 1 checksum calc
17 q
18 EOF
19
20 E2FSCK_TIME=200704102100
21 export E2FSCK_TIME
22
23 . $cmd_dir/run_e2fsck
24
25 unset E2FSCK_TIME