Apparent NFS issue #7650
Replies: 5 comments 1 reply
-
we use mtime to detect if a file is changed. Almost every os should have some reasonable notion of mtie. There are some tricks to check if the fs supports mtime (used by git/gitoxide). I guess we could implement some autodection but it seems like a pretty niche usecase |
Beta Was this translation helpful? Give feedback.
-
IIRC I ran into something like this a long time ago with a Vagrant setup that synced files between the host and VM. The issue was the VM's clock was way behind the host. You may be able to solve it by syncing the VM's clock, for example with |
Beta Was this translation helpful? Give feedback.
-
@pascalkuthe Thanks, you pointed me in the right direction. And @the-mikedavis you were correct, although I spotted it myself on closer inspection of the modified time stamps. My guest FreeBSD OS wasn't respecting daylight savings. Thanks! (it's also imperative to have ntpd service running!) |
Beta Was this translation helpful? Give feedback.
-
I'm going to reopen this, because it's still a sporadic issue, even with NTP setup. And using the editor on an NFS share doesn't seem such an esoteric use case - to me at least. |
Beta Was this translation helpful? Give feedback.
-
I've found out that Virtualbox has its own time sync service, and it seems this might have been an issue since it seems more stable now (of course no need to have to have this running in tandem with NTP). It can be disabled by adding the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm having trouble editing files over NFS. Specifically I get the error:
File modified by an external process, use :w! to overwrite
when attempting to write a file for the second time.This seems to be the same on NFS V3/4.
The NFS client is a VirtualBox machine, that is mounted using Vagrant, although this should probably be irrelevant. The guest OS is FreeBSD, which might be relevant.
Editing files outside the NFS mount is non-problematic.
Just wondering if there is some kind of known issue. I'm guessing it's in relation to the inotify library - is there anyway to override this file change detection?
Thanks for what looks likes a promising editor.
Beta Was this translation helpful? Give feedback.
All reactions