From 2da5099c6930fbd179a5cd8a72dc0688e07826de Mon Sep 17 00:00:00 2001 From: Gui Hecheng Date: Thu, 12 Jun 2014 10:25:00 +0800 Subject: 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 Signed-off-by: David Sterba --- chunk-recover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chunk-recover.c') diff --git a/chunk-recover.c b/chunk-recover.c index 2d8dd11..8bc5bc3 100644 --- a/chunk-recover.c +++ b/chunk-recover.c @@ -42,7 +42,7 @@ #include "btrfsck.h" #include "commands.h" -#define BTRFS_NUM_MIRRORS 2 +#define BTRFS_NUM_MIRRORS 3 struct recover_control { int verbose; -- cgit v1.2.1