From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVMQd-0001uc-4h for qemu-devel@nongnu.org; Mon, 27 Jul 2009 05:23:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVMQX-0001n7-I6 for qemu-devel@nongnu.org; Mon, 27 Jul 2009 05:23:30 -0400 Received: from [199.232.76.173] (port=33447 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVMQX-0001ml-Bz for qemu-devel@nongnu.org; Mon, 27 Jul 2009 05:23:25 -0400 Received: from mail2.shareable.org ([80.68.89.115]:44422) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVMQX-000442-06 for qemu-devel@nongnu.org; Mon, 27 Jul 2009 05:23:25 -0400 Date: Mon, 27 Jul 2009 10:23:19 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] [PATCH] Add new block driver for the VDI format (use aio) Message-ID: <20090727092319.GA7967@shareable.org> References: <4A6888AC.3050509@mail.berlios.de> <1248380985-7362-1-git-send-email-weil@mail.berlios.de> <4A697C7E.80400@redhat.com> <4A69DF48.7000109@mail.berlios.de> <4A6D5EA2.2080706@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A6D5EA2.2080706@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: QEMU Developers , Christoph Hellwig Kevin Wolf wrote: > Though I guess that for static images typically not only metadata is > preallocated, but zeros are written for the whole disk content? Maybe we > could implement a three-way flag like preallocate=[no,metadata,data] and > let qemu-img handle the data part (writing zeros is the same for all > formats and would even work with raw). Note that you can also preallocate space with posix_fallocate(), which fills the file with zeros but (sometimes) doesn't take as long as writing zeros. Apparently it is almost essential when writing large files in small pieces on Windows, and on Linux it is supported by the ext4 filesystem, but I haven't checked either claim. -- Jamie