From ced9681ea4449de357133d1fd0495e1b06540470 Mon Sep 17 00:00:00 2001 From: Allison Henderson Date: Fri, 15 Jul 2011 03:52:13 +0000 Subject: [PATCH] xfstests: Correct extent flag parsing for punch hole tests The fiemap filters used in the punch hole tests parse the extent flags in the fiemap to determine the extent type. They are currently parsing them as decimal values, but they should be parsing hex values. Signed-off-by: Allison Henderson Signed-off-by: Alex Elder --- common.punch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common.punch b/common.punch index a48b7ae4..73372981 100644 --- a/common.punch +++ b/common.punch @@ -208,11 +208,11 @@ _filter_fiemap() print $1, $2, $3; next; } - $5 ~ /0x[[:digit:]]*8[[:digit:]]{2}/ { + $5 ~ /0x[[:xdigit:]]*8[[:xdigit:]]{2}/ { print $1, $2, "unwritten"; next; } - $5 ~ /0x[[:digit:]]+/ { + $5 ~ /0x[[:xdigit:]]+/ { print $1, $2, "data"; }' | _coalesce_extents @@ -228,7 +228,7 @@ _filter_hole_fiemap() print $1, $2, $3; next; } - $5 ~ /0x[[:digit:]]+/ { + $5 ~ /0x[[:xdigit:]]+/ { print $1, $2, "extent"; }' | _coalesce_extents -- 2.47.3