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 <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Darrick J. Wong
2016-10-17 15:09:21 -07:00
committed by Eryu Guan
parent 54659ecdb5
commit bf5a5da572
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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))
+1
View File
@@ -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))