winnfsd / vagrant-winnfsd

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

Removing file on host does not remove on guest #50

Open bbodenmiller opened 9 years ago

bbodenmiller commented 9 years ago

When I remove a file from my host OS folder it does not properly show up as removed in my guest OS.

vagrant@vagrant-ubuntu-trusty-64:/vagrant2$ ls -lah
total 51K
drwxrwxrwx  1 root root 4.0K Apr 20 08:43 .
drwxr-xr-x 24 root root 4.0K Apr 20 08:39 ..
-rwxrwxrwx  1 root root  275 Apr 20 07:42 Gemfile.lock
drwxrwxrwx  1 root root 4.0K Apr 20 08:42 .git
-rwxrwxrwx  1 root root  409 Apr 17 08:34 .gitignore

After removing .gitignore from host OS.

vagrant@vagrant-ubuntu-trusty-64:/vagrant2$ ls -lah
ls: cannot access .gitignore: No such file or directory
total 51K
drwxrwxrwx  1 root root 4.0K Apr 20 08:43 .
drwxr-xr-x 24 root root 4.0K Apr 20 08:39 ..
-rwxrwxrwx  1 root root  275 Apr 20 07:42 Gemfile.lock
drwxrwxrwx  1 root root 4.0K Apr 20 08:42 .git
-?????????  ? ?    ?       ?            ? .gitignore
vagrant@vagrant-ubuntu-trusty-64:/vagrant2$ mount
/dev/sda1 on / type ext4 (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=
systemd)
172.28.128.1:/C/Users/Ben/Documents/GitHub/gitlab-development-kit on /vagrant2
type nfs (rw,vers=3,udp,nolock,addr=172.28.128.1)
# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    config.winnfsd.logging = "on"

    config.vm.box = "ubuntu/trusty64"

    # NFS setup
    config.vm.network "private_network", type: "dhcp"

    config.vm.synced_folder ".", "/vagrant2", type: "nfs"
end

Running Vagrant 1.7.2 on Windows 8.1 with latest vagrant-winnfsd release. Guest OS is Ubuntu 14.04.

I've already done a fairly extensive search online to see if this could possible be a setting issue in the guest OS but have not found anything that could help. One option may be to try NFS4 but it does not appear this plugin supports that yet as vagrant up returns errors when I set nfs_version: 4.