btrfs-progs: deal with no extent info
authorJosef Bacik <jbacik@fb.com>
Tue, 13 Jan 2015 20:23:41 +0000 (15:23 -0500)
committerJosef Bacik <jbacik@fb.com>
Mon, 9 Feb 2015 19:53:07 +0000 (14:53 -0500)
commit8ab2d7a9dd3099c9a5fdc5acd354b57e1039d18a
tree7e71c218f7ba87cf351d477335504573f47a0871
parent63d66268f44c58e10f1dc159bf4c19d3067d38f8
btrfs-progs: deal with no extent info

Previously we used to just set FULL_BACKREF if we couldn't lookup an extent info
for an extent.  Now we just bail out if we can't lookup the extent info, which
is less than good since fsck is supposed to fix these very problems.  So instead
figure out the flag we are supposed to use and pass that along instead.  This
patch also provides a test image to test this functionality.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
cmds-check.c
tests/fsck-tests/014-no-extent-info/default_case.img [new file with mode: 0644]