Re: umsdos

Matija Nalis (mnalis@public.srce.hr)
Sun, 13 Sep 98 17:40 MET DST


On Fri, 11 Sep 1998 00:41:57 -0400 (EDT), Albert D. Cahalan <acahalan@cs.uml.edu> wrote:
>This was in the 2.1.121 patch:
>
>+/* #Specification: weakness / hard link
>+ * The strategy for hard link introduces a side effect that
>+ * may or may not be acceptable. Here is the sequence
>+ *
>+ * #
>+ * mkdir subdir1
>+ * touch subdir1/file
>+ * mkdir subdir2
>+ * ln subdir1/file subdir2/file
>+ * rm subdir1/file
>+ * rmdir subdir1
>+ * rmdir: subdir1: Directory not empty
>+ * #
>+ *
>+ * This happen because there is an invisible file (--link) in
>+ * subdir1 which is referenced by subdir2/file.
>+ *
>+ * Any idea ?
>
>
>Coda and AFS just don't allow hard links across directories.
>Cross-directory hard links break anyway across a mount point,
>so they aren't commonly needed. The existing bug is a greater
>problem than the loss of cross-directory hard links.

Yes, usually. UMSDOS is special case: it has some other special provisions
(like ability to make its own directory mangling if mounted as root
filesystem, by making linux subdirectory root, and providing alternate
access to real root, and stuff) it needs to support hardlinks in different
directories (so you can install whole linux system in one normal MS-DOS
directory).

There are few problems (like one in specification above), but they are
(hopefully) very rare.

-- 
Opinions above are GNU-copylefted.

- 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/faq.html