VirtualBox

Ticket #7911 (new defect)

Opened 3 years ago

Last modified 8 months ago

Data loss when writing to hidden file within a shared folder

Reported by: tliebig Owned by:
Priority: major Component: shared folders
Version: VirtualBox 4.0.0 Keywords: hidden file, file attribues, data loss
Cc: Guest type: Linux
Host type: Windows

Description (last modified by frank) (diff)

Setup Host: Win7 Home Premium 32bit Guest: Turnkey LAMP 11.0 RC (Ubuntu Lucid Lynx) Virtualbox: 4.0.0

Error Description: When writing to a hidden file within a shared folder from the host, Virtualbox reports permission problems and ultimately empties the file.

Steps to reproduce:

  1. Setup Guest system
  2. Install Guest addititions
  3. Create a shared folder on host and mount it in guest
  4. Create a file within the shared folder from the Host (Windows) and set it's attributes to "hidden" (filename e.g. being ".htaccess")
  5. write some data into the file through the host
  6. check the file's content through the guest (all fine)
  7. then, modify the file and try to save it
  8. upon that, the system reports an permission error
  9. when the file is opened again after that, through either the host or the guest, the file is empty
  10. to verify that the error stems from the attribute, just remove the hidden attribute through the host, and save some data into file through the guest afterwards - upon which everything works as expected.

Notice: This error has been in Virtualbox for at least one year. The new 4.0.0 caused me to reevaluate the version, unfortunately with no success. Here's hoping that someone with more knowledge than me gets hold of this ticket and manages to track down/fix the exact issue.

Change History

comment:1 Changed 3 years ago by frank

  • Description modified (diff)

comment:2 Changed 8 months ago by georgelund

This causes massive problems when using programs that rely heavily on hidden folders, like subversion.

I'm still seeing it in VirtualBox 4.2.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use