zsh-workers
 help / color / mirror / code / Atom feed
From: "François Revol" <revol@free.fr>
To: zsh-workers@zsh.org
Subject: Re: PATCH: warn on "hard" hard link failure
Date: Sat, 14 Nov 2009 18:32:51 +0100 CET	[thread overview]
Message-ID: <442188467-BeMail@laptop> (raw)
In-Reply-To: <20091114161834.GA12016@scru.org>

> On Tue, Mar 10, 2009 at 02:18:41PM +0000, Peter Stephenson wrote:
> > This is reponse to Sourceforge issue 1968395: failures to create
> > hard
> > links aren't gracefully handled.  Failing to create a link because
> > the
> > file already exists is the normal condition being handled by the
> > locking
> > code; however, a failure for any other reason is presumably a hard
> > failure worthy of reporting.  The same goes if stat() fails with
> > anything other than ENOENT: in both cases we give up and should say
> > so.
> >
> > It's possible this can be improved further.
>
> Apparently this has caused someone distress because of the hard
> failure
> preventing the correction of the out-of-diskspace condition causing
> the
> history failure.

I don't know what you use hardlinks for, but beware, not every OS out
there supports them.
BeOS and Haiku don't for example.
Actually they don't forbid them at the VFS layer, but BFS doesn't
support hardlinks due to the way it is implemented to support indices
and queries.

So please do provide a fallback in case of failure.

I should probably post my zsh diff someday...

François.


  reply	other threads:[~2009-11-14 17:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-14 16:18 Clint Adams
2009-11-14 17:32 ` François Revol [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-03-10 14:18 Peter Stephenson

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=442188467-BeMail@laptop \
    --to=revol@free.fr \
    --cc=zsh-workers@zsh.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 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).