Re: [PATCH 19/26] Btrfs: add code to scrub to copy read data to another disk

2012-11-07 Thread Stefan Behrens
On Wed, 07 Nov 2012 09:30:59 +0900, Tsutomu Itoh wrote: > (2012/11/07 1:38), Stefan Behrens wrote: >> +static int scrub_add_page_to_wr_bio(struct scrub_ctx *sctx, >> +struct scrub_page *spage) >> +{ >> +struct scrub_wr_ctx *wr_ctx = &sctx->wr_ctx; >> +struct

Re: [PATCH 19/26] Btrfs: add code to scrub to copy read data to another disk

2012-11-06 Thread Tsutomu Itoh
(2012/11/07 1:38), Stefan Behrens wrote: > The device replace procedure makes use of the scrub code. The scrub > code is the most efficient code to read the allocated data of a disk, > i.e. it reads sequentially in order to avoid disk head movements, it > skips unallocated blocks, it uses read ahea

[PATCH 19/26] Btrfs: add code to scrub to copy read data to another disk

2012-11-06 Thread Stefan Behrens
The device replace procedure makes use of the scrub code. The scrub code is the most efficient code to read the allocated data of a disk, i.e. it reads sequentially in order to avoid disk head movements, it skips unallocated blocks, it uses read ahead mechanisms, and it contains all the code to det