The fix James proposes does indeed fix the issue for me.
I'm attaching the patch-file I used as
debian/patches/38-linux-3.11-sf.patch
for convenience.
Regards, Frank
Description: Import upstream fix for shared folders with linux 3.11
Apparently, listing directories in shared folders with linux kernel
version 3.11 causes the application requesting the directory list to
enter a busy loop. This is the indended fix from upstream's VCS.
Author: Virtualbox Upstream
Bug-Debian: http://bugs.debian.org/727222
Upstream-Fix-URL: https://www.virtualbox.org/changeset/48529/vbox
--- virtualbox-4.2.16-dfsg.orig/src/VBox/Additions/linux/sharedfolders/dirops.c
+++ virtualbox-4.2.16-dfsg/src/VBox/Additions/linux/sharedfolders/dirops.c
@@ -282,10 +282,13 @@ static int sf_dir_read(struct file *dir,
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
- err = dir_emit(ctx, d_name, strlen(d_name), fake_ino, DT_UNKNOWN);
+ if (!dir_emit(ctx, d_name, strlen(d_name), fake_ino, DT_UNKNOWN))
+ {
+ LogFunc(("dir_emit failed\n"));
+ return 0;
+ }
#else
err = filldir(opaque, d_name, strlen(d_name), dir->f_pos, fake_ino, DT_UNKNOWN);
-#endif
if (err)
{
LogFunc(("filldir returned error %d\n", err));
@@ -293,6 +296,7 @@ static int sf_dir_read(struct file *dir,
only when it runs out of space in opaque */
return 0;
}
+#endif
dir->f_pos += 1;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)