Btrfs-progs: don't assert when we have an invalid mapping
authorJosef Bacik <jbacik@fb.com>
Thu, 25 Sep 2014 20:10:48 +0000 (16:10 -0400)
committerDavid Sterba <dsterba@suse.cz>
Wed, 1 Oct 2014 14:34:45 +0000 (16:34 +0200)
commitf6e4243fa8eb102f8fb564800a2bc87d5c110aa2
treeea72094327c83ed73fdd511d876e6367cf7d8b89
parent3ae0209d94776faaa139fcebfafa22fd7840b9f4
Btrfs-progs: don't assert when we have an invalid mapping

Asserting is no fun, we may be able to recover from this error in certain cases
(like btrfs-image and btrfsck).  Just do what the kernel does and spit out an
error and return that there is only 1 copy.  Thanks,

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