From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfJZR-0001Hy-BH for qemu-devel@nongnu.org; Wed, 22 May 2013 20:39:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfJZI-0000XO-AM for qemu-devel@nongnu.org; Wed, 22 May 2013 20:39:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfJZI-0000XJ-2S for qemu-devel@nongnu.org; Wed, 22 May 2013 20:39:44 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4N0dhK9005008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 22 May 2013 20:39:43 -0400 Date: Thu, 23 May 2013 08:39:40 +0800 From: Fam Zheng Message-ID: <20130523003940.GB1522@localhost.nay.redhat.com> References: <1369234881-403-1-git-send-email-rjones@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1369234881-403-1-git-send-email-rjones@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block/curl.c: Refuse to open the handle for writes. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: qemu-devel@nongnu.org On Wed, 05/22 16:01, Richard W.M. Jones wrote: > From: "Richard W.M. Jones" > > --- > block/curl.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/block/curl.c b/block/curl.c > index b8935fd..f1e302b 100644 > --- a/block/curl.c > +++ b/block/curl.c > @@ -406,6 +406,10 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags) > > static int inited = 0; > > + if (flags & BDRV_O_RDWR) { > + return -ENOTSUP; > + } > + > opts = qemu_opts_create_nofail(&runtime_opts); > qemu_opts_absorb_qdict(opts, options, &local_err); > if (error_is_set(&local_err)) { > -- > 1.8.2.1 > Thanks, I'll include this in the new version of my series. -- Fam