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>
_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].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))
if [ $is_rmap -gt 0 ]; then
rmap_nr=$((rmap_nr + 1))
_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].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))
if [ $is_rmap -gt 0 ]; then
rmap_nr=$((rmap_nr + 1))