winnfsd / vagrant-winnfsd

Manage and adds support for NFS for Vagrant on Windows.
Other
567 stars 62 forks source link

Winnfsd doesn't always overwrite files correctly #8

Closed kylemacfarlane closed 10 years ago

kylemacfarlane commented 10 years ago

Create a text file called test.txt on your host:

This is a test file

Perform something like the following in the guest:

python -c "with open('/vagrant/test.txt', 'w') as fh: fh.write('New')"

The file contents should be:

New

But sometimes they are:

News is a test file

It happens quite frequently with one of my setup scripts but seems to be very rare and hard to repeat with smaller scripts. Presumably it's related to the amount of activity.

kylemacfarlane commented 10 years ago

Whoops. The reason I was having difficulty repeating the problem was that i had turned off NFS to test Virtualbox's synced folders. This bug seems to happen every time with Winnfsd but never with synced folders.

However opening an editing a file in vim works fine. I don't know what Python is doing differently.

GM-Alex commented 10 years ago

Hi Kyle,

I know the issue but I didn't found a way to reproduce it constantly, maybe you solution will work to reproduce it. But please create Issues related to WinNFSd here: https://bitbucket.org/jankowfsky/winnfsd