Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id C87E17CA0 for ; Wed, 11 May 2016 10:06:08 -0500 (CDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay3.corp.sgi.com (Postfix) with ESMTP id 19B05AC002 for ; Wed, 11 May 2016 08:06:05 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id DW1dLwun34zHjArl (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 11 May 2016 08:06:03 -0700 (PDT) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B1115154E3 for ; Wed, 11 May 2016 15:06:02 +0000 (UTC) From: Zorro Lang Subject: [PATCH] xfs/133 134: filter redundant projid 0 quota report Date: Wed, 11 May 2016 23:05:56 +0800 Message-Id: <1462979156-7648-1-git-send-email-zlang@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Cc: Zorro Lang , eguan@redhat.com After GETNEXTQUOTA ioctl be supported, xfs_quota -c "report" always outputs one more quota info about default quota (as project ID 0). For fix this problem, xfsprogs has merged commit 3d607a1. Now xfstests face this same problem from this issue. xfs/133 and xfs/134 can't match their golden output, due to this one more line quota report output. So this patch filter this redundant quota info. Signed-off-by: Zorro Lang Signed-off-by: Eryu Guan --- Hi, We found this problem when: http://thread.gmane.org/gmane.comp.file-systems.fstests/1852/focus=1968 But we didn't make a suitable decision about how to deal with it. Then Eryu hit this problem again and wrote a patch for xfstests: http://oss.sgi.com/archives/xfs/2016-04/msg00002.html This pushed us decide to fix this problem. Now xfsprogs commit 3d607a1 has been merged to resolve this problem. But after that xfstests still face one more line quota report problem, so I modify some code of Eryu's old patch, and send this new patch for fix that. Thanks, Zorro tests/xfs/133 | 3 ++- tests/xfs/134 | 27 +++++++++++++++++---------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/tests/xfs/133 b/tests/xfs/133 index 82c38b1..ebf008b 100755 --- a/tests/xfs/133 +++ b/tests/xfs/133 @@ -67,6 +67,7 @@ EOF cat >$tmp.projid <$tmp.projects <$tmp.projid <