From owner-freebsd-questions Thu Aug 8 20: 5: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B60037B400 for ; Thu, 8 Aug 2002 20:05:02 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8C6843E6A for ; Thu, 8 Aug 2002 20:05:00 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id EA1C481679; Fri, 9 Aug 2002 12:34:56 +0930 (CST) Date: Fri, 9 Aug 2002 12:34:56 +0930 From: Greg 'groggy' Lehey To: "Brian T. Schellenberger" Cc: Peter Leftwich , Roman Neuhauser , Jerry McAllister , Matthew Seaman , Jeff Jirsa , John Bleichert , FreeBSD LIST Subject: Re: Links (was: Is simplicity despised? WAS: Message-ID: <20020809030456.GJ39322@wantadilla.lemis.com> References: <20020808211101.G85736-100000@earl-grey.cloud9.net> <200208082254.22349.bts@babbleon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208082254.22349.bts@babbleon.org> User-Agent: Mutt/1.3.99i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday, 8 August 2002 at 22:54:22 -0400, Brian T. Schellenberger wrote: > On Thursday 08 August 2002 09:12 pm, Peter Leftwich wrote: >> On Thu, 8 Aug 2002, Roman Neuhauser wrote: >>> No, less is not hardlinked to more, nor is more hardlinked to less. >>> They're two names for the same file. >>> >>> So... Yes, you're right: less is really more. But at the same time, >>> more is less. >> >> This thread leaves one craving simplicity -- anyway, a question. >> >> So can you delete one and not have both disappear? I think it would be >> very quirky and perhaps rude of FreeBSD if a user did an `rm more` and less >> went with it! > > No, of course not. When you delete more, then usage count of the inode goes > from 2 to 1. If you delete less as well, then the disk space will actually > be freed. Unless it's open. In the kernel copy of an open inode, the link count effectively gets incremented by the number of opens. You don't see this with ls. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message