From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <13426df10807081713n22648095t7c0fa7915f4ce797@mail.gmail.com> Date: Tue, 8 Jul 2008 17:13:31 -0700 From: "ron minnich" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <4873FFCB.7040908@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <13426df10807081425i71388690y65c9eb888b443045@mail.gmail.com> <4873FFCB.7040908@gmail.com> Subject: Re: [9fans] why not Lvx for Plan 9? Topicbox-Message-UUID: e054bc00-ead3-11e9-9d60-3106f5b1d025 On Tue, Jul 8, 2008 at 5:01 PM, don bailey wrote: >> But Linux use symlinks. Is there a way to make symlinks >> on the Plan 9 filesystem and make them accessible with NFS? >> > > The kernel probably doesn't care. Symlinks are just files > whose contents are another file's path. As long as the kernel > knows how to interpret it I'm sure it'd be fine. Look at the > inverse: Plan 9 on Linux simply sees a Linux symlink as what > ever the symlink points to. For example, in your 9vx tree > do: `ln -s sparc64 v9` and run 9vx.Linux. > you would think it would work that way. You would think that the server, upon hitting a symlink, would just indirect through it and all would be well. And it's true, the kernel doesn't care. But userspace does. (http://www.linuxinsight.com/ols2006_why_userspace_sucks_or_101_really_dumb_things_your_app_shouldnt_do.html) is really right. When I first got v9fs working, 1998, I tried mounting file systems over 9p. What a mess. Things just broke in weird ways. There is code that really wants a symlink to be there and readable. I can't even recall all the places, but they're there. And things break if you mount and don't have symlinks. Which is why I put readlink etc. in my v9fs, and why the .U version is in today's linux kernels. thanks ron