From mboxrd@z Thu Jan 1 00:00:00 1970 From: dong wu Subject: Re: when read error ,where do we rewrite? Date: Fri, 8 Jan 2010 12:54:01 +0800 Message-ID: <6c394cc31001072054v7368cc05kb7005b39d00c1c07@mail.gmail.com> References: <6c394cc31001070441r1287f635q9c58dc836ce488b7@mail.gmail.com> <20100107131855.GA10915@cthulhu.home.robinhill.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <20100107131855.GA10915@cthulhu.home.robinhill.me.uk> Sender: linux-raid-owner@vger.kernel.org To: linux-raid@vger.kernel.org List-Id: linux-raid.ids If it is written to the same block,will it read error again? when read error,the low-level attempts a write and remap the block if the write fails. where does it remap? Is there any spare block in the disk for remap when read or write error occurs? 2010/1/7, Robin Hill : > On Thu Jan 07, 2010 at 08:41:20PM +0800, dong wu wrote: > > > when read error and can rewrite,where do we rewrite? > > It can't be rewrited to the old block. > > It should be rewrite to other place,where can we find the 'other place'? > > In the source code,I don't find the place that should be rewrited to. > > > It's rewritten to the same block - it's up to the low-level device (the > disk) to attempt a write and transparently remap the block if the write > fails. > > Cheers, > Robin > -- > ___ > ( ' } | Robin Hill | > / / ) | Little Jim says .... | > // !! | "He fallen in de water !!" | > >