xfs: test that we don't leak inodes and dquots during failed cow recovery

Add a couple of tests to check that we don't leak inodes or dquots
if CoW recovery fails and therefore the mount fails.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Darrick J. Wong
2017-11-09 16:44:40 -08:00
committed by Eryu Guan
parent c0c26cecab
commit a9df2f23df
8 changed files with 332 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
QA output created by 434
Format and mount
Create a many-block file
Inject error
Defrag the file
FS should be shut down, touch will fail
touch: cannot touch 'SCRATCH_MNT/badfs': Input/output error
Remount to replay log
See if we leak