Looks ok to me.
Can you test if it works by manually corrupting some B+Tree using xfs_db
(or in fact, you can write a small program which does so. You can just
write a program which reads the location on the disk directly, modify
the 512 size sector corresponding to these with some selected fields and
write them out.)
Try the code when major B+Trees are corrupted --> AGI /BCNTi/BSIZE tree.
-shailendra
Barry Naujok wrote:
Ping?
-----Original Message-----
From: xfs-bounce@xxxxxxxxxxx [mailto:xfs-bounce@xxxxxxxxxxx]
On Behalf Of Barry Naujok
Sent: Thursday, 22 February 2007 12:33 PM
To: xfs@xxxxxxxxxxx
Cc: xfs-dev@xxxxxxx
Subject: [PATCH] xfs_repair doesn't detect corrupt btree
roots in nodes
The attached patch detect invalid btree root field (numrecs =
0, levels >
permissable value).
The patch also does some cleanup with the level and numrecs
usage for the
process_btinode function.
|