summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/kernfs/kernfs_vnops.c
Commit message (Collapse)AuthorAgeFilesLines
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* This is the kernel Lite/2 commit. There are some requisite userlanddyson1997-02-101-208/+189
| | | | | | | | | | | | | | | changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Eliminated nested include of <sys/unistd.h> in <sys/file.h> in the kernel.bde1996-09-031-2/+3
| | | | | | | Include it directly in the few places where it is used. Reduced some #includes of <sys/file.h> to #includes of <sys/fcntl.h> or nothing.
* Comment out rootdev & rrootdev so a ls -l doesn't panic the machine.phk1996-07-031-2/+2
|
* Added prototypes.bde1995-12-031-1/+20
| | | | Removed some unnecessary #includes.
* Get rid of hostnamelen variable.phk1995-11-141-3/+3
|
* Introduced a type `vop_t' for vnode operation functions and usedbde1995-11-091-44/+44
| | | | | | | | | | | | | | | it 1138 times (:-() in casts and a few more times in declarations. This change is null for the i386. The type has to be `typedef int vop_t(void *)' and not `typedef int vop_t()' because `gcc -Wstrict-prototypes' warns about the latter. Since vnode op functions are called with args of different (struct pointer) types, neither of these function types is any use for type checking of the arg, so it would be preferable not to use the complete function type, especially since using the complete type requires adding 1138 casts to avoid compiler warnings and another 40+ casts to reverse the function pointer conversions before calling the functions.
* Second batch of cleanup changes.phk1995-10-291-26/+16
| | | | | This time mostly making a lot of things static and some unused variables here and there.
* Fix some incorrect comments that make reference to /dev/fd.mpp1995-07-311-4/+4
|
* Fix various kernfs file system problems, which can result inmpp1995-07-311-42/+61
| | | | | | | | | | | | | | umountable file systems, hung processes, or system panics: - Some operations could return without decrementing the vnode reference count. - Some operations could leave the vnode locked. - Generalize the /kern/rootdev & rrootdev files so that they are no longer special cased in kernfs_lookup(). Note: procfs, fdescfs, and most of the other miscfs/* file systems also suffer from the same type of problems and I will work on fixing them one at a time.
* Fixed panic that resulted from mmaping files in kernfs and procfs. Adg1995-05-251-4/+2
| | | | | | | | | | regular user could panic the machine with a simple "tail /proc/curproc/mem" command. The problem was twofold: both kernfs and procfs didn't fill in the mnt_stat statfs struct (which would later lead to an integer divide fault in the vnode pager), and kernfs bogusly paniced if a bmap was attempted. Reviewed by: John Dyson
* From: Michael Reifenberger <root@rz-wb.fh-sw.de>jkh1994-11-151-1/+16
| | | | | | I added a bootfile entry to /kern so every program could examine the Path and name of the kernel. Submitted by: mr
* GCC cleanup.phk1994-10-021-2/+2
| | | | | | Reviewed by: Submitted by: Obtained from:
* Implemented loadable VFS modules, and made most existing filesystemswollman1994-09-211-1/+3
| | | | loadable. (NFS is a notable exception.)
* Fix up some sloppy coding practices:wollman1994-08-181-2/+6
| | | | | | | | | | | | - Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter.
* Added $Id$dg1994-08-021-0/+1
|
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-251-0/+13
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+759
OpenPOWER on IntegriCloud