LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] How to copy some files

[ILUG] How to copy some files

Aidan Kehoe kehoea at parhasard.net
Sat Jul 20 20:24:50 IST 2002


 Ar an 20u la de mi 7, scriobh kevin lyda :

 > actaully i think soft links were invented because you can't hard link
 > directories. 

But you could hard link directories, back when soft links were
being invented, AFAIK. 

 > apparently some systems limited soft links to the same device but
 > gave up after a while.  

Why?

 > sadly, i can't find a link that supports that...
 > 
 > > classic Berkeley hackery (cf. gethostbyname, h_errno, and the
 > > resultant problems implementing mt-safe interfaces); they do what they
 > > were intended for, but break fairly easily, in this case when the
 > 
 > soft-links are like one way hyperlinks (ala the www).  the target does
 > not inform those that target it when it moves or gets deleted.

A better way of doing it would be a) have global unique filesystem
identifiers for every FS created (such that the chance of two of them
clashing is miniscule; 64 bits creatively used would do it, I'd say),
and b) implement the target info for the soft link as a {FSID, inode}
pair; the OS can work out if the thing linked to is now on a different
mount point, or has been moved. (HFS fans, is that what's done? Or are
aliases implemented differently?)

 > and in fairness to berkeley, their socket api is very portably across
 > network protocols.  i've seen appletalk code written with the socket api.
 > and ipv6 code is written with the socket api.  the few things that
 > return static buffers or are not protocol independant are truly annoying,
 > but they did get a lot of that right.

Yeah. Berkeley made Unix into the world-beater it was in the eighties;
FFS, quotas (well, some guy in Australia, but it was released with
BSD), multiple network protocols, multiple terminal support and more,
and they deserve recognition for it. That doesn't mean what they did
was perfect; some of it wasn't *that* well designed, but it was there,
and it was free from restrictive licences. :-) . 

-- 
I'm not a pheasant plucker / I'm a pheasant plucker's son.
I'm just a'plucking pheasants / 'Til the pheasant plucker comes.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell