VirtualBox

Ticket #9067 (new defect)

Opened 3 years ago

Linux kernel warnings when trying to remount a shared folder

Reported by: spectre Owned by:
Priority: major Component: shared folders
Version: VirtualBox 4.0.8 Keywords:
Cc: Guest type: Linux
Host type: Windows

Description

When I try to remount a shared folder on a Linux guest, it fails and the guest kernel issues several warnings that may indicate that some problem has occured. The steps to reproduce are as follows:

First I mount a shared folder "vbshare" to /mnt/shared:

#> mount -t vboxsf vbshare /mnt/shared

So far so good. Now I try to remount it read only:

#> mount -t vboxsf -o remount,ro vbshare /mnt/shared 
/sbin/mount.vboxsf: mounting failed with the error: Invalid argument

In the system log on the guest there are several warnings triggered in the kernel during the execution of sf_read_super_26() (see the attached system.log file for details):

  • WARNING: at /build/buildd/linux-2.6.38/fs/sysfs/dir.c:455 sysfs_add_one+0xc8/0xf0()

Hardware name: VirtualBox sysfs: cannot create duplicate filename '/devices/virtual/bdi/vboxsf-vbshare'

  • kobject_add_internal failed for vboxsf-vbshare with -EEXIST, don't try to register things with the same name in the same directory.
  • And 3 more.

At the end, the log shows that sf_read_super_aux() returned -EINVAL (-22) and mounting failed indeed.

Guest: Ubuntu 11.04 x64, kernel 2.6.38-8-generic, this problem showed up on other systems too.
Host: Windows XP SP3

Attachments

VBox.log Download (91.3 KB) - added by spectre 3 years ago.
system.log Download (38.3 KB) - added by spectre 3 years ago.
Output of dmesg

Change History

Changed 3 years ago by spectre

Changed 3 years ago by spectre

Output of dmesg

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use