Re: [PATCH 2/3] btrfs-progs: fix max mirror number error for chunk-recover

2014-06-25 Thread Gui Hecheng
On Wed, 2014-06-25 at 00:25 -0500, Eric Sandeen wrote: On 6/25/14, 12:14 AM, Eric Sandeen wrote: On 6/24/14, 9:22 PM, Gui Hecheng wrote: On Tue, 2014-06-24 at 21:17 -0500, Eric Sandeen wrote: On 6/11/14, 9:25 PM, Gui Hecheng wrote: When run chunk-recover on a health btrfs(data profile

Re: [PATCH 2/3] btrfs-progs: fix max mirror number error for chunk-recover

2014-06-24 Thread Eric Sandeen
On 6/11/14, 9:25 PM, Gui Hecheng wrote: 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:

Re: [PATCH 2/3] btrfs-progs: fix max mirror number error for chunk-recover

2014-06-24 Thread Wang Shilong
On 06/25/2014 10:17 AM, Eric Sandeen wrote: On 6/11/14, 9:25 PM, Gui Hecheng wrote: 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

Re: [PATCH 2/3] btrfs-progs: fix max mirror number error for chunk-recover

2014-06-24 Thread Gui Hecheng
On Tue, 2014-06-24 at 21:17 -0500, Eric Sandeen wrote: On 6/11/14, 9:25 PM, Gui Hecheng wrote: 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

Re: [PATCH 2/3] btrfs-progs: fix max mirror number error for chunk-recover

2014-06-24 Thread Eric Sandeen
On 6/24/14, 9:22 PM, Gui Hecheng wrote: On Tue, 2014-06-24 at 21:17 -0500, Eric Sandeen wrote: On 6/11/14, 9:25 PM, Gui Hecheng wrote: 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.

Re: [PATCH 2/3] btrfs-progs: fix max mirror number error for chunk-recover

2014-06-24 Thread Eric Sandeen
On 6/25/14, 12:14 AM, Eric Sandeen wrote: On 6/24/14, 9:22 PM, Gui Hecheng wrote: On Tue, 2014-06-24 at 21:17 -0500, Eric Sandeen wrote: On 6/11/14, 9:25 PM, Gui Hecheng wrote: When run chunk-recover on a health btrfs(data profile raid0, with plenty of data), the program has a chance to

[PATCH 2/3] btrfs-progs: fix max mirror number error for chunk-recover

2014-06-11 Thread Gui Hecheng
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