From patchwork Thu Mar 25 12:40:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sripathi Kodi X-Patchwork-Id: 88230 X-Patchwork-Delegate: ericvh@gmail.com Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2PCqIC4006258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 25 Mar 2010 12:52:54 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NumXm-0006BH-8F; Thu, 25 Mar 2010 12:52:14 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NumXl-0006B8-Fx for v9fs-developer@lists.sourceforge.net; Thu, 25 Mar 2010 12:52:13 +0000 Received-SPF: softfail (sfi-mx-2.v28.ch3.sourceforge.com: transitioning domain of in.ibm.com does not designate 122.248.162.8 as permitted sender) client-ip=122.248.162.8; envelope-from=sripathik@in.ibm.com; helo=e28smtp08.in.ibm.com; Received: from e28smtp08.in.ibm.com ([122.248.162.8]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NumXj-0004Ph-IQ for v9fs-developer@lists.sourceforge.net; Thu, 25 Mar 2010 12:52:13 +0000 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp08.in.ibm.com (8.14.3/8.13.1) with ESMTP id o2PBpWdh026013 for ; Thu, 25 Mar 2010 17:21:32 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o2PCeaVq2564308 for ; Thu, 25 Mar 2010 18:10:36 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o2PCeal5016047 for ; Thu, 25 Mar 2010 18:10:36 +0530 Received: from localhost ([9.124.46.227]) by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o2PCeaQb016042 for ; Thu, 25 Mar 2010 18:10:36 +0530 Date: Thu, 25 Mar 2010 18:10:35 +0530 From: Sripathi Kodi To: v9fs-developer@lists.sourceforge.net Message-ID: <20100325181035.1ef7067e@in.ibm.com> In-Reply-To: <20100325175641.6744713b@in.ibm.com> References: <20100325175641.6744713b@in.ibm.com> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.18.6; i686-redhat-linux-gnu) Mime-Version: 1.0 X-Spam-Score: -0.3 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.9 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NumXj-0004Ph-IQ Subject: [V9fs-developer] [PATCH 1/2] [V2] VFS switches for 9p2000.L: protocol and client changes X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: v9fs-developer-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 25 Mar 2010 12:52:55 +0000 (UTC) diff --git a/net/9p/client.c b/net/9p/client.c index 63ec5af..381b4e0 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -1322,7 +1322,8 @@ static int p9_client_statsize(struct p9_wstat *wst, int proto_version) if (wst->muid) ret += strlen(wst->muid); - if (proto_version == p9_proto_2000u) { + if ((proto_version == p9_proto_2000u) || + (proto_version == p9_proto_2000L)) { ret += 2+4+4+4; /* extension[s] n_uid[4] n_gid[4] n_muid[4] */ if (wst->extension) ret += strlen(wst->extension); diff --git a/net/9p/protocol.c b/net/9p/protocol.c index 94f5a8f..d6bc02f 100644 --- a/net/9p/protocol.c +++ b/net/9p/protocol.c @@ -340,7 +340,8 @@ p9pdu_vreadf(struct p9_fcall *pdu, int proto_version, const char *fmt, } break; case '?': - if (proto_version != p9_proto_2000u) + if ((proto_version != p9_proto_2000u) && + (proto_version != p9_proto_2000L)) return 0; break; default: @@ -487,7 +488,8 @@ p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt, } break; case '?': - if (proto_version != p9_proto_2000u) + if ((proto_version != p9_proto_2000u) && + (proto_version != p9_proto_2000L)) return 0; break; default: