Btrfs-progs: add a dummy backref if our location is wrong
authorJosef Bacik <jbacik@fb.com>
Fri, 10 Oct 2014 20:57:14 +0000 (16:57 -0400)
committerDavid Sterba <dsterba@suse.cz>
Tue, 14 Oct 2014 08:45:25 +0000 (10:45 +0200)
commitbb561f5485ab5852214e115116507524e45daff8
treec94c180753dd12a9baf665ac835e9178bc4cf8c9
parentb25a40651d15c8ca795ab7a4f1b8150128f09e3c
Btrfs-progs: add a dummy backref if our location is wrong

If our location is bogus in our dir item we were just skipping the thing.
However in this case we want to just delete the dir index, so create a dummy
inode rec using BTRFS_MULTIPLE_OBJECTIDS and just add every backref we find to
the list so we know to straight up delete all of these items.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-check.c