Age | Commit message (Collapse) | Author | |
---|---|---|---|
2002-02-13 | More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl ↵ | Artur Grabowski | |
functions in sys/compat are left. | |||
2002-02-12 | More FREF/FRELE protection. This time all users of getvnode. | Artur Grabowski | |
2002-02-12 | Fix all users of getsock to use FREF/FRELE properly. | Artur Grabowski | |
2002-02-08 | - Rename FILE_{,UN}USE to FREF and FRELE. USE is a bad verb and we don't have | Artur Grabowski | |
the same semantics as NetBSD anyway, so it's good to avoid name collissions. - Always fdremove before freeing the file, not the other way around. - falloc FREFs the file. - have FILE_SET_MATURE FRELE the file (It feels like a good ortogonality to falloc FREFing the file). - Use closef as much as possible instead of ffree in error paths of falloc:ing functions. closef is much more careful with the fd and can deal with the fd being forcibly closed by dup2. Also try to avoid manually calling *fo_close when closef can do that for us (this makes some error paths mroe complicated (sys_socketpair and sys_pipe), but others become simpler (sys_open)). | |||
2002-02-05 | Add counting of temporary references to a struct file (as opposed to references | Artur Grabowski | |
from fd tables and other long-lived objects). This is to avoid races between using a file descriptor and having another process (with shared fd table) close it. We use a separate refence count so that error values from close(2) will be correctly returned to the caller of close(2). The macros for those reference counts are FILE_USE(fp) and FILE_UNUSE(fp). Make sure that the cases where closef can be called "incorrectly" (most notably dup2(2)) are handled. Right now only callers of closef (and {,p}read) use FILE_{,UN}USE correctly, more fixes incoming soon. | |||
2002-02-02 | Be more consistent about using fd_getfile where it matters. | Artur Grabowski | |
2002-01-30 | Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ ok | Thomas Nordin | |
2002-01-30 | Add proc0 to the PIDHASH table. art@ ok | Thomas Nordin | |
2002-01-20 | When a process is exec:ing mark it with a flag. Check that flag in ptrace | Artur Grabowski | |
and procfs (and possibly more places in the future) and simply refuse to fiddle with the execing process. This is an ugly hack, but this far we haven't been successful in creating a race-free exec. | |||
2001-12-19 | UBC was a disaster. It worked very good when it worked, but on some | Artur Grabowski | |
machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience. | |||
2001-12-11 | Fix typo, noticed by Richard Lowe | Todd C. Miller | |
2001-12-10 | Big cleanup inspired by NetBSD with some parts of the code from NetBSD. | Artur Grabowski | |
- get rid of VOP_BALLOCN and VOP_SIZE - move the generic getpages and putpages into miscfs/genfs - create a genfs_node which must be added to the top of the private portion of each vnode for filsystems that want to use genfs_{get,put}pages - rename genfs_mmap to vop_generic_mmap | |||
2001-12-04 | Readd VOP_MMAP, will be used soon. Right now it's just a question to | Artur Grabowski | |
the filesystem if we're allowed to mmap the file. | |||
2001-11-21 | Use vfs_mount_foreach_vnode | Constantine Sapuntzakis | |
2001-11-15 | uvm_vnp_setsize | Artur Grabowski | |
2001-11-15 | lockmgr instead of rolling our own. | Artur Grabowski | |
2001-11-06 | Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary. | Miod Vallat | |
(Look ma, I might have broken the tree) | |||
2001-11-06 | redundant includes. | Artur Grabowski | |
2001-10-26 | - every new fd created by falloc() is marked as larval and should not be used | Artur Grabowski | |
any anyone. Every caller of falloc matures the fd when it's usable. - Since every lookup in the fd table must now check this flag and all of them do the same thing, move all the necessary checks into a function - fd_getfile. | |||
2001-09-19 | No need to PHOLD/PRELE here, really. | Artur Grabowski | |
2001-09-16 | Add some missing lengths checks when passing data from userland to | Todd C. Miller | |
kernel. From based on NetBSD patches. | |||
2001-09-11 | Don't include <vm/vm_kern.h> if you don't need foo_map. | Miod Vallat | |
2001-07-26 | missed this in previous symlink/mknod backout | Todd C. Miller | |
2001-07-26 | change vop_symlink and vop_mknod to return vpp (the created node) | assar | |
refed, so that the caller can actually use it. update callers and file systems that implement these vnode operations ok'd by art | |||
2001-06-27 | Remove old vm. | Artur Grabowski | |
2001-06-23 | Get rid of several unused vnode operations | Constantine Sapuntzakis | |
2001-05-24 | Garbage collect procfs_findtextvp(). | Aaron Campbell | |
2001-05-24 | Initialize p to NULL in lookup. | Artur Grabowski | |
How this could have ever worked without this is beyond me. | |||
2001-05-23 | Fix getattr and setattr. | Artur Grabowski | |
- getattr now uses fo_stat from fileops to obtain information about the fd and translates it back to vattr. - setattr now uses getvnode to the get vnode from the fd and obeys MNT_RDONLY flag. - Do proper locking on setattr. - Don't allow setattr on directories because of possible deadlocks. | |||
2001-05-16 | No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok) | Hakan Olsson | |
2001-05-15 | LIST_FOREACH instead of manually doing the same thing. | Artur Grabowski | |
2001-05-15 | Switch from homegrown locking of the hash to lockmgr. | Artur Grabowski | |
2001-05-15 | Don't keep the reference to the root vnode all the time. Treat the root vnode | Artur Grabowski | |
just like all other vnodes. This removes a lot of code, simplifies unmount (which was incorrect btw.) and removes the need for our own mount structure. | |||
2001-05-14 | gc OLD_PIPE. | Artur Grabowski | |
2001-05-14 | More generic arguments to soo_stat. | Artur Grabowski | |
2001-05-14 | More generic arguments to pipe_stat. | Artur Grabowski | |
2001-04-13 | Make PROCFS compile again on non-UVM systems, deraadt@ ok | Miod Vallat | |
2001-04-09 | Add emulation of Linux features to procfs; mostly from NetBSD. ok deraadt@ | Thorsten Lockert | |
2001-03-15 | Use buf_start | Constantine Sapuntzakis | |
2001-03-01 | port kqueue changes from freebsd, plus all required openbsd glue. | Niels Provos | |
okay deraadt@, millert@ from jlemon@freebsd.org: extend kqueue down to the device layer, backwards compatible approach suggested by peter@freebsd.org | |||
2001-02-24 | Cleanup of vnode interface continues. Get rid of VHOLD/HOLDRELE. | Constantine Sapuntzakis | |
Change VM/UVM to use buf_replacevnode to change the vnode associated with a buffer. Addition v_bioflag for flags written in interrupt handlers (and read at splbio, though not strictly necessary) Add vwaitforio and use it instead of a while loop of v_numoutput. Fix race conditions when manipulation vnode free list | |||
2001-02-23 | Remove the clustering fields from the vnodes and place them in the | Constantine Sapuntzakis | |
file system inode instead | |||
2001-02-20 | use void * consistently in vfs_mount and sys_mount. ok @art | assar | |
2000-12-18 | calculate length and allocate buffer for status. work by deraadt@ and me | Niels Provos | |
2000-11-16 | support kernel event queues, from FreeBSD by Jonathan Lemon, | Niels Provos | |
okay art@, millert@ | |||
2000-11-15 | deal with stupid legacy applications that open a fifo O_RDWR. okay millert@ | Niels Provos | |
2000-08-15 | NUL not NULL; noted by Theo. | jasoni | |
2000-08-15 | make procfs compile on non-uvm systems | Eric Jackson | |
2000-08-12 | update sample directory listing. | jasoni | |
2000-08-12 | document cmdline. | jasoni | |