From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOV0Z-0006aY-Sg for qemu-devel@nongnu.org; Mon, 23 May 2011 09:17:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOV0Y-0001bR-ST for qemu-devel@nongnu.org; Mon, 23 May 2011 09:17:19 -0400 Received: from mail-gy0-f173.google.com ([209.85.160.173]:43969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOV0Y-0001bJ-Pt for qemu-devel@nongnu.org; Mon, 23 May 2011 09:17:18 -0400 Received: by gyg4 with SMTP id 4so2443439gyg.4 for ; Mon, 23 May 2011 06:17:18 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110523114912.GA26653@in.ibm.com> References: <1306137482-1133-1-git-send-email-mohan@in.ibm.com> <20110523114912.GA26653@in.ibm.com> Date: Mon, 23 May 2011 14:17:18 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC/PATCH] virtio-9p: Add Read only support for 9p export. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mohan@in.ibm.com Cc: rlandley@parallels.com, qemu-devel@nongnu.org On Mon, May 23, 2011 at 12:49 PM, M. Mohan Kumar wrote: > On Mon, May 23, 2011 at 11:08:34AM +0100, Stefan Hajnoczi wrote: >> On Mon, May 23, 2011 at 8:58 AM, M. Mohan Kumar wrote= : >> > A new fsdev parameter "access" is introduced to control accessing 9p e= xport. >> > access=3Dro|rw can be used to specify the access type. By default rw a= ccess >> > is given to 9p export. >> >> It would be consistent with -drive to use readonly=3Don|off (default: >> off). =A0Do you have any future access modes in mind that require more >> than readonly on|off? > > You mean to use 'readonly=3Don|off' instead of 'access=3Dro|rw' ? Yes. > >> >> It seems the client does not know ahead of time that the mount is >> read-only. =A0I wonder if this exposes any weirdness compared to >> actually mounting ro on the client side (i.e. operations that appear >> to start okay but then fail with -EROFS at a different point than if >> you had mounted ro)? =A0It could cause apps to error in new ways. >> > > When a NFS share is exported as read-only, client will come to know about > that when it does some write operation. IMHO its not an issue. If it works the same way on NFS then great. Stefan