From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKUMN-0006pX-Mk for qemu-devel@nongnu.org; Mon, 03 Mar 2014 10:01:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKUMF-0004PC-3N for qemu-devel@nongnu.org; Mon, 03 Mar 2014 10:00:51 -0500 Received: from mail-ee0-x22a.google.com ([2a00:1450:4013:c00::22a]:41957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKUME-0004P0-SB for qemu-devel@nongnu.org; Mon, 03 Mar 2014 10:00:43 -0500 Received: by mail-ee0-f42.google.com with SMTP id d17so4184721eek.1 for ; Mon, 03 Mar 2014 07:00:41 -0800 (PST) Date: Mon, 3 Mar 2014 16:00:37 +0100 From: Stefan Hajnoczi Message-ID: <20140303150037.GH21055@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v6 0/4] qemu-img: add preallocation=full List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hu Tao Cc: Kevin Wolf , Peter Lieven , Fam Zheng , qemu-devel@nongnu.org, Stefan Hajnoczi On Fri, Feb 28, 2014 at 10:29:29AM +0800, Hu Tao wrote: > This series implements full image preallocation to create a non-sparse image > file at creation time, both for raw and qcow2 format. The purpose is to avoid > performance deterioration of the guest cause by sparse image. > > v6: > - add `Since 2.0' to PreallocMode > - apply total_size change to raw-win32.c as well > > Hu Tao (4): > qapi: introduce PreallocMode and a new PreallocMode full. > raw, qcow2: don't convert file size to sector size > raw-posix: Add full image preallocation option > qcow2: Add full image preallocation option > > block/qcow2.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++------- > block/raw-posix.c | 45 +++++++++++++++++++++------ > block/raw-win32.c | 4 +-- > qapi-schema.json | 14 +++++++++ > 4 files changed, 132 insertions(+), 22 deletions(-) Acked-by: Stefan Hajnoczi