VxFS fsck should display the inode numbers and directory entry names before removing the directory entries or directory blocks
In order to help the customers to identify the files involved in metadata corruption, the directory entries in a directory block should be printed before they are removed by fsck.
For example, in pass 2, before removing a directory entry, please print the name of the directory and the name of the directory entry first.
pass2 - checking directory linkage
fileset 999 directory 100 block devid/blknum 0/0 offset 40 references free inode
ino 800 remove entry? (ynq)y
- please print the name of directory inode 100 and the corresponding name of inode 800 before before remove this directory entry.
Similar thing for removing the whole directory block, please print the name of the direcotry, the inode numbers and correspondig names before removing the whole directory block.
fileset 999 directory 2574463 block devid/blknum 0/64428072 bad hash count 0 clear block? (ynq)
- before removing the directory block at 0/64428072, plesae print the name of directory 2574463, and dump the inode numbers and corresponding names in that directory block.
Please do the same for other similar fsck operations to clear the directory entry or directory block, e.g.
fileset 999 directory 4 block devid/blknum 0/2840 offset 68 partial entry ino 4 namlen 5 clear block? (ynq)
fileset 999 directory 23570 block devid/blknum 0/11939877 offset 356 parent mismatch ino 141470 parent 23570 remove entry? (ynq)
fileset 999 primary-ilist inode 23570 contains invalid directory blocks clear? (ynq)
Thanks and Regards,