*BSD News Article 17991


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!xlink.net!math.fu-berlin.de!irz401!uriah!not-for-mail
From: j@bonnie.tcd-dresden.de (J Wunsch)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Hard Links Between Directories
Date: 5 Jul 1993 18:00:07 +0200
Organization: Textil Computer Design GmbH, Dresden, Germany
Lines: 19
Message-ID: <219j67INNa8u@bonnie.tcd-dresden.de>
References: <1693180.80035.807@status.gen.nz> <1993Jul2.081008.19247@arb-phys.uni-dortmund.de>
NNTP-Posting-Host: bonnie.tcd-dresden.de
Keywords: Links

In article <1993Jul2.081008.19247@arb-phys.uni-dortmund.de> wb@arb-phys.uni-dortmund.de (Wilhelm B. Kloke) writes:
>You probably don't really want to have hard links between directories.
>This will make the file structure not tree-like any more. Programs like
>find, fsck, du, tar, which -normally- exploit the tree structure are going to
>lose their function.

In fact, i've also tried it. (The -f option for ln lets you force it.)
After doing so, i had to create an own utility (like SVR's unlink(1))
to remove them since they're *totally useless*. Unfortunately, though
there's an undocumented -f in ln(1), there's no comparable option
in rm :-((
So: you got it, can't use it, now see how to get rid of them:-)
[Btw., if you don't believe it, try the ln -f, put some file beneath one
of the double-linked dir's, and then attempt to rm -f them. You're stuck.]
-- 
in real life: J"org Wunsch |   )  o o  | primary: joerg_wunsch@tcd-dresden.de
above 1.8 MHz:   DL 8 DTL  |    )  |   | private: joerg_wunsch@uriah.sax.de
                           | . * ) ==  |
          ``An elephant is a mouse with an operating system.''