VirtualBox

Ticket #9203 (new defect)

Opened 3 years ago

Last modified 16 months ago

Inability to overwrite files in shared folders from Nautilus and other means

Reported by: monsieurrigsby Owned by:
Priority: major Component: shared folders
Version: VirtualBox 4.1.0 Keywords: vboxsf nautilus
Cc: Guest type: Linux
Host type: Windows

Description

When using shared folders on an Ubuntu guest (which uses the Nautilus file manager), trying to overwrite any file on a share via the file manager (i.e. standard drag and drop of adjusted file results in a 'text file busy' error. (VirtualBox log files show nothing.)

Hidden .goutputstream-XXXXX files get left in the shared folder.

Changing it via the command line, or changing it on the host works OK. Note the similarity to bug #9066 (which I also raised) re problems when renaming folders:  http://www.virtualbox.org/ticket/9066

After doing some digging, this is a widely reported issue in Ubuntu: see  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594162  https://bugs.launchpad.net/ubuntu/+bug/323091 (don't be fooled by the title)

It appears that gedit also has the same problem, and it *looks like* it's down to the fact that some applications (unfortunately including the Ubuntu file manager and the default editor!!) implement an overwrite via a temporary open file which is then renamed (and the rename of the open file is what vboxsf doesn't like). As those bugs state, this works fine for any other Linux filesystem (incl. NTFS ones), so the error would seem to be with vboxsf. (Not sure why this bug hasn't already been reported: can't find anything remotely similar by searching.)

This (together with #9066) would seem to be a very serious and prevalent bug. To make sure it wasn't something dependent on the nature of the underlying host folder, I re-confirmed it for three cases: -- host folder is standard NTFS folder; -- host folder is SMB share; -- host folder is standard NTFS folder monitored by Dropbox (a common setup).

Observed in VirtualBox 4.0.8 but am very strongly assuming that still in 4.0.10 given the change history.

Attachments

2013-01-06_20h41_06.png Download (100.5 KB) - added by MerkUriy 16 months ago.
Bug with Nautilus in Ubuntu 12.10
2013-01-06_20h43_30.png Download (113.2 KB) - added by MerkUriy 16 months ago.
Bug with Gedit in Ubuntu 12.10

Change History

comment:1 Changed 3 years ago by monsieurrigsby

NB: As mentioned in the Ubuntu bug #323091 comments (near the end), the VirtualBox shared folders HOWTO states that this is a bug in gedit:  http://forums.virtualbox.org/viewtopic.php?t=15868

Q: I get an error "Unexpected error: Text file busy." when trying to edit a file.
A: When using gedit, this can happen on shared folders. This is a bug in gedit, not VB. Use a different editor.

This would seem to be incorrect. If the main Gnome file manager and editor do this (it's not just gedit), and it works correctly on every other filesystem, then surely it is a vboxsf implementation issue? (Sorry, don't mean to sound harsh; just trying to clarify things.)

comment:2 Changed 3 years ago by monsieurrigsby

I can confirm this persists on v4.1.0 (so an admin can feel free to change the Version tag).

comment:3 Changed 3 years ago by frank

  • Version changed from VirtualBox 4.0.8 to VirtualBox 4.1.0

comment:4 Changed 3 years ago by monsieurrigsby

Can confirm that is not a problem on KDE-based systems with Dolphin as the file manager (tested on OpenSUSE 11.3). Can also re-confirm the bug for older versions of Ubuntu, as expected (tested on Ubuntu 10.04).

Changed 16 months ago by MerkUriy

Bug with Nautilus in Ubuntu 12.10

Changed 16 months ago by MerkUriy

Bug with Gedit in Ubuntu 12.10

comment:5 Changed 16 months ago by MerkUriy

Can confirm that the bug is reproduced on current versions of Ubuntu (tested on Ubuntu 12.10 and 12.04).

Bug with Nautilus in Ubuntu 12.10 Bug with Gedit in Ubuntu 12.10

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use