linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* multiple link
@ 2003-09-29  5:43 Indraneel Majumdar
  2003-09-29  5:57 ` Valdis.Kletnieks
  0 siblings, 1 reply; 2+ messages in thread
From: Indraneel Majumdar @ 2003-09-29  5:43 UTC (permalink / raw)
  To: linux-kernel

Hi,
I was wondering if it's possible to link to multiple directories at the
same time:

link <link_name> <target1> <target2> <target3>...

TIA,
Indraneel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: multiple link
  2003-09-29  5:43 multiple link Indraneel Majumdar
@ 2003-09-29  5:57 ` Valdis.Kletnieks
  0 siblings, 0 replies; 2+ messages in thread
From: Valdis.Kletnieks @ 2003-09-29  5:57 UTC (permalink / raw)
  To: Indraneel Majumdar; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

On Mon, 29 Sep 2003 00:43:22 CDT, Indraneel Majumdar <indraneel@smartpatch.net>  said:
> Hi,
> I was wondering if it's possible to link to multiple directories at the
> same time:
> 
> link <link_name> <target1> <target2> <target3>...

Not really a kernel question, but anyhow..

'man 2 link' and 'man 2 symlink' will tell you that the system calls only make
one link at a time.  What /bin/ln does is a userspace question, but Kerhnigan
and Pike would likely say the Right Answer is:

% for i in target1 target2 target3; do ln link-name $i; done

If you're asking something else, such as "How do I hardlink a directory to more
than one parent?", that *is* a kernel question, but the generic answer is "You
don't, unless you have a novel way to identify the Right Answer for 'where does
../ point?'".  Check the archives, it was beaten to death a few weeks ago....


[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-29  5:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-29  5:43 multiple link Indraneel Majumdar
2003-09-29  5:57 ` Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).