Control: tag -1 patch Patch is attached.
Bastian
Description: Don't return type from host in readdir on local 9p filesystem Author: Bastian Blank <wa...@debian.org> Bug-Debian: http://bugs.debian.org/755738 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: <vendor|upstream|other>, <url of original patch> Bug: <url in upstream bugtracker> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: <no|not-needed|url proving that it has been forwarded> Reviewed-By: <name and email of someone who approved the patch> Last-Update: <YYYY-MM-DD> --- qemu-2.0.0+dfsg.orig/hw/9pfs/virtio-9p-local.c +++ qemu-2.0.0+dfsg/hw/9pfs/virtio-9p-local.c @@ -396,12 +396,16 @@ static int local_readdir_r(FsContext *ct again: ret = readdir_r(fs->dir, entry, result); - if (ctx->export_flags & V9FS_SM_MAPPED_FILE) { + if (ctx->export_flags & V9FS_SM_MAPPED) { + entry->d_type = DT_UNKNOWN; + } + else if (ctx->export_flags & V9FS_SM_MAPPED_FILE) { if (!ret && *result != NULL && !strcmp(entry->d_name, VIRTFS_META_DIR)) { /* skp the meta data directory */ goto again; } + entry->d_type = DT_UNKNOWN; } return ret; }