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