* [PATCH] common/punch: handle bmap output for unaligned extents
@ 2015-12-04 22:48 Eric Sandeen
0 siblings, 0 replies; only message in thread
From: Eric Sandeen @ 2015-12-04 22:48 UTC (permalink / raw)
To: fstests
xfs/242 fails if the mapping flags show unaligned extents;
fix up the regexp to allow this, we really only care about
the unwritten flag.
Signed-off-by: eric Sandeen <sandeen@redhat.com>
---
diff --git a/common/punch b/common/punch
index be193d6..8e770f7 100644
--- a/common/punch
+++ b/common/punch
@@ -234,6 +234,11 @@ _filter_hole_fiemap()
_coalesce_extents
}
+# 10000 Unwritten preallocated extent
+# 01000 Doesn't begin on stripe unit
+# 00100 Doesn't end on stripe unit
+# 00010 Doesn't begin on stripe width
+# 00001 Doesn't end on stripe width
_filter_bmap()
{
awk '
@@ -241,11 +246,11 @@ _filter_bmap()
print $1, $2, $3;
next;
}
- $7 ~ /10000/ {
+ $7 ~ /1[01][01][01][01]/ {
print $1, $2, "unwritten";
next;
}
- $7 ~ /00000/ {
+ $7 ~ /0[01][01][01][01]/ {
print $1, $2, "data"
}' |
_coalesce_extents
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-04 22:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-04 22:48 [PATCH] common/punch: handle bmap output for unaligned extents Eric Sandeen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.