From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPRSd-0004Ie-68 for qemu-devel@nongnu.org; Mon, 17 Mar 2014 02:55:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPRSX-0004n1-7E for qemu-devel@nongnu.org; Mon, 17 Mar 2014 02:55:47 -0400 Received: from [222.73.24.84] (port=10053 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPRSW-0004kg-RJ for qemu-devel@nongnu.org; Mon, 17 Mar 2014 02:55:41 -0400 From: Hu Tao Date: Mon, 17 Mar 2014 14:53:34 +0800 Message-Id: Subject: [Qemu-devel] [PATCH v7 for 2.0 0/4] qemu-img: add preallocation=full List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi 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. v7: - fix qemu-iotests fail case 082. 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 +++++++ tests/qemu-iotests/082.out | 54 +++++++++++++-------------- 5 files changed, 159 insertions(+), 49 deletions(-) -- 1.8.5.2.229.g4448466