all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* modtime out of sync with network drive
@ 2009-09-08  9:52 Dave
  2009-09-09  3:49 ` Barry Margolin
  0 siblings, 1 reply; 3+ messages in thread
From: Dave @ 2009-09-08  9:52 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am using emacs 22.2.1 on ubuntu 9.04. I have a network drive attached
(Buffalo linkstation pro duo - I think it's a samba share) and I have
the drive mounted automatically as a cifs filesystem. This works fine
for everything I do in ubuntu - permissions, running commands, copying etc.

The only problem I have is that when I'm editing a file on the drive in
emacs, everytime I save the file the buffer recorded modtime and file
attribute modtime get out of sync. This means the next mod I make to the
buffer I get the 'file has changed on disc etc' message. This is a real
hassle.

As an example, immediately after a recent save, the modtime as given by
visited-file-modtime was 9454, but by file-attribute was 9438. These are
both different to the value before the save which was 9407 for both.

Any help gratefully appreciated.

thanks
Dave


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

* Re: modtime out of sync with network drive
  2009-09-08  9:52 modtime out of sync with network drive Dave
@ 2009-09-09  3:49 ` Barry Margolin
  2009-09-09  7:45   ` Dave
  0 siblings, 1 reply; 3+ messages in thread
From: Barry Margolin @ 2009-09-09  3:49 UTC (permalink / raw)
  To: help-gnu-emacs

In article <jPppm.64261$hv7.62519@newsfe10.ams2>,
 Dave <dave@remove-spam-stringlake.demon.co.uk> wrote:

> Hello,
> 
> I am using emacs 22.2.1 on ubuntu 9.04. I have a network drive attached
> (Buffalo linkstation pro duo - I think it's a samba share) and I have
> the drive mounted automatically as a cifs filesystem. This works fine
> for everything I do in ubuntu - permissions, running commands, copying etc.
> 
> The only problem I have is that when I'm editing a file on the drive in
> emacs, everytime I save the file the buffer recorded modtime and file
> attribute modtime get out of sync. This means the next mod I make to the
> buffer I get the 'file has changed on disc etc' message. This is a real
> hassle.
> 
> As an example, immediately after a recent save, the modtime as given by
> visited-file-modtime was 9454, but by file-attribute was 9438. These are
> both different to the value before the save which was 9407 for both.

Use NTP to ensure that the clocks on your computer and server are in 
sync.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


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

* Re: modtime out of sync with network drive
  2009-09-09  3:49 ` Barry Margolin
@ 2009-09-09  7:45   ` Dave
  0 siblings, 0 replies; 3+ messages in thread
From: Dave @ 2009-09-09  7:45 UTC (permalink / raw)
  To: help-gnu-emacs

Barry Margolin wrote:
> In article <jPppm.64261$hv7.62519@newsfe10.ams2>,
>  Dave <dave@remove-spam-stringlake.demon.co.uk> wrote:
> 
>> Hello,
>>
>> I am using emacs 22.2.1 on ubuntu 9.04. I have a network drive attached
>> (Buffalo linkstation pro duo - I think it's a samba share) and I have
>> the drive mounted automatically as a cifs filesystem. This works fine
>> for everything I do in ubuntu - permissions, running commands, copying etc.
>>
>> The only problem I have is that when I'm editing a file on the drive in
>> emacs, everytime I save the file the buffer recorded modtime and file
>> attribute modtime get out of sync. This means the next mod I make to the
>> buffer I get the 'file has changed on disc etc' message. This is a real
>> hassle.
>>
>> As an example, immediately after a recent save, the modtime as given by
>> visited-file-modtime was 9454, but by file-attribute was 9438. These are
>> both different to the value before the save which was 9407 for both.
> 
> Use NTP to ensure that the clocks on your computer and server are in 
> sync.
> 

Thanks - I'd thought ntp was already on on my drive, but it wasn't. That
seems to have worked.


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

end of thread, other threads:[~2009-09-09  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-08  9:52 modtime out of sync with network drive Dave
2009-09-09  3:49 ` Barry Margolin
2009-09-09  7:45   ` Dave

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.