Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MVoPf-0003mk-1o for mharc-grub-devel@gnu.org; Tue, 28 Jul 2009 11:16:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVoPc-0003lc-E2 for grub-devel@gnu.org; Tue, 28 Jul 2009 11:16:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVoPa-0003jO-Lw for grub-devel@gnu.org; Tue, 28 Jul 2009 11:16:19 -0400 Received: from [199.232.76.173] (port=45381 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVoPa-0003j4-E0 for grub-devel@gnu.org; Tue, 28 Jul 2009 11:16:18 -0400 Received: from mail-px0-f193.google.com ([209.85.216.193]:55864) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVoPa-0007s5-2w for grub-devel@gnu.org; Tue, 28 Jul 2009 11:16:18 -0400 Received: by pxi31 with SMTP id 31so60736pxi.14 for ; Tue, 28 Jul 2009 08:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=YQh4VqzfBH6eIkqYSFZIlETuzaiwPAte7hjBa0SVfkc=; b=ADFLA1Vm7Xx9ovaNDwuraioa0mru8QVmwY8LofafdHp4wpRhPLW3ylQwrDegyqCrLV 327bkopTOa1iupz+TZjqb5xEJli7drgw4uIRSCxcm+5FGB2gr3bsPlxIGnHr2if4hZfi 2AUyXkCWVJY9PKmZmvC+Ok3mGa/KR1maex5o8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=cbfPUyA8NIm5AozK3ciubAiz/c+FktZDwgc0hq/GiMUx31ByLOujHzf4GRdsezlgwa XszINWbAGEfMsCODXtZWID08v3KdkiONwPvKIZKHTP9Bb5mp7Zt1HVLJwmMvfo/5Q/w9 e0w1bJxfngeWsgUc7f0wbNzsmpPJAHb43SrpA= MIME-Version: 1.0 Received: by 10.140.177.15 with SMTP id z15mr3308135rve.3.1248794177074; Tue, 28 Jul 2009 08:16:17 -0700 (PDT) In-Reply-To: References: <1340f8530907191211o53119415nf7510cc1e7a89ee1@mail.gmail.com> <1340f8530907271358g2634fe16w15d4297b1b8f30df@mail.gmail.com> Date: Tue, 28 Jul 2009 23:16:17 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Bug fix for LVM X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 15:16:20 -0000 Hi, Oh, the link should be: http://svn.savannah.gnu.org/viewvc/trunk/grub2/disk/raid5_recover.c?root=grub&r1=2197&r2=2421 On Tue, Jul 28, 2009 at 11:15 PM, Bean wrote: > Hi, > > BTW, I found a regression on r2421 that cause raid5rec to fail: > > http://svn.savannah.gnu.org/viewvc/trunk/grub2/disk/raid6_recover.c?root=grub&r1=2197&r2=2421 > > buf and buf2 are two different variable. > > This new patch include the revert raid5_recover.c to r1828. > > On Tue, Jul 28, 2009 at 9:57 PM, Bean wrote: >> Hi, >> >> Oh, I've found the problem. The abstraction is ok, but now partmap is >> wrong. The original code assumes at most one level of abstraction when >> detecting partmap, and it doesn't work on two level abstraction like >> LVM on RAID. If you add module minicmd, you can use lsmod and see pc >> module is missing. >> >> I also make some improvement to the patch. Now it also detect the raid >> level, and add raid5rec or raid6rec accordingly. >> >> -- >> Bean >> > > > > -- > Bean > -- Bean