Date: Fri, 30 Nov 2001 08:11:43 -0600 From: Mike Meyer <mwm@mired.org> To: "Totally Jayyness" <Jayyness@mindspring.com> Cc: <questions@freebsd.org> Subject: Re: Not using Symbolic links correctly? Message-ID: <15367.37791.137010.486401@guru.mired.org> In-Reply-To: <005901c17950$275040c0$0300a8c0@jayyness.com> References: <15365.65245.491684.81189@guru.mired.org> <006701c178ef$0736bff0$0300a8c0@jayyness.com> <15366.45817.877900.681798@guru.mired.org> <005901c17950$275040c0$0300a8c0@jayyness.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--4/tlKSu8+4 Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit [Context lost to top posting.] Totally Jayyness <Jayyness@mindspring.com> types: > Found this... don't think I can do what I want with ln > "Hard links may not normally refer to directories and may not span file > systems." > > Can I mount a mount point in a second place? No. If it says "normally", you may want to try the attached program, but it may not work either. If you're going across file systems, hard links can't be used at all. You might consider turning things around, and put the files in your chroot'ed area then make /mp3s a link to that. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. --4/tlKSu8+4 Content-Type: text/plain Content-Description: Program to make a link without sanity checking Content-Disposition: inline; filename="makelink.c" Content-Transfer-Encoding: 7bit /* C program to make a link, no excuses */ #include <stdio.h> #include <unistd.h> main(int argc, char **argv) { if (argc != 3) { fprintf(stderr, "usage: %s source dest\n", argv[0]) ; return 10 ; } if (link(argv[1], argv[2])) { perror(argv[0]) ; return 10 ; } return 0 ; } --4/tlKSu8+4-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15367.37791.137010.486401>