summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/kernfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Better and simpler check for negative offset; from Christer Obergmillert2004-11-181-3/+3
|
* Make sure we don't call kernfs_xread() with a negative offset.millert2004-09-011-3/+7
| | | | Problem found by Christer Oberg. OK henning@, deraadt@
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-2/+2
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* fix ncpu vs ncpus glitch, spotted by Sven Dehmlowderaadt2004-06-121-3/+3
|
* remove more caddr_ttedu2004-05-201-4/+4
|
* missing ar; form Alf Schlichting <leopold-bloom@foni.net>mickey2003-12-091-2/+2
|
* set boottime's time to boottime, handy for find. requested by markus.tedu2003-11-151-4/+8
| | | | | don't bother with microtime. time should be more than enough precision. from netbsd.
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-232-4/+18
| | | | | | | now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
* constify vfsops; tedu@ okmickey2003-08-142-4/+4
|
* constify constant targetsmickey2003-08-113-21/+21
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-023-18/+6
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* use LK_EXCLUSIVE like all other file systems.tedu2003-05-112-4/+4
| | | | use LK_RETRY in kernfs_root(). "just in case" stuff.
* some snprintf usage from rohee.tedu2003-04-071-10/+10
|
* Ensure that all files in /kern end with a newline (machine, model,rohee2003-03-301-2/+8
| | | | | | osrelease and ostype were not). ok tedu@
* Sigh. I comitted the wrong diff in the last vfs changes.art2003-01-311-23/+9
| | | | These are the files that were ok:ed and tested.
* File system locking fixups, mostly from NetBSD:art2003-01-312-24/+41
| | | | | | | | | | | | | | | - cache_lookup move common code from various fs's here always return with vnode and parent locked adjust return codes - PDIRUNLOCK - new flag set if lookup couldn't lock parent vnode - kernfs and procfs lock vnode in get_root don't unlock (again) in kernfs_freevp fix memory leak in procfs From tedu@stanford.edu deraadt@ and various other ok
* Remove more '\n's from panic() statements. Both trailing and leading.krw2002-10-122-5/+5
| | | | Last bits of diff generated by Chris Kuethe.
* remove ambiguity in version,ostype,osversion,osrelease and their constanity, they are and declarre 'em accordingly also removing private externies of thosemickey2002-03-141-7/+6
|
* First round of __P removal in sysmillert2002-03-143-48/+48
|
* Cache vnodes, don't hold on to the root vnode, some cleanups, handleart2002-02-173-139/+204
| | | | | | physmem and usermem correctly. kernel/2404 from peterw@ifost.org.au with some small fixups from me.
* Fix typo, noticed by Richard Lowemillert2001-12-111-2/+2
|
* Readd VOP_MMAP, will be used soon. Right now it's just a question toart2001-12-041-2/+2
| | | | the filesystem if we're allowed to mmap the file.
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-062-4/+2
| | | | (Look ma, I might have broken the tree)
* Remove old vm.art2001-06-272-24/+2
|
* Get rid of several unused vnode operationscsapuntz2001-06-231-8/+1
|
* use void * consistently in vfs_mount and sys_mount. ok @artassar2001-02-201-3/+3
|
* Get rid of leading NULs in /kern/msgbuf. If the msgbuf modified in betweenmillert2000-03-131-7/+14
| | | | | reads at just the right time is is possible to get duplicate output but in practice this is extremely rare. Joint effort with Theo.
* enlarge msgbuf, somewhat line netbsd didderaadt2000-02-221-7/+19
|
* update to use new checkexp vfs operationassar2000-02-072-4/+7
|
* Fix to use enoioctlcsapuntz1999-11-101-2/+2
|
* New struct statfs with mount options. NOTE: this replaces statfs(2),millert1999-05-311-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fstatfs(2), and getfsstat(2) so you will need to build a new kernel before doing a "make build" or you will get "unimplemented syscall" errors. The new struct statfs has the following featuires: o Has a u_int32_t flags field--now softdep can have a real flag. o Uses u_int32_t instead of longs (nicer on the alpha). Note: the man page used to lie about setting invalid/unused fields to -1. SunOS does that but our code never has. o Gets rid of f_type completely. It hasn't been used since NetBSD 0.9 and having it there but always 0 is confusing. It is conceivable that this may cause some old code to not compile but that is better than silently breaking. o Adds a mount_info union that contains the FSTYPE_args struct. This means that "mount" can now tell you all the options a filesystem was mounted with. This is especially nice for NFS. Other changes: o The linux statfs emulation didn't convert between BSD fs names and linux f_type numbers. Now it does, since the BSD f_type number is useless to linux apps (and has been removed anyway) o FreeBSD's struct statfs is different from our (both old and new) and thus needs conversion. Previously, the OpenBSD syscalls were used without any real translation. o mount(8) will now show extra info when invoked with no arguments. However, to see *everything* you need to use the -v (verbose) flag.
* cnt is called uvmexp in uvm and the members have different namesart1999-02-262-4/+30
|
* kernfs_sync needs to be nullop, not eopnotsupp for unmount to workmillert1998-12-281-2/+2
| | | | w/o MNT_FORCE.
* in kernfs_statfs set f_flags to 0millert1998-12-241-1/+2
|
* Rename vop_revoke, vn_bwrite, vop_noislocked, vop_nolock, vop_nounlockcsapuntz1998-08-061-21/+6
| | | | | | | | | | | | to be vop_generic_revoke, vop_generic_bwrite, vop_generic_islocked, vop_generic_lock and vop_generic_unlock. Create vop_generic_abortop and propogate change to all file systems. Fix PR/371. Get rid of locking in NULLFS (should be mostly unnecessary now except for forced unmounts).
* return EOPNOTSUPP for chflags() changes; peter@freebsdderaadt1998-06-111-1/+11
|
* Updates to match type changes in syscall tablestholo1998-02-081-3/+3
|
* Updates for VFS Lite 2 + soft update.csapuntz1997-11-063-127/+59
|
* back out vfs lite2 till after 2.2deraadt1997-10-063-59/+127
|
* VFS Lite2 Changescsapuntz1997-10-063-127/+59
|
* Fix {KERNFS,NULLFS,UMAPFS,UNION}_DIAGNOSTIC kernel compilation errors.millert1997-09-112-12/+12
| | | | From Alan Barrett <apb@iafrica.com> with some changes.
* struct definitions in .h files and instances in .c file please.kstailey1997-04-262-24/+27
| | | | | | | | | | | | Vic Able: > While <miscfs/kernfs/kernfs.h> has a kernfs_node, it depends > on a structure that's defined in <miscfs/kernfs/kernfs_vnops.c>. > Oops! That's not very social. :-) [I built a new kernel fine, but don't have time to run "make build" it is my intuition that this will not have any bad effects, but I didn't test. Just back it out if it hurts you and I'll try again.]
* Make kern.osrevision (sysctl) and /kern/osrev report value ofmillert1997-03-271-2/+2
| | | | OpenBSD define, not BSD which is a bit more useful.
* IPSEC package by John Ioannidis and Angelos D. Keromytis. Written inderaadt1997-02-201-2/+15
| | | | Greece. From ftp.funet.fi:/pub/unix/security/net/ip/BSDipsec.tar.gz
* fixed warning:kstailey1997-01-151-2/+2
| | | | kernfs_vnops.c:305: warning: long unsigned int format, u_int arg (arg 3)
* and the same for the trunkmickey1996-10-271-2/+2
|
* add more kernel variables. calculate used/free physmem and vnodes.mickey1996-06-202-9/+55
|
* no sys/cpu.hderaadt1996-05-021-3/+2
|
* partial sync with netbsd 960418, more to comederaadt1996-04-211-4/+4
|
* From NetBSD: update to 960217 sourcesniklas1996-02-273-165/+261
|