Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KETOX-0004KV-Vv for mharc-grub-devel@gnu.org; Thu, 03 Jul 2008 14:19:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KETOW-0004Hn-LK for grub-devel@gnu.org; Thu, 03 Jul 2008 14:19:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KETOW-0004Gb-7P for grub-devel@gnu.org; Thu, 03 Jul 2008 14:19:00 -0400 Received: from [199.232.76.173] (port=42430 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KETOV-0004GF-QE for grub-devel@gnu.org; Thu, 03 Jul 2008 14:18:59 -0400 Received: from smtp-vbr2.xs4all.nl ([194.109.24.22]:3090) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KETOR-0003AE-3q; Thu, 03 Jul 2008 14:18:55 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id m63IIrVL069523; Thu, 3 Jul 2008 20:18:54 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: Pavel Roskin References: <20080703001716.13881.1754.stgit@dv.roinet.com> Mail-Copies-To: mgerards@xs4all.nl Date: Thu, 03 Jul 2008 20:27:15 +0200 In-Reply-To: <20080703001716.13881.1754.stgit@dv.roinet.com> (Pavel Roskin's message of "Wed, 02 Jul 2008 20:17:16 -0400") Message-ID: <87lk0i6cxo.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Cc: grub-devel@gnu.org Subject: Re: [PATCH] Enable writing to ATA devices, fix several bugs 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: Thu, 03 Jul 2008 18:19:01 -0000 Pavel Roskin writes: > We have save_env now, so we can use the write capability. This also > fixes the last compiler warning in GRUB. Great! > Sorry, Marco, please ignore the previous message, as it didn't get to > the list. The more patches I get, the better ;-) > ChangeLog: > > * disk/ata.c (grub_ata_pio_write): Check status before writing, > like we do in grub_ata_pio_read(). > > (grub_ata_readwrite): Always write individual sectors. Fix the > sector count for the remainder. Why? > (grub_ata_write): Enable writing to ATA devices. Correctly > report error for ATAPI devices. Great! Did you test this? If you can fix Roberts comment, it would be great! Can you commit it afterwards? -- Marco