From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKnuy-0006rA-4J for qemu-devel@nongnu.org; Fri, 22 Aug 2014 08:26:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKnut-0000VL-GQ for qemu-devel@nongnu.org; Fri, 22 Aug 2014 08:26:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKnut-0000VE-8q for qemu-devel@nongnu.org; Fri, 22 Aug 2014 08:26:03 -0400 Date: Fri, 22 Aug 2014 13:25:56 +0100 From: "Richard W.M. Jones" Message-ID: <20140822122556.GJ14001@redhat.com> References: <20140728084846.GH31917@G08FNSTD100614.fnst.cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140728084846.GH31917@G08FNSTD100614.fnst.cn.fujitsu.com> Subject: Re: [Qemu-devel] [PATCH v12 0/6] qcow2, raw: add preallocation=full and preallocation=falloc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hu Tao Cc: Kevin Wolf , Yasunori Goto , qemu-devel@nongnu.org, Stefan Hajnoczi , Max Reitz On Mon, Jul 28, 2014 at 04:48:46PM +0800, Hu Tao wrote: > ping... > > All the 6 patches have reviewed-by now. > > On Fri, Jul 11, 2014 at 02:09:57PM +0800, Hu Tao wrote: > > This series adds two preallocation mode to qcow2 and raw: > > > > Option preallocation=full preallocates disk space for image by writing > > zeros to disk, this ensures disk space in any cases. > > > > Option preallocation=falloc preallocates disk space by calling > > posix_fallocate(). This is faster than preallocation=full. Sorry if this was discussed before, but why would anyone use preallocation=full if preallocation=falloc was possible? Shouldn't preallocation=full simply use posix_fallocate if it's available, and fall back to writing zeroes if not? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html