Btrfs-progs: repair missing dir index
authorJosef Bacik <jbacik@fb.com>
Fri, 10 Oct 2014 20:57:06 +0000 (16:57 -0400)
committerDavid Sterba <dsterba@suse.cz>
Mon, 13 Oct 2014 21:20:44 +0000 (23:20 +0200)
commit6863bcf74fa8bf335d73c04248fc25ac6ada3121
tree2caf11f3ab4682dcc68c34f351f17bd8fa6234bb
parentfeeaa371ed5d0392ef0cccc50c239feec3347f55
Btrfs-progs: repair missing dir index

If we have an inode backref entry then we know enough to add back a missing dir
index.  When messing with the inode backrefs we need to do all of that first
before we process the inode recs themselves as we may clear errors on the inode
recs as we fix the directory indexes.  This adds the framework for fixing
backref errors and fixes missing dir index issues.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-check.c
tests/fsck-tests/004-no-dir-index.img [new file with mode: 0644]