summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
AgeCommit message (Collapse)Author
2009-07-09Remove the VREF() macro and replaces all instances with a call to verf(),Thordur I. Bjornsson
which is exactly what the macro does. Macro's that are nothing more then: #define FUNCTION(arg) function(arg) are almost always pointless and should go away. OK blambert@ Agreed by many.
2009-06-04Put readv/writev changes back in, as they no longer hang ckuethe's ntpd.Bret Lambert
Special thanks to ckuethe's ntpd for noticing the problem. ok deraadt@
2009-06-03Revert readv/writev changes, as they trigger an apparent file descriptorBret Lambert
deadlock for ckuethe@ "if you have to revert, you have to revert" deraadt@
2009-06-02dofile{read,write} are essentially identical to their iovec equivalents,Bret Lambert
dofile{read,write}v, so remove the former and rework it so that everything uses the latter "nice" deraadt@ "reads ok" oga@ spastic 'OMG Ponies!!!!' weingart@
2008-11-11make sure that any messing we do with a process's directories happens ↵Ted Unangst
atomically and not after sleeping. ok deraadt pedro
2008-11-01change vrele() to return an int. if it returns 0, it can gaurantee thatTheo de Raadt
it did not sleep. this is used to avoid checkdirs() to avoid having to restart the allproc walk every time through idea from tedu, ok thib pedro
2008-10-31checkdirs() walks allproc and calls sleeping functions if directories haveTheo de Raadt
to be snapped. Change it so that everytime it sleeps it restarts from the top of the list. ok art
2008-08-08remove an if notyet block from sys_fstatfs(), that will never be needed,Thordur I. Bjornsson
softupdates are reported too statfs via other means. missed this block in in rev1.148 where the same block was removed from sys_statfs().
2008-07-28remove an #if noyet block that will never be needed.Thordur I. Bjornsson
softupdates are reported too statfs via the mount point flags or the mount_info part of statfs; ok pedro@
2008-06-13Delete vfs_bufstats() leftovers and unbreak compile with -DDEBUGRainer Giedat
Ok reyk@, "kill kill kill" thib@
2008-05-22Use LIST_FOREACH() instead of handrolling.Thordur I. Bjornsson
From: Pierre Riteau pierre.riteau_att_gmail.com OK miod@
2008-01-22Fix a double VOP_UNLOCK() that was introduced into the error pathTodd C. Miller
in rev 1.141. From Christian Ehrhardt and Pedro Martelletto. OK hshoexer@ miod@
2007-11-28a few more places where getmicrotime is good enough. ok miodTed Unangst
2007-09-07Use M_ZERO in a few more places to shave bytes from the kernel.Artur Grabowski
eyeballed and ok dlg@
2007-08-30Fix lock ordering problems when updating mount points, in someThordur I. Bjornsson
cases we could end up releasing an unlocked lock. fixes pr's 5534 and 5564, confirmed by submitters. thanks!. ok art@
2007-08-06Fix error path in sys_fhopen() if VOP_ADVLOCK fails. Spotted by aaron@Todd C. Miller
2007-06-14Forgotten hackton diff: bounds check for seek on special devicesOtto Moerbeek
with a disklabel. Original diff from pedro@; ok pedro@ deraadt@
2007-01-16Retire VOP_LEASE(); It was a bit for NQNFS and hasThordur I. Bjornsson
effectively been a no-op for quite some time now, without promise for future usage. ok pedro@ Testing by krw@ (earlier diff) and Johan Mson Lindman (tybollt@solace.miun.se)
2006-11-24When copying out struct statfs to userland, we need to zero out the fsidArtur Grabowski
field unless it's root that's asking. This far, this has been done by putting a struct statfs on the stack and modifying it. struct statfs is large. Large things on the stack are bad. Create copyout_statfs() that copies out a struct statfs to userland, does the necessary root check and gives userland what it needs withtout wasting stack space. pedro@, deraadt@ ok.
2006-06-25rename vfs_busy() flags VB_UMIGNORE/VB_UMWAIT to VB_NOWAIT/VB_WAITNikolay Sturm
requested by and ok pedro
2006-06-14move vfs_busy() to rwlocks and properly hide the locking api from vfsNikolay Sturm
ok tedu, pedro
2006-05-27remove useless error check and irritating commentNikolay Sturm
ok pedro
2006-04-30remove the simplelock argument from vfs_busy() which is currently notNikolay Sturm
used and will never be used this way in VFS requested by and ok pedro, ok krw, biorn
2006-04-19Remove unused mount list simple_lock() gooPedro Martelletto
2006-03-26do per file io accounting and show that in fstat as well; pedro@ marco@ okMichael Shalayeff
2006-01-07p_dupfd need only be -1, nothing else. but this is nothing like what aaron ↵Theo de Raadt
has coming...
2005-11-30No need for vfs_busy() and vfs_unbusy() to take a process pointerPedro Martelletto
anymore. Testing by jolan@, thanks.
2005-11-27Don't set MNT_UPDATE and MNT_RELOAD before acquiring the mount pointPedro Martelletto
lock. Fixes a race as seen on PR kern/4915. Okay miod@ and joris@, tested by krw@ and hshoexer@, thanks.
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
2005-11-08Use ANSI function declarations and deregister, no binary changePedro Martelletto
2005-07-03Extended Attributes was a piece to get to ACLs, however ACLs have notDale Rahn
been worked on, so EA is pointless. Also the code is not enabled in GENERIC so it is not being tested or maintained.
2005-06-17remove undelete syscallTodd C. Miller
2005-05-27remove some dead code.marius eriksen
ok pedro@
2005-05-27remove references of VOP_WHITEOUT from the kernel, okay millert@Pedro Martelletto
2005-05-27prepare the removal of sys_undelete(), make it a stub, okay millert@Pedro Martelletto
2005-05-26RIP stackable filesystems, ok marius@ tedu@, discussed with deraadt@Pedro Martelletto
2005-05-24when a device vnode associated with a mount point disappears, mark thePedro Martelletto
filesystem as doomed and unmount it
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-09-16check for VBAD vnodes on getvnode(). ok andreas@, tedu@ and marius@Pedro Martelletto
2004-08-05don't attempt to put processes back in a directory after unmount.Ted Unangst
it could never always work, and worse, may cause other bugs/crashes.
2004-07-22remove p arg from fdplockTed Unangst
2004-07-18return EINVAL if ftruncate(2) is passed a negative offsetAnil Madhavapeddy
ok millert@, miod@, marius@
2004-07-13Change mode_t and nlink_t from 16bit to 32bit. This allows us toTodd C. Miller
use mode_t in syscalls.master and to use mode_t in more places in the kernel. It also makes lint much more useful on kernel code. I've also added a placeholder for st_birthtime to make a UFS2 import easier at some future date. Requested by and OK deraadt@
2004-07-03if vinvalbuf() fails, unlock the vnode and release it. ok marius@Pedro Martelletto
2004-06-21First step towards more sane time handling in the kernel -- this changesThorsten Lockert
things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
2004-05-14use pool for namei pathbuf. testing ok millert@ tdeval@Ted Unangst
2004-05-10when doing user mounts, inherit the MNT_NOEXEC flag from the coveredPedro Martelletto
vnode's mount point. this makes it impossible for a user to bypass the noexec protection of a mount point by null-mounting it on top of itself. ok tedu@ millert@
2004-04-13useless caddr_t cast removal. same md5s.Ted Unangst
2004-01-06lock filedesc before manipulating. avoids some rare races.Ted Unangst
testing for quite some time by brad + otto
2003-09-01match syscallargs comments with realityHenning Brauer
from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@