Re: [BUG] Inconsistent behaviour of rmdir

From: Alexander Viro (viro@math.psu.edu)
Date: Thu Nov 16 2000 - 18:10:59 EST


On 16 Nov 2000, H. Peter Anvin wrote:

[hardlinks on directories]

> I don't believe it's inherently impossible in Linux anymore. In fact,

Yes, it is. bindings are asymmetrical. And that's the reason why they
work while links to directories do not.

> vfsbinds provide a lot of the same kind of functionality; the main
> difference between vfsbinds and hard links are that the former (a) can
> cross filesystem boundaries and (b) aren't persistent.

Here's one more: you can't rename across the binding boundary. They _are_
mounts, so they avoid all that crap with loop creation on rename, etc.
Take a generic DAG and try to implement rename() analog on it. Have fun
catching the cases that would make the graph disconnected.

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



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:11 EST