From: Jan Kara Date: Mon, 16 Nov 2015 21:41:44 +0000 (+1100) Subject: _filter_fiemap: Avoid awk interval regexps X-Git-Tag: v2022.05.01~2749 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=ffe304656c05c36fe32e69d7d1c84eaad62eb5cb _filter_fiemap: Avoid awk interval regexps Older versions of awk do not accept interval regexps by default. Avoid them in _filter_fiemap to keep better compatibility since it's pretty trivial. Signed-off-by: Jan Kara Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/common/punch b/common/punch index e8770ab8..be193d67 100644 --- a/common/punch +++ b/common/punch @@ -208,7 +208,7 @@ _filter_fiemap() print $1, $2, $3; next; } - $5 ~ /0x[[:xdigit:]]*8[[:xdigit:]]{2}/ { + $5 ~ /0x[[:xdigit:]]*8[[:xdigit:]][[:xdigit:]]/ { print $1, $2, "unwritten"; next; }