Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2002 12:34:56 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        "Brian T. Schellenberger" <bts@babbleon.org>
Cc:        Peter Leftwich <Hostmaster@video2video.com>, Roman Neuhauser <neuhauser@bellavista.cz>, Jerry McAllister <jerrymc@clunix.cl.msu.edu>, Matthew Seaman <m.seaman@infracaninophile.co.uk>, Jeff Jirsa <jeff@unixconsults.com>, John Bleichert <syborg@stny.rr.com>, FreeBSD LIST <FreeBSD-Questions@freebsd.org>
Subject:   Re: Links (was: Is simplicity despised? WAS:
Message-ID:  <20020809030456.GJ39322@wantadilla.lemis.com>
In-Reply-To: <200208082254.22349.bts@babbleon.org>
References:  <20020808211101.G85736-100000@earl-grey.cloud9.net> <200208082254.22349.bts@babbleon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020809030456.GJ39322>