mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Eryu Guan
parent
54659ecdb5
commit
bf5a5da572
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user