From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7G11-00033L-TZ for qemu-devel@nongnu.org; Wed, 25 Oct 2017 03:22:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7G11-0001wh-4g for qemu-devel@nongnu.org; Wed, 25 Oct 2017 03:22:15 -0400 References: From: Thomas Huth Message-ID: <93ce91e1-d1cf-5781-c995-a2d82f5d515a@redhat.com> Date: Wed, 25 Oct 2017 09:22:04 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc . List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Changlimin , "qemu-devel@nongnu.org" Cc: Qemu-block , Max Reitz On 24.10.2017 05:28, Changlimin wrote: > Hi, > I am glad to see that qcow2 file created with preallocation=full/falloc can be resized. But when I test it, qemu-img crashs. > qemu-img: block/qcow2-refcount.c:530: qcow2_refcount_area: Assertion `!(start_offset % s->cluster_size)' failed. > > These are commands: > qemu-img create -f qcow2 -o preallocation=full full.img 1G > qemu-img resize --preallocation=full full.img +1G Which version of qemu-img are you using? v2.10 or the latest git master branch? Thomas