Date: Sun, 23 Feb 2014 00:06:43 +0100 From: Willem Jan Withagen <wjw@digiware.nl> To: Perry Hutchison <perryh@pluto.rain.com>, jordan.hubbard@gmail.com Cc: freebsd-filesystems@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Thoughts on Multi-Symlink Concept Message-ID: <53092D83.6050603@digiware.nl> In-Reply-To: <530049a1.XXZ1PjZFgRyCu9X6%perryh@pluto.rain.com> References: <CAO2cuEMC==HstC4VkkiFpHyo6LA_xyCjYKvCEECXneVLNnZpZg@mail.gmail.com> <A31B3F88-861F-459B-AD67-F146D5514594@mail.turbofuzz.com> <530049a1.XXZ1PjZFgRyCu9X6%perryh@pluto.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16-2-2014 6:16, Perry Hutchison wrote: > Jordan Hubbard <jordan.hubbard@gmail.com> wrote: > >> Even variant symlinks (/bin -> /${ARCH}/bin), which can expand >> differently depending on the user context, have clearly >> understandable semantics - you know that the symlink is going >> to expand to exactly one file no matter what ARCH is set to. > > s/file/pathname/ > > Depending on what ARCH is set to, the expanision may or may not > point to any actual file (or directory, or ...) Yes, please can we get these .... Apollo Domain systems had those, and they were great. Set SYSTYPE to BSD4 and get the BSD tree and all that came with it, or SYSV to get the other stuff. Would indeed work great for things like /bin or even /usr/local/etc -> /${HOST}/usr/local/etc I was running a special patch version 2.2 at one time, that had variant replacement in the lookup-cache routines. But I never was able to figure out a handy way to get the info back into the kernel. So I gave up. One would need to get at the user environment of the process, and then parse and scrutinize the ENV every time you need to use a replacement. So probably libc is the place to put it, but then you get into trouble again when somebody uses the not standard libc... Also got a lot of flack from people suggesting it would create security problems.... (I beg to differ) But I would really like the timewarp back to 1985. --WjW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53092D83.6050603>