1 2 Previous Next 16 Replies Latest reply on May 8, 2014 2:14 PM by glenbot

    vmghfs file corruption when file written by eclipse

    mbaryo Lurker

      Hi all,

       

      I'm using Workstation 10, Host OS Ubuntu 12.04, guest OS Fedora 12.  I have a single vmghfs mount exposing a Host folder as a filesystem in the guest.  In the guest, this appears in the guest fstab as: .host:/source    /home/chrisb/source    vmhgfs    defaults    0 0

       

      When writing to a text file on the host in eclipse, I am able to consistently reproduce a file corruption bug from the point-of-view of the guest OS.  If I expand the file, everything is okay.  If I make the file smaller (for example, deleting a few characters of a text file) the size appears to change but the contents do NOT.  This problem does NOT occur when the file is edited in vim, however the effect appears to be the same in either case on the host (the file appears changed correctly on the host).  Issuing a 'sync' on the Host also has no impact on what the guest sees.

       

      e.g.:

      original

      =====

      1234567890

      =====

      edit on host

      =====

      12345890

      =====

      seen on guest:

      =====

      12345678

      =====

      I have not tried editing the file while it appears corrupted on the guest.

       

      What causes this, and how do I prevent it short of abandoning eclipse?

       

      Chris...

        1 2 Previous Next