Open madhavajay opened 7 years ago
Okay, so it seems like whats happening for me is i'm only getting the ATTRIB events when a file is touched or edited or deleted.
On the guest OS I am using lnotifyd and currently hooking into the ATTRIB call with:
onAttrib = prefix..[[rm -rf ^targetPathdir && cp -r ^sourcePathdir ^targetPathdir]],
Which is sub par as you can imagine, since its deleting and copying the entire dir but its the only way to handle a file being renamed or deleted.
Is the problem perhaps on the OS X notify-forwarder side not getting the events properly?
Seems like after mac os 10.12.5 the plugin don't forwarding changes
I am on oxX 10.12.6 and I get ATTRIB events for changes, adds. But nothing for deletes. Are other seeing that?
It seems quite unreliable. I can get this to work sometimes with inotify but after a few events it stops. I also tried watchman from Facebook which uses inotify but can't seem to get any events. I don't see any errors on startup it says that its creating the ports etc
My setup is: Host: OSX 10.12 Sierra
Vagrant 1.8.7 Guest: CentOS 7
File Mount Type: NFS
Vagrant plugins: landrush (1.2.0) vagrant-notify-forwarder (0.5.0) vagrant-scp (0.5.7) vagrant-share (1.1.6, system) vagrant-vbguest (0.13.0)
It's a pity because I cannot find any other solution for easily monitoring changes to a mounted dir and acting on it.
Vagrant Startup output:
Vagrant file
Any ideas?