7 if [ "$os" = "Darwin" -o "$os" = "GNU" -o "FreeBSD" ]; then
8 # creates a 44GB filesystem
9 echo "$test_name: $test_description: skipped for $os"
16 features = extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize,^resize_inode,sparse_super2
19 packed_meta_blocks = 1
22 hugefiles_dir = /store
23 hugefiles_name = big-data
26 hugefiles_align = 256M
28 zero_hugefiles = false
33 echo "mke2fs -F -T hugefile test.img 4T" > $OUT
34 MKE2FS_CONFIG=$CONF $MKE2FS -F -T hugefile $TMPFILE 4T >> $OUT 2>&1
37 # check the file system if we get this far, we succeeded...
38 $FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT 2>&1
40 echo Exit status is $status >> $OUT
42 echo 'debugfs -R "extents /store/big-data" test.img' >> $OUT
44 $DEBUGFS -R "extents /store/big-data" $TMPFILE 2>&1 | tr / " " | tr -d - | awk '
46 expected_logical_start = 0;
47 expected_physical_start = 0;
54 if (level == total_levels) {
61 if (logical_end + 1 - logical_start != len) {
62 print logical_end + 1 - logical_start, len;
63 print "UNEXPECTED LENGTH for extent", $0;
65 if (physical_end + 1 - physical_start != len) {
66 print physical_end + 1 - physical_start, len;
67 print "UNEXPECTED LENGTH for extent", $0;
70 if (logical_start != expected_logical_start) {
71 print "UNEXPECTED LOGICAL DISCONTINUITY between extents:";
75 if (physical_start != expected_physical_start &&
76 expected_logical_start != 0) {
77 print "PHYSICAL DISCONTINUITY between extents:";
82 expected_logical_start = logical_end + 1;
83 expected_physical_start = physical_end + 1;
89 print "Last logical block:", expected_logical_start-1;
90 print "Last physical block:", expected_physical_start-1;
100 sed -f $cmd_dir/filter.sed $OUT > $OUT.new
106 if [ "$status" = 0 ] ; then
107 echo "$test_name: $test_description: ok"
110 echo "$test_name: $test_description: failed"
111 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
114 unset IMAGE FSCK_OPT OUT EXP CONF