Josef Bacik fb7669b5a0 Btrfs: don't BUG_ON() in btrfs_num_copies
A user sent me a btrfs-image that was panicing because of some corruption.  This
is because we pass in a bogus value to btrfs_num_copies, and it panics.  Instead
just return 1.  We only call btrfs_num_copies to see if there are other copies
to try and read for things, so if we just return 1 it will make the callers exit
out with an appropriate error value.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
2013-05-06 15:55:04 -04:00
..
2013-04-09 14:08:16 -04:00
2013-03-11 22:05:56 +01:00
2013-03-12 18:55:21 -07:00
2013-04-05 17:55:13 +01:00
2013-03-12 18:55:21 -07:00
2013-04-10 10:26:49 -07:00
2013-03-26 16:18:27 -04:00
2013-03-28 15:52:14 -07:00
2013-03-12 18:55:21 -07:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-03-26 18:25:57 -04:00
2013-02-22 23:31:31 -05:00
2013-02-28 13:21:44 -08:00
2013-02-22 23:31:31 -05:00
2013-02-22 23:31:31 -05:00
2013-03-12 08:29:17 -07:00
2013-02-22 23:31:31 -05:00
2013-02-26 02:46:08 -05:00
2013-02-22 23:31:31 -05:00