[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "file has changed" on network drive
From: |
Damien Wyart |
Subject: |
Re: "file has changed" on network drive |
Date: |
Tue, 29 Jan 2013 11:22:13 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 |
* Brendan Halpin <brendan.halpin@ul.ie> in gnu.emacs.help:
> I have a CIFS-mounted network drive, whose clock seems to be very
> slightly different from my computer's clock (despite NTP on both
> devices). Consequently when I edit a file on the drive, there is
> a small discrepancy between (visited-file-modtime) and the file-system
> timestamp, and Emacs complains that the file has changed on disc. The
> difference is small, and only in the third and fourth elements of the
> time as Emacs represents it (interestingly, on other file systems
> these two elements are 0).
> Is there a known work-around for this problem? A function at writing
> that uses set-visited-file-modtime to set the time stamp to the
> filesystem value? If so, where to hook it in?
You might experience the problem described here in detail:
https://bugzilla.samba.org/show_bug.cgi?id=3775
cifs has been patched to avoid the problem (in 2010), so maybe your
system doesn't have this patch? Or your problem is close but
different...
--
DW