btrfs-progs: fix max mirror number error for chunk-recover
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 12 Jun 2014 02:25:00 +0000 (10:25 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 12:40:11 +0000 (14:40 +0200)
commit2da5099c6930fbd179a5cd8a72dc0688e07826de
tree00f617087599d643cd053e1819dd74a759a41364
parent41b617ed73e0f12bfe13ca641861f133ab8d310f
btrfs-progs: fix max mirror number error for chunk-recover

When run chunk-recover on a health btrfs(data profile raid0, with
plenty of data), the program has a chance to abort on the number
of mirrors of an extent.

According to the kernel code, the max mirror number of an extent
is 3 not 2:
ctree.h:  BTRFS_MAX_MIRRORS 3
chunk-recover.c : BTRFS_NUM_MIRRORS 2
just change BTRFS_NUM_MIRRORS to 3, and everything goes well.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
chunk-recover.c