• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if test -x $DEBUGFS_EXE; then
2
3SKIP_GUNZIP="true"
4TEST_DATA="$test_name.tmp"
5
6dd if=/dev/zero of=$TMPFILE bs=1k count=256 > /dev/null 2>&1
7$MKE2FS -Ft ext4 $TMPFILE > /dev/null 2>&1
8$DEBUGFS -w $TMPFILE << EOF  > /dev/null 2>&1
9write /dev/null testfile
10setb 100 15
11setb 130 30
12setb 200 30
13extent_open testfile
14  insert_node 0 15 100
15  insert_node --after 15 15 115
16  insert_node --after 30 15 130
17  insert_node --after 45 15 145
18  split
19  down
20  split
21  root
22  down
23  next
24  replace_node 15 30 200
25  extent_close
26set_inode_field testfile i_size 61400
27set_inode_field testfile i_blocks 154
28set_bg 0 free_blocks_count 156
29set_bg 0 bg_checksum calc
30set_super_value free_blocks_count 156
31q
32EOF
33
34. $cmd_dir/run_e2fsck
35
36rm -f $TEST_DATA
37
38unset E2FSCK_TIME TEST_DATA
39
40else #if test -x $DEBUGFS_EXE; then
41	echo "$test_name: $test_description: skipped"
42fi
43