summaryrefslogtreecommitdiffstats
path: root/sys/miscfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove regs and fpregs pseudo-files from procfs.kettenis2005-04-164-222/+2
| | | | ok deraadt@, miod@
* calling pfind() and checking that the process doesn't exist is notpedro2005-04-011-4/+5
| | | | | | enough to allow us to call vgone() from procfs_inactive(). to avoid a deadlock, check for VXLOCK as well, in case we were called from vclean(). problem report from Sho Fujita, okay tedu@.
* Don't use seltrue() in poll ops since it requires v_rdev dereferencinggrange2004-11-291-2/+3
| | | | | | which is not possible here. Problem found and fixed by form@. ok millert@ fgsch@ pedro@
* Better and simpler check for negative offset; from Christer Obergmillert2004-11-181-3/+3
|
* typo, from Joris Vinkpedro2004-10-261-3/+3
|
* use queue.h provided macro when traversing the process list, no changespedro2004-10-191-3/+3
| | | | in generated object file. from Joris Vink.
* 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@
* remove p arg from fdplocktedu2004-07-221-2/+2
|
* explicitly initialize a variable that is used to control the vnodepedro2004-07-111-2/+2
| | | | | | | flushing loop, otherwise we could hard-lock the machine when unmounting an union filesystem ok tedu@
* make sure we pass vop_whiteout() a locked vnode, ok tedu@pedro2004-07-101-6/+11
|
* This moves access to wall and uptime variables in MI code,tholo2004-06-243-10/+6
| | | | | | | | | | | | | | 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
|
* portal_connect needs splsoftnet.tedu2004-06-061-4/+5
| | | | | using CMSG_ALIGN was wrong, userland fires in data not so aligned. if fd_getfile returns NULL, don't try to close the fd, since it's not there.
* use M_MISCFSMNT to allocate nullfs memory, ok tedu@pedro2004-06-011-4/+4
|
* fix for: !(flags && FORCECLOSE)mpech2004-05-281-2/+2
| | | | hackers@ ok
* typospedro2004-05-261-10/+10
|
* remove more caddr_ttedu2004-05-209-36/+33
|
* Properly flush instruction cache for ptrace(PT_WRTIE_{DI}, ...) on powerpckettenis2004-05-201-2/+10
| | | | | and m68k. ok drahn@, millert@
* useless caddr_t casts removal, same sha1spedro2004-05-183-13/+13
|
* fix memory leak, ok tedu@pedro2004-05-181-1/+2
|
* Fix a bug that occurs when a FIFO is opened for writing withmillert2004-05-141-3/+5
| | | | | | | | | | O_NONBLOCK set and there are no readers. Before returning ENXIO fifo_open calls VOP_CLOSE (and hence fifo_close). However, since fi_writers has not yet been incremented, when fifo_close decements fi_writers it is one too few. This could cause qmail processes to spin, consuming all the CPU. Noticed by avsm@ and henning@, test case provided by claudio@, Ok pedro@
* use pool for namei pathbuf. testing ok millert@ tdeval@tedu2004-05-141-4/+5
|
* make sure uio_offset is a safe value, with suggestions from millert@tedu2004-05-057-27/+24
| | | | | ok deraadt@ millert@ problem noticed by deprotect.com
* useless caststedu2004-04-253-12/+10
|
* if you don't want the parent, don't use WANTPARENT. from pedro martellettotedu2004-04-251-5/+2
|
* only use um_cred for lookups, fixes pr 745.tedu2004-04-251-4/+5
| | | | from pedro martelletto
* fix typos/spelling in comments, from pedro martellettojolan2004-04-251-2/+2
|
* use CMSG macros. netbsd via pedro marteletto.tedu2004-04-231-3/+3
|
* allow force umount here tootedu2004-03-031-2/+2
|
* repair status by not repeating fields. fixes pr2101 from jim razmustedu2004-03-031-5/+6
|
* support forced unmounts. pr2394 from peter wernertedu2004-03-032-4/+4
|
* save room for nul, so we can unmount later. pr2327 from peter wernertedu2004-03-031-2/+2
|
* prevent memory leak on revoke by freeing resources in a real reclaimtedu2004-03-022-4/+25
| | | | | | function. also check fifoinfo is valid before deref. ok millert@
* FIFO fixes adapted from FreeBSD:millert2004-02-241-56/+53
| | | | | | | | | | o use different wchan string for reading and writing o make O_RDWR not block forever o remove some useless casts o reorganize the normal, blocking code path (ie: O_NONBLOCK not set) o fix select/poll semantics wrt EOF. With these changes we pass the FIFO regress. OK tedu@
* fiddle with filedesc lock to prevent recursion. crash and fix confirmedtedu2004-02-211-1/+3
| | | | by marc balmer
* Don't rely on vp->v_usecount to tell when we can dispose of our resourcesmillert2004-01-281-2/+2
| | | | | | | | in fifo_close(). If the FIFO is accessed via a layed fs (e.g. nullfs), v_usecount will always be 1. Instead, just check fip->if_readers and fip->fi_writers. If either one is non-zero we know the FIFO is in use and we should not free up its resources. Adapted from FreeBSD, NetBSD has an equivalent change (but they keep a counter instead).
* missing ar; form Alf Schlichting <leopold-bloom@foni.net>mickey2003-12-091-2/+2
|
* typos from Michael Coulter;jmc2003-11-291-8/+8
|
* 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.
* typos from Jonathon Gray;jmc2003-11-081-3/+3
|
* style(9)ed panics, from tom cosgrove.tedu2003-10-242-5/+5
|
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-2312-67/+111
| | | | | | | 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
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-152-4/+4
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* constify vfsops; tedu@ okmickey2003-08-1414-28/+28
|
* constify constant targetsmickey2003-08-113-21/+21
|
* constify constant namesmickey2003-08-113-11/+10
|
* make procfs support statfs args. lossage noticed and patch tested by jolantedu2003-08-052-11/+5
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0240-241/+81
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* mapdata -> umapdata like it was beforetedu2003-05-123-8/+8
|
* fix up locking and some issues with union. derived from netbsdtedu2003-05-123-443/+595
|