From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42028 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q73Wb-0003Yu-Vp for qemu-devel@nongnu.org; Tue, 05 Apr 2011 06:30:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q73Wa-0002jB-OT for qemu-devel@nongnu.org; Tue, 05 Apr 2011 06:30:17 -0400 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:35641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q73Wa-0002iL-51 for qemu-devel@nongnu.org; Tue, 05 Apr 2011 06:30:16 -0400 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp07.in.ibm.com (8.14.4/8.13.1) with ESMTP id p35AUBDB022854 for ; Tue, 5 Apr 2011 16:00:11 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p35AUAGk2756792 for ; Tue, 5 Apr 2011 16:00:10 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p35AU90L009081 for ; Tue, 5 Apr 2011 20:30:10 +1000 Message-ID: <4D9AEF30.5070206@linux.vnet.ibm.com> Date: Tue, 05 Apr 2011 16:00:08 +0530 From: Harsh Bora MIME-Version: 1.0 References: <1301982971-4574-1-git-send-email-harsh@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH v3] v9fs_walk: As per 9p2000 RFC, MAXWELEM >= nwnames >= 0. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: "M. Mohan Kumar" , jvrao@linux.vnet.ibm.com, qemu-devel@nongnu.org, "Aneesh Kumar K. V" On 04/05/2011 02:24 PM, Stefan Hajnoczi wrote: > On Tue, Apr 5, 2011 at 6:56 AM, Harsh Prateek Bora > wrote: >> The nwnames field in TWALK message is assumed to be>=0 and<= MAXWELEM >> which is defined as macro P9_MAXWELEM (16) in virtio-9p.h as per 9p2000 >> RFC. Appropriate changes are required in V9fsWalkState and v9fs_walk. >> >> v3: >> - Updated if-else conditions to appropriately handle nwnames = 0. >> >> v2: >> - Added check in v9fs_walk_complete as well. >> >> Signed-off-by: Harsh Prateek Bora >> --- >> hw/9pfs/virtio-9p.c | 7 +++++-- >> hw/9pfs/virtio-9p.h | 2 +- >> 2 files changed, 6 insertions(+), 3 deletions(-) > > hw/virtio-9p.c > > I think you've submitted a patch against an internal tree that isn't upstream. Yes, it is based on a patch yet to be merged in mainline by Aneesh which will move 9p files into a separate folder, however, I shall repost an updated version of the patch based on current directory structure. regards, Harsh > > Stefan