_filter_fiemap: Avoid awk interval regexps
authorJan Kara <jack@suse.com>
Mon, 16 Nov 2015 21:41:44 +0000 (08:41 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 16 Nov 2015 21:41:44 +0000 (08:41 +1100)
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 <jack@suse.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/punch

index e8770ab834a7c80f5b0c4e8a58d0674edad765d4..be193d67ee56e5ad0430a90007b70353001cbaba 100644 (file)
@@ -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;
                }