From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVijh-0001Dc-Rx for qemu-devel@nongnu.org; Tue, 28 Jul 2009 05:12:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVijc-0001C7-5g for qemu-devel@nongnu.org; Tue, 28 Jul 2009 05:12:40 -0400 Received: from [199.232.76.173] (port=59378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVijb-0001C3-Jh for qemu-devel@nongnu.org; Tue, 28 Jul 2009 05:12:35 -0400 Received: from mx2.redhat.com ([66.187.237.31]:50840) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVijb-0001bD-0v for qemu-devel@nongnu.org; Tue, 28 Jul 2009 05:12:35 -0400 Message-ID: <4A6EC0B5.7020100@redhat.com> Date: Tue, 28 Jul 2009 11:11:17 +0200 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Add new block driver for the VDI format (use aio) 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> <20090727092319.GA7967@shareable.org> <20090728063739.GA2603@amit-x200.redhat.com> <20090728083452.GA21321@shareable.org> <20090728085642.GD26495@redhat.com> <20090728090300.GB21321@shareable.org> In-Reply-To: <20090728090300.GB21321@shareable.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: Amit Shah , QEMU Developers , Christoph Hellwig Jamie Lokier schrieb: > Daniel P. Berrange wrote: >>> By the way, why is fallocate() support being added to libvirt to >>> improve disk image creation, instead of to qemu-img? >> libvirt has to work with more than just QEMU. Thus it has a built in >> support for creating raw files, and this is where we added fallocate >> support. It also has ability to call out to hypervisor specific tools >> for creating non-raw formats. We support qemu-img, and qcow-create (the >> latter from Xen) > > Ok. It sounds like fallocate() support would be useful for qemu-img > too (even if libvirt is used to manage it, if it didn't produce it). I agree, fallocate seems to be the right way to implement my suggestion of a generic preallocate option in qemu-img. It's on my list, so I'm going to work on it when I come back from vacation in two weeks. Kevin