Re: reiser4 plugins

Hans Reiser
2005-07-06T00:15:51Z

If we also add to this the restriction that once you create the file
part of a file-directory, you can never hardlink to a child of it, it
should then all work, yes?

So, /filename/..../owner should be able to avoid colliding with any
common names by virtue of the '....', and not letting any filedir
(file-directory) have children with links to them should also work. The
one thing that seems inelegant is that when you create the file part of
a filedir, you must check all its children for hardlinks and fail if
they exist, and you must flag all its directory children so that the
plugins for them will disallow hardlinks to their children from that
point onward. Still, seems workable....

Thanks David,

Hans

Hans Reiser wrote:

>David Masover wrote:
>
>
>
>>Now, can anyone think of a situation where we want user-created
>>hardlinks inside metadata? More importantly, what do we do about it?
>>
>>
>>
>>
>I think the equivalent of symlinks would be good enough to get by on for
>now for most linking of metafiles. Maybe some years from now somebody
>can fault me for saying this and write a patch to fix it to be better,
>at which point I will be happy to concede the point.
>
>So the basic principal here is, one can have hardlinks to directories
>without cycles provided that one does not allow any child of the
>directory to have a hardlink. The question is, how cleanly can that
>relaxed restriction be coded?
>
>Hans
>
>
>