From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFFmL-0003NR-8G for qemu-devel@nongnu.org; Fri, 09 Dec 2016 02:39:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFFmI-0006lM-6s for qemu-devel@nongnu.org; Fri, 09 Dec 2016 02:39:37 -0500 Date: Fri, 9 Dec 2016 15:39:20 +0800 From: Fam Zheng Message-ID: <20161209073920.GA562@lemon> References: <1477928314-11184-1-git-send-email-famz@redhat.com> <1477928314-11184-15-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 14/14] tests: Add test-image-lock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: qemu-devel@nongnu.org, "Daniel P. Berrange" , Kevin Wolf , qemu-block@nongnu.org, rjones@redhat.com On Fri, 12/02 17:30, Max Reitz wrote: > > +static struct CompatData { > > + bool write_1; > > + bool share_1; > > + bool write_2; > > + bool share_2; > > + bool compatible; > > +} compat_data[] = { > > + /* Write 1, Share 1, Write 2, Share 2, Compatible. */ > > + { RO, SHARE, RO, SHARE, true, }, > > + { RO, SHARE, RO, EXCLU, true, }, > > + { RO, SHARE, RW, SHARE, true, }, > > + { RO, SHARE, RW, EXCLU, true, }, > > + { RO, EXCLU, RO, SHARE, true, }, > > + { RO, EXCLU, RO, EXCLU, true, }, > > + { RO, EXCLU, RW, SHARE, false, }, > > + { RO, EXCLU, RW, EXCLU, false, }, > > +}; > > Without having looked closer at the test, what about RW/RW compatibility? Good catch, I will fix this matrix in next version. Fam