Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2002 12:15:22 -0700
From:      Alfred Perlstein <bright@mu.org>
To:        fs@freebsd.org
Subject:   rename hardlinks "works" on FreeBSD, but no-op on others
Message-ID:  <20020722191522.GA77219@elvis.mu.org>

next in thread | raw e-mail | index | archive | help
A coworker recently asked me (slightly modified):

  ...it says that if you rename file A to file B where A and B are
  hard links to each other, it does nothing. I thought this was
  kind of odd so I tried the experiment on Linux and sure enough
  it does the same there: no error and both A and B still exist
  after the rename.

  I tried the same experiment on Solaris 8 and got the same effect.

  I tried the same experiment on FreeBSD and it did the obviously
  correct thing and removed the old name.

  What gives?

It seems that we do the right thing, however:

1) are we standards compliant?
2) just for curiousity, why would others silently fail?

thanks,
-- 
-Alfred Perlstein [alfred@freebsd.org] [#bsdcode/efnet/irc.prison.net]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020722191522.GA77219>