From patchwork Wed Nov 4 16:31:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 7552131 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 37922BEEA4 for ; Wed, 4 Nov 2015 16:39:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 801C4206B7 for ; Wed, 4 Nov 2015 16:39:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 68107206A3 for ; Wed, 4 Nov 2015 16:39:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965659AbbKDQbw (ORCPT ); Wed, 4 Nov 2015 11:31:52 -0500 Received: from mx2.suse.de ([195.135.220.15]:35733 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965576AbbKDQbv (ORCPT ); Wed, 4 Nov 2015 11:31:51 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1B97CAC76; Wed, 4 Nov 2015 16:31:32 +0000 (UTC) Received: by quack.suse.cz (Postfix, from userid 1000) id CB84B80AC0; Wed, 4 Nov 2015 17:31:48 +0100 (CET) From: Jan Kara To: fstests@vger.kernel.org Cc: linux-ext4@vger.kernel.org, Jan Kara Subject: [PATCH 1/4] _filter_fiemap: Avoid awk interval regexps Date: Wed, 4 Nov 2015 17:31:35 +0100 Message-Id: <1446654698-23577-2-git-send-email-jack@suse.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446654698-23577-1-git-send-email-jack@suse.com> References: <1446654698-23577-1-git-send-email-jack@suse.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- common/punch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/punch b/common/punch index e8770ab834a7..be193d67ee56 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; }