_coalesce_extents
}
+_filter_fiemap_flags()
+{
+ $AWK_PROG '
+ $3 ~ /hole/ {
+ print $1, $2, $3;
+ next;
+ }
+ $5 ~ /0x[[:xdigit:]]*8[[:xdigit:]][[:xdigit:]]/ {
+ print $1, $2, "unwritten";
+ next;
+ }
+ $5 ~ /0x[[:xdigit:]]+/ {
+ print $1, $2, $5;
+ }' |
+ _coalesce_extents
+}
+
# Filters fiemap output to only print the
# file offset column and whether or not
# it is an extent or a hole
if [ "$remove_testfile" ]; then
rm -f $testfile
fi
- block_size=`get_block_size $TEST_DIR`
+ block_size=`_get_block_size $TEST_DIR`
$XFS_IO_PROG -f -c "truncate $block_size" \
-c "pwrite 0 $block_size" $sync_cmd \
-c "$zero_cmd 128 128" \