Received: from eggs.gnu.org ([2001:4830:134:3::10]:55500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WheMJ-0002dN-Qr for qemu-devel@nongnu.org; Tue, 06 May 2014 08:20:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WheMD-0006SH-Mo for qemu-devel@nongnu.org; Tue, 06 May 2014 08:20:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WheMD-0006SD-Fh for qemu-devel@nongnu.org; Tue, 06 May 2014 08:20:25 -0400 Date: Tue, 6 May 2014 14:19:48 +0200 From: Stefan Hajnoczi Message-ID: <20140506121948.GG15810@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 v8 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 , qemu-devel@nongnu.org On Wed, Apr 09, 2014 at 03:12:33PM +0800, Hu Tao wrote: > The purpose of this series is to use posix_fallocate() when creating > img file to ensure there are disk space for it which is way fast than > acturally writing to disk. But this only works in file system level. > For cases like thin provisioning, an option full preallocation is > added to write zeros to storage to ensure disk space. > > 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 | 95 ++++++++++++++++++++++++++++++++++++++++------ > block/raw-posix.c | 63 ++++++++++++++++++++++++++---- > block/raw-win32.c | 4 +- > qapi-schema.json | 14 +++++++ > tests/qemu-iotests/082.out | 54 +++++++++++++------------- > 5 files changed, 182 insertions(+), 48 deletions(-) Kevin: You had review comments on the last revision. Are you happy with v8? Stefan