summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/punch8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/punch b/common/punch
index 3b8be21a..9e730404 100644
--- a/common/punch
+++ b/common/punch
@@ -188,6 +188,7 @@ _filter_hole_fiemap()
_coalesce_extents
}
+# Column 7 for datadev files and column 5 for rtdev files
# 10000 Unwritten preallocated extent
# 01000 Doesn't begin on stripe unit
# 00100 Doesn't end on stripe unit
@@ -200,6 +201,13 @@ _filter_bmap()
print $1, $2, $3;
next;
}
+ $5 ~ /1[01][01][01][01]/ {
+ print $1, $2, "unwritten";
+ next;
+ }
+ $5 ~ /0[01][01][01][01]/ {
+ print $1, $2, "data"
+ }
$7 ~ /1[01][01][01][01]/ {
print $1, $2, "unwritten";
next;