Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZDh6-00086O-4O for qemu-devel@nongnu.org; Tue, 11 Mar 2008 19:15:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZDh5-000865-M5 for qemu-devel@nongnu.org; Tue, 11 Mar 2008 19:15:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZDh5-000861-K5 for qemu-devel@nongnu.org; Tue, 11 Mar 2008 19:15:39 -0400 Received: from hall.aurel32.net ([88.191.38.19]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JZDh4-0006Au-OA for qemu-devel@nongnu.org; Tue, 11 Mar 2008 19:15:39 -0400 Received: from volta-wlan.aurel32.net ([2002:52e8:2fb:ffff:21d:e0ff:fe49:1047] helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JZDh3-0002In-F3 for qemu-devel@nongnu.org; Wed, 12 Mar 2008 00:15:37 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1JZDh7-0005vL-B8 for qemu-devel@nongnu.org; Wed, 12 Mar 2008 00:15:41 +0100 Date: Wed, 12 Mar 2008 00:15:41 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] qemu block-qcow.c block-qcow2.c block-vmdk.c bl... Message-ID: <20080311231541.GA22725@volta.aurel32.net> References: <47D6C1B5.2090002@bellard.org> <47D7066B.80109@aurel32.net> <47D70B23.6090805@bellard.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47D70B23.6090805@bellard.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tue, Mar 11, 2008 at 11:43:47PM +0100, Fabrice Bellard wrote: > Aurelien Jarno wrote: > > Fabrice Bellard a écrit : > >> IMHO it would be much simpler to do all the tests in the block format > >> handlers. > >> > > > > Do you mean move all the tests into block-{qcow,qcow2,vmdk}.c ? > > I suggest reverting the patch and writing correct tests in > block-{qcow,qcow2,vmdk}.c. BTW, bs->total_sectors is not a good > indicator of the device size in case of removable devices for example. > I see. I will work on writing a patch asap, probably tomorrow evening. Aurelien -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net