From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwcnv-0006WB-LX for qemu-devel@nongnu.org; Thu, 25 Aug 2011 12:29:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwcnu-0001eb-IZ for qemu-devel@nongnu.org; Thu, 25 Aug 2011 12:29:19 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:50884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwcnt-0001e7-PW for qemu-devel@nongnu.org; Thu, 25 Aug 2011 12:29:18 -0400 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp07.au.ibm.com (8.14.4/8.13.1) with ESMTP id p7PGT4L1012318 for ; Fri, 26 Aug 2011 02:29:04 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p7PGRc8r1437858 for ; Fri, 26 Aug 2011 02:27:44 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p7PGSvE7013373 for ; Fri, 26 Aug 2011 02:28:57 +1000 From: "Aneesh Kumar K.V" Date: Thu, 25 Aug 2011 21:58:02 +0530 Message-Id: <1314289682-19651-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] hw/9pfs: Update the fidp path before opendir List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, "Aneesh Kumar K.V" We need to update the fidp path before opendir. Since we don't use the fid returned by mkdir, earlier code should not have much issue. We do a double v9fs_string_copy here. The later patch cleanup the entire function. Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 94b7090..71bc51b 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -2106,6 +2106,7 @@ static void v9fs_create(void *opaque) if (err < 0) { goto out; } + v9fs_string_copy(&fidp->path, &fullname); err = v9fs_co_opendir(pdu->s, fidp); if (err < 0) { goto out; -- 1.7.4.1