From: Damien Wyart <damien.wyart@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: "file has changed" on network drive
Date: Tue, 29 Jan 2013 11:22:13 +0100 [thread overview]
Message-ID: <5107a2d6$0$2240$426a74cc@news.free.fr> (raw)
In-Reply-To: 8738xkuwzt.fsf@wivenhoe.ul.ie
* 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
next prev parent reply other threads:[~2013-01-29 10:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-29 10:03 "file has changed" on network drive Brendan Halpin
2013-01-29 10:22 ` Damien Wyart [this message]
2013-01-29 11:06 ` Eli Zaretskii
[not found] ` <mailman.18538.1359457603.855.help-gnu-emacs@gnu.org>
2013-01-29 11:18 ` Brendan Halpin
2013-01-29 22:20 ` Brendan Halpin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='5107a2d6$0$2240$426a74cc@news.free.fr' \
--to=damien.wyart@free.fr \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.