Received: from eggs.gnu.org ([140.186.70.92]:42576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9I0R-0005ha-E5 for qemu-devel@nongnu.org; Thu, 29 Sep 2011 10:54:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9I0L-0002Yh-Lu for qemu-devel@nongnu.org; Thu, 29 Sep 2011 10:54:35 -0400 Received: from e9.ny.us.ibm.com ([32.97.182.139]:48308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9I0L-0002U9-Hf for qemu-devel@nongnu.org; Thu, 29 Sep 2011 10:54:29 -0400 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by e9.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p8TEIVUa002529 for ; Thu, 29 Sep 2011 10:18:31 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8TEs08E2527472 for ; Thu, 29 Sep 2011 10:54:00 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8TEs05a009995 for ; Thu, 29 Sep 2011 10:54:00 -0400 From: "Aneesh Kumar K.V" In-Reply-To: <1317292461-12291-1-git-send-email-berrange@redhat.com> References: <1317292461-12291-1-git-send-email-berrange@redhat.com> Date: Thu, 29 Sep 2011 20:23:49 +0530 Message-ID: <87sjnfqu0y.fsf@skywalker.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] Raise 9pfs mount_tag limit from 32 to 255 bytes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , qemu-devel@nongnu.org Cc: Harsh Bora On Thu, 29 Sep 2011 11:34:21 +0100, "Daniel P. Berrange" wrote: > From: "Daniel P. Berrange" > > The Linux guest kernel does not appear to have a problem handling > a mount_tag larger than 32 bytes. Increase the limit to 255 bytes, > though perhaps it can be made larger still, or not limited at all ? > > Tested with a 3.0.4 kernel and a mount_tag 255 bytes in length. > > * hw/9pfs/virtio-9p.h: Change MAX_TAG_LEN to 255 mount_tag is passed via pci config space, do we want to have 255 bytes out of that for device identification. Is this change driven by the virt-manager UI where we specify source and target directory for file system ?. I would like to understand how that target directory is used in case of other user like NFS ?. If this is something used to get automout (I am not sure how we drive such an automount) of those mounts points, then it should be ok for VirtFS to generate mount tag internally which will fit 32 byte limit and use the target directory for automounting the mount point using the internally generated mount tag > > Signed-off-by: Daniel P. Berrange > --- > hw/9pfs/virtio-9p.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h > index 17d44b4..b133b33 100644 > --- a/hw/9pfs/virtio-9p.h > +++ b/hw/9pfs/virtio-9p.h > @@ -144,7 +144,7 @@ struct V9fsPDU > /* The ID for virtio console */ > #define VIRTIO_ID_9P 9 > #define MAX_REQ 128 > -#define MAX_TAG_LEN 32 > +#define MAX_TAG_LEN 255 > > #define BUG_ON(cond) assert(!(cond)) > -aneesh