Debian Codegraph @

tests/f_extent_oobounds/script

raw
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 TEST_DATA="$test_name.tmp"
8
9 dd if=/dev/zero of=$TMPFILE bs=1k count=256 > /dev/null 2>&1
10 $MKE2FS -Ft ext4 -o Linux $TMPFILE > /dev/null 2>&1
11 $DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1
12 write /dev/null testfile
13 setb 100 15
14 setb 130 30
15 setb 200 30
16 extent_open testfile
17 insert_node 0 15 100
18 insert_node --after 15 15 115
19 insert_node --after 30 15 130
20 insert_node --after 45 15 145
21 split
22 down
23 split
24 root
25 down
26 next
27 replace_node 15 30 200
28 extent_close
29 set_inode_field testfile i_size 61400
30 set_inode_field testfile i_blocks 154
31 set_bg 0 free_blocks_count 156
32 set_bg 0 bg_checksum calc
33 set_super_value free_blocks_count 156
34 q
35 EOF
36
37 . $cmd_dir/run_e2fsck
38
39 rm -f $TEST_DATA
40
41 unset E2FSCK_TIME TEST_DATA