Re: Can't hardlink in different dirs. (BUG#826)

Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net)
Fri, 03 Dec 1999 19:55:52 -0500


In message <Pine.LNX.4.10.9912032233200.281-100000@alpha.random>, Andrea
Arcang
eli writes:
+-----
| On Fri, 3 Dec 1999, Alexander Viro wrote:
| >Oh, great. So your reasons should pass for arbitrary filesystem, right?
|
| It's always been so. Sorry if I am been not clear. I was talking about the
| VFS not about lowlevel fs. I don't either know why coda especially
| dislikes hardlinks.
+--->8

Two reasons: (1) identifying cross-volume ("cross-device" equivalent) links
is harder, or at least more expensive, and (2) directory ACLs complicate
things a bit more than Unix directory permissions do. ((2) isn't considered
much of a problem any more, given that it's now available (and hence a
potential problem) in various Unixes (i.e. Solaris [gs]etfacl) and it
doesn't cause problems in practice.)

Add that a VFS check for "ownership" is fairly useless on Coda and AFS,
because the "owner" is a chimera provided to make Unix happy and may not
have any relationship to the file's real owner --- and indeed, the
AFS/DFS/Coda user ID may have no relationship to the Unix/Linux user ID when
the file is created or manipulated, so with your proposed change it's
trivial for me to get into a situation where I am forbidden to access my own
files. (VFS checks for "group" are even more worthless.) So you are not
only breaking Unix semantics, you're introducing the potential to
incorrectly deny me access to my files.

-- 
brandon s. allbery	   os/2,linux,solaris,perl	allbery@kf8nh.apk.net
system administrator	   kthkrb,heimdal,gnome,rt	  allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering			kf8nh
    We are Linux. Resistance is an indication that you missed the point.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/