Domanda

I have a Windows share mounted on my Linux box through cifs and am experiencing some issues based on a time difference between machines. For example, when working on a file in Emacs, if I try to save changes, Emacs warns me that the file has changed since it was last read in.

My guess is that when I save the file, changes get communicated back to the machine where the share is hosted and the modification time is updated based on that machine's clock. That said, I'm not familiar with how cifs works. If this is a reasonable explanation, how might I work around the issue? If not, what could be the root issue?

È stato utile?

Soluzione

That's a reasonable explanation. The solution is to synchronize the clocks using ntp. I'm not aware of any good way to work around the problem.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top