Ticket #9203 (new defect)
Inability to overwrite files in shared folders from Nautilus and other means
|Reported by:||monsieurrigsby||Owned by:|
|Version:||VirtualBox 4.1.0||Keywords:||vboxsf nautilus|
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.
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.