[[email protected]: Re: multiple link]
Thanks, I will check the archives. I looked into stat.c stat.h fs.h and it seems that inodes can only keep one link information (or maybe I'm wrong).
I am trying to set up a cluster and looking for a _very_ simple scaleable distributed filesystem solution (the opengfs, lustre patches didn't work).
Thanks,
Indraneel
Quoted 20 lines · On Mon, Sep 29, 2003 at 01:57:16AM -0400, [email protected] wrote:
Quoted 5 lines · Indraneel Majumdar
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/lndoes 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....