comp.lang.ada
 help / color / mirror / Atom feed
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: Programming Language Survey
Date: Mon, 19 May 2003 17:49:46 -0400
Date: 2003-05-19T17:49:46-04:00	[thread overview]
Message-ID: <1053380986.773810@master.nyc.kbcfp.com> (raw)
In-Reply-To: <slrnbcidec.7sv.randhol+abuse@kiuk0152.chembio.ntnu.no>

Preben Randhol wrote:
> What are softlinks?

They're UNIXy things. In UNIX, the unique designator for a
file is called an "inode" and represents a numeric index
into a data structure containing the files of a filesystem.
Directories consist of pairs of inode numbers and names.
Thus, it's perfectly possible for the same inode, and thus
its file, to be known by many names. These many names of a
file are called hard links. (The "hard" is a back formation
which came about after soft links were invented, like "analog"
watches.)

Because hard links represent a pointer into the filesystem,
you cannot make hard links point to files in different
filesystems. This became an increasing handicap as the
number of filesystems on a computer grew. So soft links were
invented. A soft link is simply a file which holds the name
of another file, and is specially marked as being such.
When someone attempts to open a named soft link, the file
to which it links is opened instead.

Soft links cause much more complexity than hard links. It's
possible for the target of a soft link to be missing, or to
create circular chains of links. They're subject to race
conditions, and opening long chains of them can be slow.




  parent reply	other threads:[~2003-05-19 21:49 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-16 19:20 Programming Language Survey Yaofei Chen
2003-05-16 19:55 ` Larry Kilgallen
2003-05-16 20:05   ` Stephane Richard
2003-05-16 20:21     ` Larry Kilgallen
2003-05-17  9:49     ` Preben Randhol
2003-05-17 12:27       ` Larry Kilgallen
2003-05-19 15:16   ` Georg Bauhaus
2003-05-19 18:59     ` Larry Kilgallen
2003-05-19 19:03       ` Preben Randhol
2003-05-19 19:46         ` Wesley Groleau
2003-05-19 19:50           ` Preben Randhol
2003-05-19 20:39             ` Larry Kilgallen
2003-05-19 19:51           ` Preben Randhol
2003-05-19 20:40             ` David C. Hoos
2003-05-19 22:14               ` Preben Randhol
2003-05-20  3:59                 ` Wesley Groleau
2003-05-20 11:57                   ` Preben Randhol
2003-05-19 21:49             ` Hyman Rosen [this message]
2003-05-19 22:18               ` Preben Randhol
2003-05-20  2:43           ` Yaofei Chen
2003-05-20  3:04             ` Larry Kilgallen
2003-05-20  4:02             ` Wesley Groleau
2003-05-20 11:55               ` Preben Randhol
2003-05-20 10:49           ` Samuel Tardieu
2003-05-20  0:33       ` Georg Bauhaus
     [not found]       ` <f5sop-4e3.ln1@beastie.ix.netcom.com>
2003-05-20 11:30         ` Larry Kilgallen
2003-05-16 20:44 ` Samuel Tardieu
2003-05-17 17:57   ` Yaofei Chen
2003-05-19 15:05   ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox