Hi all, This is the jumping-off point for rebuilding parent pointer information and reconstructing directories with parent pointers. The parent pointer feature hasn't been merged yet, so this branch contains only a single patch that refactors the xattr walking code in preparation for that. If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=repair-parent-pointers --- fs/xfs/Makefile | 1 fs/xfs/scrub/attr.c | 114 ++++++----------- fs/xfs/scrub/listxattr.c | 306 ++++++++++++++++++++++++++++++++++++++++++++++ fs/xfs/scrub/listxattr.h | 16 ++ 4 files changed, 364 insertions(+), 73 deletions(-) create mode 100644 fs/xfs/scrub/listxattr.c create mode 100644 fs/xfs/scrub/listxattr.h