all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Possible problem using emacs on mounted filesystem.
@ 2014-03-26 14:35 glen stark
  2014-03-27  0:15 ` Barry Margolin
  0 siblings, 1 reply; 3+ messages in thread
From: glen stark @ 2014-03-26 14:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hi everyone.  

I'm not sure if this is an OS problem or an emacs problem.  The problem 
only manifests itself for me on emacs, so I'm starting there.

I have a folder on an older linux server that I mount with the command:

sudo mount -t cifs -o username=xxx,uid=xxx //pdxenlin66/home/stg xenlin

I use emacs to edit the file.  I edit fine, but when I save the file, the 
next time I try to edit the buffer I get the message "X changed on disk; 
really edit the buffer?".

Does anyone have any idea what's going on here?  This is the first time I 
have such an issue.

Thanks,  Glen


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

* Re: Possible problem using emacs on mounted filesystem.
  2014-03-26 14:35 Possible problem using emacs on mounted filesystem glen stark
@ 2014-03-27  0:15 ` Barry Margolin
  2014-03-27  8:18   ` glen stark
  0 siblings, 1 reply; 3+ messages in thread
From: Barry Margolin @ 2014-03-27  0:15 UTC (permalink / raw)
  To: help-gnu-emacs

In article <dBBYu.20785$C06.15746@fx35.am4>,
 glen stark <g.a.stark@gmail.com> wrote:

> Hi everyone.  
> 
> I'm not sure if this is an OS problem or an emacs problem.  The problem 
> only manifests itself for me on emacs, so I'm starting there.
> 
> I have a folder on an older linux server that I mount with the command:
> 
> sudo mount -t cifs -o username=xxx,uid=xxx //pdxenlin66/home/stg xenlin
> 
> I use emacs to edit the file.  I edit fine, but when I save the file, the 
> next time I try to edit the buffer I get the message "X changed on disk; 
> really edit the buffer?".
> 
> Does anyone have any idea what's going on here?  This is the first time I 
> have such an issue.
> 
> Thanks,  Glen

I think this typically means that the clocks are not synchronized 
between the client and server. The server's clock is ahead of the 
client, so when you save the file its modification time is newer than 
the time you saved.

Make sure you're running NTP on all machines to keep their clocks in 
sync.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


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

* Re: Possible problem using emacs on mounted filesystem.
  2014-03-27  0:15 ` Barry Margolin
@ 2014-03-27  8:18   ` glen stark
  0 siblings, 0 replies; 3+ messages in thread
From: glen stark @ 2014-03-27  8:18 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 26 Mar 2014 19:15:50 -0500, Barry Margolin wrote:

> In article <dBBYu.20785$C06.15746@fx35.am4>,
>  glen stark <g.a.stark@gmail.com> wrote:
> 
>> Hi everyone.
>> 
>> I'm not sure if this is an OS problem or an emacs problem.  The problem
>> only manifests itself for me on emacs, so I'm starting there.
>> 
>> I have a folder on an older linux server that I mount with the command:
>> 
>> sudo mount -t cifs -o username=xxx,uid=xxx //pdxenlin66/home/stg xenlin
>> 
>> I use emacs to edit the file.  I edit fine, but when I save the file,
>> the next time I try to edit the buffer I get the message "X changed on
>> disk; really edit the buffer?".
>> 
>> Does anyone have any idea what's going on here?  This is the first time
>> I have such an issue.
>> 
>> Thanks,  Glen
> 
> I think this typically means that the clocks are not synchronized
> between the client and server. The server's clock is ahead of the
> client, so when you save the file its modification time is newer than
> the time you saved.
> 
> Make sure you're running NTP on all machines to keep their clocks in
> sync.

Thanks for the insight.  I'm pretty sure you're right.  I'm having 
trouble with running ntp on the virtual machine that's running emacs.  
I'll have to try and figure out what's going on there.

G.


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

end of thread, other threads:[~2014-03-27  8:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 14:35 Possible problem using emacs on mounted filesystem glen stark
2014-03-27  0:15 ` Barry Margolin
2014-03-27  8:18   ` glen stark

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.