From patchwork Fri Jul 15 03:52:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allison Henderson X-Patchwork-Id: 104752 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DBBDFB6F68 for ; Fri, 15 Jul 2011 13:49:43 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755209Ab1GODtk (ORCPT ); Thu, 14 Jul 2011 23:49:40 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:50182 "EHLO e8.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755047Ab1GODtj (ORCPT ); Thu, 14 Jul 2011 23:49:39 -0400 Received: from d01relay01.pok.ibm.com (d01relay01.pok.ibm.com [9.56.227.233]) by e8.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p6F3bH0t014356; Thu, 14 Jul 2011 23:37:17 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6F3ncIJ141174; Thu, 14 Jul 2011 23:49:38 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6F3ncuH006868; Thu, 14 Jul 2011 23:49:38 -0400 Received: from elm3c80.beaverton.ibm.com (elm3c80.beaverton.ibm.com [9.47.69.80]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p6F3nbcJ006861; Thu, 14 Jul 2011 23:49:37 -0400 From: Allison Henderson To: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com Cc: Allison Henderson Subject: [PATCH 1/1] XFS TESTS: Correct extent flag parsing for punch hole tests Date: Thu, 14 Jul 2011 20:52:13 -0700 Message-Id: <1310701933-18988-1-git-send-email-achender@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 Reviewed-by: Alex Elder --- :100644 100755 0083963... 0083963... M 255 :100644 100644 a48b7ae... 7337298... M common.punch common.punch | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/255 b/255 old mode 100644 new mode 100755 diff --git a/common.punch b/common.punch index a48b7ae..7337298 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