DragonFly BSD
DragonFly commits List (threaded) for 2003-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/sys varsym.h src/sys/kern kern_varsym.c vfs_lookup.c

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 9 Nov 2003 12:29:59 -0800 (PST)

dillon      2003/11/09 12:29:59 PST

DragonFly src repository

  Modified files:
    sys/sys              varsym.h 
    sys/kern             kern_varsym.c vfs_lookup.c 
  Implement variant symlinks!  In order to use variant symlinks you must first
  enable them with the vfs.varsym_enable sysctl.  Variant symlinks are disabled
  by default (the default will change in the future).  WORK TODO: system-wide
  and per-user variable sets need to be per-jail, and a method of listing
  existing variables is needed.
  The 'varsym' utility may be used to set and retrieve system-wide or per-user
  variables regardless of whether variant symlinks are enabled or not.  Note
  that per-process variables may also be set by a program (e.g. like a csh
  builtin or explicitly by a program).
  When enabled, variable replacement will occur on softlinks which are
  resolved as part of path lookup.  ${VARNAME} patterns within the softlink
  will be replaced by the contents of the variable.  If a variable does not
  exist, no replacement occurs.  ENAMETOOLONG will occur if a post-replacement
  softlink pattern exceeds MAXPATHLEN (1024 bytes).
  Note that variable names are case sensitive.  The per-process varsym list
  is checked first, then the per-user list, then the system-wide list.
  Revision  Changes    Path
  1.2       +1 -0      src/sys/sys/varsym.h
  1.2       +57 -0     src/sys/kern/kern_varsym.c
  1.9       +17 -1     src/sys/kern/vfs_lookup.c


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]