@@ -109,6 +109,7 @@ _filter_fiemap()
_filter_fiemap_flags()
{
+ block_size=$1
$AWK_PROG '
$3 ~ /hole/ {
print $1, $2, $3;
@@ -135,23 +136,24 @@ _filter_fiemap_flags()
}
print $1, $2, flag_str
}' |
- _coalesce_extents
+ _coalesce_extents $block_size
}
-# Filters fiemap output to only print the
+# Filters fiemap output to only print the
# file offset column and whether or not
# it is an extent or a hole
_filter_hole_fiemap()
{
+ block_size=$1
$AWK_PROG '
$3 ~ /hole/ {
- print $1, $2, $3;
+ print $1, $2, $3;
next;
- }
+ }
$5 ~ /0x[[:xdigit:]]+/ {
print $1, $2, "extent";
}' |
- _coalesce_extents
+ _coalesce_extents $block_size
}
# 10000 Unwritten preallocated extent