qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH v3] v9fs_walk: As per 9p2000 RFC, MAXWELEM >= nw


From: Harsh Bora
Subject: [Qemu-devel] Re: [PATCH v3] v9fs_walk: As per 9p2000 RFC, MAXWELEM >= nwnames >= 0.
Date: Tue, 05 Apr 2011 16:00:08 +0530
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Thunderbird/3.0.5

On 04/05/2011 02:24 PM, Stefan Hajnoczi wrote:
On Tue, Apr 5, 2011 at 6:56 AM, Harsh Prateek Bora
<address@hidden>  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<address@hidden>
---
  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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]