Received: from eggs.gnu.org ([2001:4830:134:3::10]:50542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAie9-0005Gi-UT for qemu-devel@nongnu.org; Fri, 03 Nov 2017 16:32:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAie6-0006fS-RP for qemu-devel@nongnu.org; Fri, 03 Nov 2017 16:32:57 -0400 From: Alberto Garcia In-Reply-To: References: Date: Fri, 03 Nov 2017 21:32:50 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v2 3/7] qcow2: Prevent allocating compressed clusters at offset 0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Thomas Huth , "R . Nageswara Sastry" , qemu-devel@nongnu.org, qemu-block@nongnu.org On Fri 03 Nov 2017 09:22:39 PM CET, Alberto Garcia wrote: >>> - assert(offset); >> >> I don't think this assert() was meant as a protection against offset >> being 0. :-) > > After the new check offset is now guaranteed to be 0, so what's the > point of keeping the assert() ? I meant "guaranteed _not_ to be 0" :-) Berto