hw/9pfs: Don't return type from host in readdir on local 9p filesystem
authorBastian Blank <waldi@debian.org>
Fri, 22 Aug 2014 09:22:21 +0000 (13:22 +0400)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 4 Sep 2014 15:51:13 +0000 (10:51 -0500)
commit840a1bf2832f5783d1070547fcb460216fc219e5
tree484aa2741002253bc4a4d254c49415cf6c2dd83c
parentf8ad4a89e99848a554b0049d7a612f5a585b7231
hw/9pfs: Don't return type from host in readdir on local 9p filesystem

When using mapped mode in 9pfs, readdir implementation
should not return file type in d_type from the host
readdir, instead, it should use the type stored in
the extended attributes.  Since d_type is optional
and reading ext attrs for every readdir is expensive,
it should be sufficient to just set d_type to DT_UNKNOWN,
so guest will know to look it up separately.

This is a -stable material.

Signed-off-by: Bastian Blank <waldi@debian.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p-local.c