From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Majed B." Subject: Re: Re-map disk sectors in userspace when rewriting after read errors Date: Tue, 15 Sep 2009 21:14:55 +0300 Message-ID: <70ed7c3e0909151114q7296314du77de369f5e4ea695@mail.gmail.com> References: <70ed7c3e0909150340q4ae91cb1j7eaae473c6d94c9a@mail.gmail.com> <70ed7c3e0909150403s4db60837gfd742d5f6960adf0@mail.gmail.com> <70ed7c3e0909151002y5f4690b1j26d33dc297af7795@mail.gmail.com> <1253037953.7774.131.camel@kiste> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1253037953.7774.131.camel@kiste> Sender: linux-raid-owner@vger.kernel.org To: Matthias Urlichs Cc: linux-raid@vger.kernel.org List-Id: linux-raid.ids Hmm, so I guess I'm luckier since I run RAID5? (or not because I have 2 bad disks? :p) When do you expect to have a working application done, by the way? On Tue, Sep 15, 2009 at 9:05 PM, Matthias Urlichs wrote: > On Tue, 2009-09-15 at 20:02 +0300, Majed B. wrote: >> Out of curiosity, how will you find the sectors/blocks that >> reconstruct a certain bad sector? Is the data spread to the same block >> number on all disks? > > Yes. It's a byte-level operation, actually. > > The only part that's moderately tricky is, on RAID6, to determine which > partition the Q drive is. Fortunately, mdadm already contains (almost) > all the necessary logic. > > -- Majed B.