From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFLaW-0002Sy-8I for qemu-devel@nongnu.org; Tue, 12 Mar 2013 05:33:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFLaP-00038V-RK for qemu-devel@nongnu.org; Tue, 12 Mar 2013 05:33:40 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:38798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFLaP-00038L-LN for qemu-devel@nongnu.org; Tue, 12 Mar 2013 05:33:33 -0400 Received: by mail-wg0-f43.google.com with SMTP id e12so5733775wge.34 for ; Tue, 12 Mar 2013 02:33:33 -0700 (PDT) Date: Tue, 12 Mar 2013 10:33:30 +0100 From: Stefan Hajnoczi Message-ID: <20130312093330.GA19624@stefanha-thinkpad.redhat.com> References: <1360153926-9492-1-git-send-email-benoit@irqsave.net> <1360153926-9492-20-git-send-email-benoit@irqsave.net> <20130207101621.GM1081@stefanha-thinkpad.redhat.com> <20130311152003.GC3824@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20130311152003.GC3824@irqsave.net> Subject: Re: [Qemu-devel] [RFC V6 19/33] block: Add qcow2_dedup format and image creation code. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Mon, Mar 11, 2013 at 04:20:03PM +0100, Benoît Canet wrote: > > > + if (dedup) { > > > + version = 3; > > > + } > > > > Lazy refcounts don't force the version. It would be consistent to > > refrain from forcing the version too. > > I don't understand. Aren't the incompatible features bits implying version = 3 ? > When compat=1.1 is set the code force version to 3. Only compat= affects the version. Lazy refcounts and dedup should be orthogonal. If you specify lazy_refcounts=on without compat=1.1 you get an error. Same should apply to deduplication. Otherwise the qemu-img create behavior is inconsistent - you get an error for lazy_refcounts but no error and silent version=3 for deduplication. Stefan