Magic symlinks redux
Christian Brueffer
brueffer at FreeBSD.org
Fri Aug 22 12:35:29 UTC 2008
On Fri, Aug 22, 2008 at 12:24:41PM +0200, Ivan Voras wrote:
> Andrey V. Elsukov wrote:
> >Luigi Rizzo wrote:
> >>interestingly simple.
> >>
> >>Question - is the process' ENV easily available in this part
> >>of the kernel, so one could in principle use environment variables
> >>as replacement strings ?
>
> >This was so long ago.. As i remember this patch is a quick port of
> >NetBSD's implementation and uses the same code.
> >
> >Also there was another implementation ported from DragonFlyBSD.
> >David Quattlebaum is working on varsyms implementation and he sent
> >fresh patch to me in this April. I attached patch.
> >And sorry, i am not working on this today..
>
> This patch is huge. As far as I can tell DragonflyBSD has a whole
> framework dedicated to varsyms, spread across a fair part of the kernel
> and with at least one special userland utility. It allows the operator
> to define his own variables that can be used in the substitutions, and I
> don't see that it predefines "special" variables like "uid" and
> "hostname". It's not necessarily a bad solution but I consider it overkill.
>
> Anyway, the syntax of DFBSD's varsyms is similar but sufficiently
> different from NetBSD's magicsyms implementation that both can coexist.
> DFBSD uses ${var} and NetBSD uses @var or @{var} so there's no
> ambiguity between them.
>
> Unless a kernel developer is interested in working the DFBSD's
> implementation in, I'll push the NetBSD's variant.
>
> _______________________________________________
> freebsd-arch at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe at freebsd.org"
>
Brooks has a varsym port in p4, see //depot/user/brooks/varsym/
- Christian
--
Christian Brueffer chris at unixpages.org brueffer at FreeBSD.org
GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc
GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20080822/1c0ea094/attachment.pgp
More information about the freebsd-arch
mailing list