unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* SHFS => "foo changed on disk" warning
@ 2003-11-28 14:32 Felix E. Klee
  2003-11-30  7:26 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Felix E. Klee @ 2003-11-28 14:32 UTC (permalink / raw)


Hi,

I mounted a remote directory from a server PHI with SHFS (allows
mounting of directories that are accessible through SSH) on my client
DONALD by using the command "shfsmount phi: ~/mnt/p.uk". However,
editing files in that directory with EMACS 21.2 is problematic. An
example: 
1. I open a file "~/mnt/p.uk/foo" with "C-x C-f". 
2. I edit the corresponding buffer. 
3. I save the file. 
4. I try to continue editing "foo" but get the warning "foo changed 
   on disk; really edit the buffer? (y, n, r or C-h)".

How can I find out why I get this warning?

BTW, I already had the idea that the problem is due to bad time stamps.
However, when I save "foo" it gets the current time of DONALD as a time
stamp (the client) and not that of PHI (the server). In addition the
clock on DONALD is ahead of that on PHI. Therefore, I doubt that
time stamps are the issue.

Felix

-- 
To contact me off list don't reply but send mail to
    felix DOT klee AT inka DOT de
Otherwise your email to me might get automatically deleted!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SHFS => "foo changed on disk" warning
  2003-11-28 14:32 SHFS => "foo changed on disk" warning Felix E. Klee
@ 2003-11-30  7:26 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2003-11-30  7:26 UTC (permalink / raw)


> From: "Felix E. Klee" <felix.klee.news@gmx.net>
> Newsgroups: gnu.emacs.help
> Date: Fri, 28 Nov 2003 15:32:15 +0100
> 
> BTW, I already had the idea that the problem is due to bad time stamps.
> However, when I save "foo" it gets the current time of DONALD as a time
> stamp (the client) and not that of PHI (the server). In addition the
> clock on DONALD is ahead of that on PHI. Therefore, I doubt that
> time stamps are the issue.

I doubt that it could be _anything_but_ the time stamps issue.
verify-visited-file-modtime, the function that causes this warning to
appear, looks at nothing else but on file's time stamp (assuming that
the `stat' system call doesn't fail for files on that mount point).

To find out what's going on, invoke the function visited-file-modtime
from the buffer of the offending file, and compare the result it
returns with the time stamp for that file returned by file-attributes.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-30  7:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-28 14:32 SHFS => "foo changed on disk" warning Felix E. Klee
2003-11-30  7:26 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).