The NetBSD Project

CVS log for src/sys/kern/vfs_lookup.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: netbsd-3


Revision 1.57.2.3 / (download) - annotate - [select for diffs], Fri Jan 20 20:48:41 2006 UTC (18 years, 2 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.57.2.2: +3 -119 lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Back out tickets 490, 559, and 560, which added "magic symlinks", at
the request of chs@ (thorpej@ concurs), as there is consensus that
this should be changed to a system-wide tunable, rather than a mount
option.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Thu Dec 29 01:03:56 2005 UTC (18 years, 3 months ago) by riz
Branch: netbsd-3
Changes since 1.57.2.1: +73 -43 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored)

Pull up following revision(s) (requested by thorpej in ticket #559):
	sys/kern/vfs_lookup.c: revision 1.63
A few tweaks to magic symlinks:
- Add a @{var} syntax in addition to @var.  This allows for
patterns like
@{ostype}-@{osrelease}-@{machine_arch}.
- Add a @emul variable that expands to the process's emulation name
(e.g. "netbsd", "netbsd32", "linux", etc.)

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Thu Dec 29 00:57:09 2005 UTC (18 years, 3 months ago) by riz
Branch: netbsd-3
Changes since 1.57: +89 -3 lines
Diff to previous 1.57 (colored)

Pull up following revision(s) (requested by thorpej in ticket #490):
	lib/libc/sys/mount.2: revision 1.33
	sys/sys/systm.h: revision 1.179
	sys/sys/fstypes.h: revision 1.4
	include/mntopts.h: revision 1.6
	sys/conf/newvers.sh: revision 1.41
	sys/kern/vfs_syscalls.c: revision 1.223
	sys/conf/files: revision 1.720
	sys/kern/vfs_lookup.c: revision 1.61
	share/man/man7/symlink.7: revision 1.7
	sbin/mount/mount.8: revision 1.47
	sys/kern/init_main.c: revision 1.248 via patch
	share/man/man4/options.4: revision 1.280 via patch
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

Revision 1.57 / (download) - annotate - [select for diffs], Tue Mar 8 17:29:29 2005 UTC (19 years ago) by wrstuden
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, kent-audio2-base
Branch point for: netbsd-3
Changes since 1.56: +5 -2 lines
Diff to previous 1.56 (colored)

Adjust error case handling. If the VOP_LOOKUP() call unlocked the
parent directory node, remember that.

Addresses locking/lookup issues seen in:

http://mail-index.NetBSD.org/tech-kern/2004/06/20/0019.html
http://mail-index.netbsd.org/tech-kern/2005/01/08/0000.html

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>