Received: from eggs.gnu.org ([2001:4830:134:3::10]:59499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBfkR-0004mZ-Hk for qemu-devel@nongnu.org; Thu, 26 Apr 2018 08:11:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBfkO-0000aX-BP for qemu-devel@nongnu.org; Thu, 26 Apr 2018 08:11:39 -0400 From: Alberto Garcia In-Reply-To: <20180426025129.621969-6-eblake@redhat.com> References: <20180426025129.621969-1-eblake@redhat.com> <20180426025129.621969-6-eblake@redhat.com> Date: Thu, 26 Apr 2018 14:10:58 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v6 5/6] iotests: Add new test 214 for max compressed cluster offset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-block@nongnu.org On Thu 26 Apr 2018 04:51:28 AM CEST, Eric Blake wrote: > If you have a capable file system (tmpfs is good, ext4 not so much; > run ./check with TEST_DIR pointing to a good location so as not > to skip the test), it's actually possible to create a qcow2 file > that expands to a sparse 512T image with just over 38M of content. > The test is not the world's fastest (qemu crawling through 256M > bits of refcount table to find the next cluster to allocate takes > several seconds, as does qemu-img check reporting millions of > leaked clusters); but it DOES catch the problem that the previous > patch just fixed where writing a compressed cluster to a full > image ended up overwriting the wrong cluster. > > Suggested-by: Max Reitz > Signed-off-by: Eric Blake Nice test :-) Reviewed-by: Alberto Garcia Berto