Re: what is necessary for directory hard links

From: Nikita Danilov
Date: Mon Jul 24 2006 - 02:44:35 EST

Joshua Hudson writes:
> Some people seem to think that I am proposing to do something.
> Understand that I have done it for 2.6.17-rc4 and am currently
> involved in bringing it forward to newer kernels.
> >
> > What is the parent of a hard linked directory? What is the parent if
> > the link in "the parent" is deleted?
> The parent is any and all directories that contain a link to the
> stated directory. ".." points back along the path the referrer used
> to reach the current directory (this behavior is already in kernel:
> didn't have to lift a finger to get it).

That won't work for kernel NFS server, using ->get_parent() method to
obtain parent directory.

Well... this is probably the smallest problem with hard-linked
directories, though.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at