]> www.infradead.org Git - users/hch/xfsprogs.git/commit
repair: move rt file block allocation to fill_rtino xfs-rt-cleanups
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Jul 2024 13:22:29 +0000 (15:22 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 18 Jul 2024 13:22:49 +0000 (15:22 +0200)
commitcbd30099dcdab7445e3aa90abde0cc26803dc784
tree379483a286e3efa46e4e6d2d76e1806a9e569b8f
parent9c82e27a44b089e89cfd3b463c97d153eb0a9903
repair: move rt file block allocation to fill_rtino

Move the block allocation to fill_rtino to be next to writing to the
files.  That also makes it clear that there is no need to zero the
blocks as we are writing data to all of them.  If repair is interrupted
before finishing to write the blocks it will detect a mismatch on the
next run and regenerate the bitmaps anyway, and a random pattern in
the remaining blocks isn't any worse than zeros.

What really should happen is to write the data to a new file first and
link it in when done, but that's a totally separate project.

Signed-off-by: Christoph Hellwig <hch@lst.de>
repair/phase6.c
repair/rt.c