From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from aserp1040.oracle.com ([141.146.126.69]:40016 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752753AbcJNSNE (ORCPT ); Fri, 14 Oct 2016 14:13:04 -0400 Subject: [PATCH 1/3] xfs: set the refcount btree cowflag when setting up cow From: "Darrick J. Wong" Date: Fri, 14 Oct 2016 11:12:56 -0700 Message-ID: <147646877615.19627.12845265308407861169.stgit@birch.djwong.org> In-Reply-To: <147646876990.19627.5046740854955682441.stgit@birch.djwong.org> References: <147646876990.19627.5046740854955682441.stgit@birch.djwong.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: fstests-owner@vger.kernel.org To: david@fromorbit.com, eguan@redhat.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org List-ID: When we're setting up a fake cow extent in the refcountbt to test cleanup of fake cow extents, set the cowflag in the record field to reflect our new disk format of storing the staging extents in the right side of the tree. Signed-off-by: Darrick J. Wong --- tests/xfs/307 | 1 + tests/xfs/308 | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/xfs/307 b/tests/xfs/307 index 869f5cc..2a99459 100755 --- a/tests/xfs/307 +++ b/tests/xfs/307 @@ -145,6 +145,7 @@ _set_agf_data numrecs 1 -c 'addr refcntroot' _set_agf_data "recs[1].startblock" $debris_bno -c 'addr refcntroot' _set_agf_data "recs[1].blockcount" $debris_len -c 'addr refcntroot' _set_agf_data "recs[1].refcount" 1 -c 'addr refcntroot' +_set_agf_data "recs[1].cowflag" 1 -c 'addr refcntroot' if [ $is_rmap -gt 0 ]; then rmap_nr=$((rmap_nr + 1)) diff --git a/tests/xfs/308 b/tests/xfs/308 index 8f8f380..5bfa432 100755 --- a/tests/xfs/308 +++ b/tests/xfs/308 @@ -145,6 +145,7 @@ _set_agf_data numrecs 1 -c 'addr refcntroot' _set_agf_data "recs[1].startblock" $debris_bno -c 'addr refcntroot' _set_agf_data "recs[1].blockcount" $debris_len -c 'addr refcntroot' _set_agf_data "recs[1].refcount" 1 -c 'addr refcntroot' +_set_agf_data "recs[1].cowflag" 1 -c 'addr refcntroot' if [ $is_rmap -gt 0 ]; then rmap_nr=$((rmap_nr + 1))