xfs: set the refcount btree cowflag when setting up cow
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 17 Oct 2016 22:09:21 +0000 (15:09 -0700)
committerEryu Guan <eguan@redhat.com>
Fri, 21 Oct 2016 15:20:14 +0000 (23:20 +0800)
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>
tests/xfs/307
tests/xfs/308

index 869f5ccdfeeea27e708694d718bece7e1e0d3e62..2a99459cfac9fdcc053a2a878066df27d8e4c353 100755 (executable)
@@ -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))
index 8f8f380f5365e0afb69e6974dce8169752200db6..5bfa432ec65aa7d84ece2c7522c413df4f5c6318 100755 (executable)
@@ -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))