zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: corrupt history file on NFS
Date: Mon, 15 Jan 2007 19:00:43 -0800	[thread overview]
Message-ID: <070115190043.ZM25669@torch.brasslantern.com> (raw)
In-Reply-To: <20070116020321.GK10583@prunille.vinc17.org>

On Jan 16,  3:03am, Vincent Lefevre wrote:
}
} *never* occurs if I read the history file with less before typing the

This sounds like an NFS synchronization issue.  Reading the file forces
the first write to be flushed out of the NFS cache.

This suggests that we might be able to work around it by always having
zsh seek to one btye short of the file size, and then read that byte,
before it attempts to append anything to the file.  However, it's really
not zsh's fault:  NFS writes are not required to be atomic, and zsh does
not know the file isn't local.  So this would have to be controlled by
an option, or something, so as not to penalize cases that don't need
NFS "safety".


  reply	other threads:[~2007-01-16  3:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-14 20:25 Vincent Lefevre
2007-01-15  3:27 ` Wayne Davison
2007-01-16  2:03   ` Vincent Lefevre
2007-01-16  3:00     ` Bart Schaefer [this message]
2007-01-16  3:12       ` Vincent Lefevre

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=070115190043.ZM25669@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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 public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).