From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOZbX-0000s5-QI for qemu-devel@nongnu.org; Thu, 31 Jul 2008 10:58:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOZbV-0000oR-Dt for qemu-devel@nongnu.org; Thu, 31 Jul 2008 10:58:10 -0400 Received: from [199.232.76.173] (port=38280 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOZbV-0000o8-9m for qemu-devel@nongnu.org; Thu, 31 Jul 2008 10:58:09 -0400 Received: from parsec.stupidest.org ([71.6.196.126]:52617) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOZbV-0003A6-5h for qemu-devel@nongnu.org; Thu, 31 Jul 2008 10:58:09 -0400 Date: Thu, 31 Jul 2008 07:58:03 -0700 From: Chris Wedgwood Subject: Re: [Qemu-devel] PATCH: Control over drive open modes for backing file Message-ID: <20080731145803.GA5477@puku.stupidest.org> References: <20080731113120.GJ23888@redhat.com> <20080731133420.GD18548@redhat.com> <200807311446.56381.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200807311446.56381.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Thu, Jul 31, 2008 at 02:46:55PM +0100, Paul Brook wrote: > > +#define BDRV_O_RDONLY ? ? ?0x0001 /* Force read-only */ > > +#define BDRV_O_WRONLY ? ? ?0x0002 /* Force writeable, no fallback */ > > +#define BDRV_O_RDWR ? ? ? ?0x0003 /* Try writeable, fallback to read-only > > */ > > This is IMHO really misleading. Normal O_* are not bitflags. The code uses > these as bitflags sometimes, which means your descriptions are contradictory. Also the names aren't very intuitive, since BDRV_O_WRONLY really is read-write not write-only.