xfs: recover copy-on-write leftover

Test recovery of CoW leftovers in xfs_repair.

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-05-25 22:57:23 -07:00
committed by Eryu Guan
parent 478f75b0d0
commit b1e1b5fc8e
5 changed files with 387 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
QA output created by 307
Format
We need AG1 to have a single free extent
Find our extent and old counter values
Remove the extent from the freesp btrees
Add the extent to the refcount btree
Look for leftover warning in xfs_check
leftover CoW extent (NR/NR) len NR
Look for leftover warning in xfs_repair
leftover CoW extent (NR/NR) len NR
Fix filesystem
Look for no more leftover warning in xfs_check
Look for no more leftover warning in xfs_repair