From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WD7Jv-0000LT-Hd for qemu-devel@nongnu.org; Tue, 11 Feb 2014 01:59:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WD7Jp-0000hW-EH for qemu-devel@nongnu.org; Tue, 11 Feb 2014 01:59:51 -0500 Received: from [222.73.24.84] (port=31842 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WD7Jp-0000dz-1l for qemu-devel@nongnu.org; Tue, 11 Feb 2014 01:59:45 -0500 From: Hu Tao Date: Tue, 11 Feb 2014 14:57:22 +0800 Message-Id: Subject: [Qemu-devel] [PATCH v5 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: Kevin Wolf , Fam Zheng , Stefan Hajnoczi , Peter Lieven , Your Name From: Your Name 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. v5: - fix wrong calculation of qcow2 metadata size in v4 - remove raw_preallocate2() - better error out path in raw_create() - fix coding style 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 +++++++++++++++++++++------ qapi-schema.json | 12 ++++++++ 3 files changed, 128 insertions(+), 20 deletions(-) -- 1.8.0