From: Darrick J. Wong Date: Mon, 17 Oct 2016 22:09:21 +0000 (-0700) Subject: xfs: set the refcount btree cowflag when setting up cow X-Git-Tag: v2022.05.01~2322 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bf5a5da572472a010223d039d90e79ecb7dc5e3c;p=users%2Fhch%2Fxfstests-dev.git xfs: set the refcount btree cowflag when setting up cow 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 Reviewed-by: Christoph Hellwig Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/307 b/tests/xfs/307 index 869f5ccdf..2a99459cf 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 8f8f380f5..5bfa432ec 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))