This is the mail archive of the
mailing list for the eCos project.
Re: Should hard links to directories work?
- From: Rutger Hofman <rutger at cs dot vu dot nl>
- To: sandeep <shimple0 at yahoo dot com>
- Cc: "ecos-devel at ecos dot sourceware dot org" <ecos-devel at ecos dot sourceware dot org>, Ross Younger <wry at ecoscentric dot com>
- Date: Wed, 20 May 2009 18:05:14 +0200
- Subject: Re: Should hard links to directories work?
- References: <firstname.lastname@example.org>
Younger ;) people often have interesting questions and are responsible for fresh insights.
The Unix world traditionally shuns such things as an abomination.
The eCos docs are quiet on the subject, as is the code in
ramfs and jffs2.
Should they work? Does anybody use them?
Before we discuss it further, where/how do you think you will use directory hardlinking, if it were available for normal user?
FWIW, the Amoeba distributed OS had hard links to directories. It had no
soft links at all. It introduces loops in the directory 'hierarchy'
(because of the loops, there is no hierarchy any more), so e.g. find(1)
had to be armed with loop detection.