From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12434 invoked by alias); 20 May 2009 14:47:58 -0000 Received: (qmail 12316 invoked by uid 22791); 20 May 2009 14:47:57 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 May 2009 14:47:52 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 030A23B40057; Wed, 20 May 2009 15:47:50 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0wUafgyxHPCI; Wed, 20 May 2009 15:47:48 +0100 (BST) Message-ID: <4A14180C.9060801@ecoscentric.com> Date: Wed, 20 May 2009 14:47:00 -0000 From: Ross Younger User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: sandeep CC: "ecos-devel@ecos.sourceware.org" Subject: Re: Should hard links to directories work? References: <442798.53859.qm@web112517.mail.gq1.yahoo.com> In-Reply-To: <442798.53859.qm@web112517.mail.gq1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-05/txt/msg00056.txt.bz2 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