Source-Changes archive

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

CVS commit: src



Module Name:    src
Committed By:   thorpej
Date:           Thu Jun 23 00:30:29 UTC 2005

Modified Files:
        src/include: mntopts.h
        src/lib/libc/sys: mount.2
        src/sbin/mount: mount.8
        src/share/man/man4: options.4
        src/share/man/man7: symlink.7
        src/sys/conf: files newvers.sh
        src/sys/kern: init_main.c vfs_lookup.c vfs_syscalls.c
        src/sys/sys: fstypes.h systm.h

Log Message:
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


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/include/mntopts.h
cvs rdiff -r1.32 -r1.33 src/lib/libc/sys/mount.2
cvs rdiff -r1.46 -r1.47 src/sbin/mount/mount.8
cvs rdiff -r1.279 -r1.280 src/share/man/man4/options.4
cvs rdiff -r1.6 -r1.7 src/share/man/man7/symlink.7
cvs rdiff -r1.719 -r1.720 src/sys/conf/files
cvs rdiff -r1.40 -r1.41 src/sys/conf/newvers.sh
cvs rdiff -r1.247 -r1.248 src/sys/kern/init_main.c
cvs rdiff -r1.60 -r1.61 src/sys/kern/vfs_lookup.c
cvs rdiff -r1.222 -r1.223 src/sys/kern/vfs_syscalls.c
cvs rdiff -r1.3 -r1.4 src/sys/sys/fstypes.h
cvs rdiff -r1.178 -r1.179 src/sys/sys/systm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index