xfs: map multiple bmbt records to a single rmapbt record

Make sure that we can handle multiple bmbt records mapping to a
single rmapbt record.  This can happen if you fallocate more than
2^21 contiguous blocks to a file.

(Also add some helpers that can create huge devices with some
dm-zero and dm-snapshot fakery.)

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-26 20:28:51 -07:00
committed by Eryu Guan
parent 12c5657cfa
commit ffad9122b6
4 changed files with 193 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
QA output created by 310
Figure out block size
Format huge device
Create the original file blocks
Check extent count
Check bmap count
Check rmap count
Check and fake-repair huge filesystem
Real repair huge filesystem
Check bmap count again
Check rmap count again
Check and fake-repair huge filesystem again
Done