NetBSD/sbin/mount
thorpej 65412a2710 Implement expansion of special "magic" strings in symlinks into
system-specific values.  Submitted by Chris Demetriou in Nov 1995 (!)
in PR kern/1781, modified only slighly by me.

This is enabled on a per-mount basis with the MNT_MAGICLINKS mount
flag.  It can be enabled at mountroot() time by building the kernel
with the ROOTFS_MAGICLINKS option.

The following magic strings are supported by the implementation:

	@machine	value of MACHINE for the system
	@machine_arch	value of MACHINE_ARCH for the system
	@hostname	the system host name, as set with sethostname()
	@domainname	the system domain name, as set with setdomainname()
	@kernel_ident	the kernel config file name
	@osrelease	the releaes number of the OS
	@ostype		the name of the OS (always "NetBSD" for NetBSD)

Example usage:

	mkdir /arch/i386/bin
	mkdir /arch/sparc/bin
	ln -s /arch/@machine_arch/bin /bin
2005-06-23 00:30:28 +00:00
..
fattr.c Simplify a_uid and a_gid, and fix a_mask to actually use its argument 2005-03-03 21:15:26 +00:00
fattr.h Simplify a_uid and a_gid, and fix a_mask to actually use its argument 2005-03-03 21:15:26 +00:00
Makefile Remove special case 2004-08-19 23:02:27 +00:00
mount.8 Implement expansion of special "magic" strings in symlinks into 2005-06-23 00:30:28 +00:00
mount.c Fix core dump when doing 2005-03-18 04:24:35 +00:00
pathnames.h
vfslist.c Kill __P(), use ANSI function declarations. 2005-02-05 14:44:46 +00:00
vfslist.h