Re: Should hard links to directories work?

Ross Younger <[email protected]>
Newsgroups gmane.os.ecos.devel
Message-ID <[email protected]>
sandeep wrote:
> Before we discuss it further, where/how do you think you will use directory hardlinking ...

I don't have a use for it :-) - I only ask as I'm integrating the YAFFS
filesystem (see discussion elsewhere on these lists...) and thought of the
question while writing test cases.

FWIW, the only time I've ever come across directory hardlinks being useful
is in a chroot on a standard Unix system where it's sometimes a good idea to
nobble '..' (usually to be the same as '.') to preclude one of the standard
gaol-escape tricks.

> ... if it were available for normal user?

Remember that eCos has no concept of users. Everything runs in the kernel -
everything is privileged, arguably higher than the 'root' user of the
standard Unix model.


Ross

-- 
Embedded Software Engineer, eCosCentric Limited.
Barnwell House, Barnwell Drive, Cambridge CB5 8UU, UK.
Registered in England no. 4422071.                  www.ecoscentric.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.