xfs: test copy-on-write leftover recovery

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: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Darrick J. Wong
2016-03-23 17:37:29 +11:00
committed by Dave Chinner
parent 5d56a95095
commit 64f56fd899
5 changed files with 387 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
QA output created by 263
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