hw/9pfs: Use the correct file descriptor in Fsdriver Callback
commited6857bf98e6c8b8080be208ffe15bb678591466
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 4 Dec 2011 17:05:28 +0000 (4 22:35 +0530)
committerJustin M. Forbes <jforbes@redhat.com>
Tue, 10 Jan 2012 15:27:11 +0000 (10 09:27 -0600)
tree519bcc937888e86aab127cd8c1a89687532f97cf
parent64dd41bc2de392fa018c5ce804cc451b83f18b94
hw/9pfs: Use the correct file descriptor in Fsdriver Callback

Fsdriver callback that operate on file descriptor need to
differentiate between directory fd and file fd.

Based on the original patch from Sassan Panahinejad <sassan@sassan.me.uk>

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
fsdev/file-op-9p.h
hw/9pfs/cofile.c
hw/9pfs/virtio-9p-handle.c
hw/9pfs/virtio-9p-local.c
hw/9pfs/virtio-9p-synth.c