From owner-freebsd-questions Mon Jun 26 22:37:09 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA07149 for questions-outgoing; Mon, 26 Jun 1995 22:37:09 -0700 Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id WAA07143 for ; Mon, 26 Jun 1995 22:37:05 -0700 Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.9/8.6.9) id PAA17528; Tue, 27 Jun 1995 15:07:19 +0930 From: Michael Smith Message-Id: <199506270537.PAA17528@genesis.atrad.adelaide.edu.au> Subject: Re: Any way to get hard links to directories? To: wsantee@wsantee.oz.net (Wes Santee) Date: Tue, 27 Jun 1995 15:07:19 +0930 (CST) Cc: freebsd-questions@freebsd.org In-Reply-To: <199506270455.VAA05388@wsantee.oz.net> from "Wes Santee" at Jun 26, 95 09:55:31 pm Content-Type: text Content-Length: 1262 Sender: questions-owner@freebsd.org Precedence: bulk Wes Santee stands accused of saying: > Okay, I know that you aren't supposed to be able to create a hard > link to a directory. In the ln(1) man page, however, it states that > "Hard links may not normally refer to directories and may not span > filesystems." > > Does that mean there is some way to create hard links to directories > in a 'non-normal' way? If so, are there consequences? Yes. FSCK will spew at you, and may digest your filesystem. I haven't tried this under 2.0.5, so the situation may have changed. There is _never_ a good reason to hard-link directories. Think about what would happen to a recursive-descent algorithm confronted with a directory linked to one of its parents. Having said that, as root you _can_ create a hard link to a directory. I'd do it just _after_ a backup. > ( -Wes Santee | You're never dead 'til you're ) -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] My car has "demand start" - Terry Lambert [[