summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
1998-12-05Reinstate supposed dead codeConstantine Sapuntzakis
1998-12-05Updated vnode_if specificiationConstantine Sapuntzakis
1998-12-05Framework for generating automatic test code for locking disciplineConstantine Sapuntzakis
in DIAGNOSTIC mode. Added documentation to vfs_subr.c on locking needs of a couple calls. Improvements to the vinvalbuf patch. We need to start over after we let our pants down.
1998-12-05Dead code eliminationConstantine Sapuntzakis
1998-12-04consider limits, in fdavail(); michaels@inet.noTheo de Raadt
1998-12-04VFS-Lite2 requires stricter locking around vnode buffer queues. vinvalbufConstantine Sapuntzakis
had insufficient protection
1998-11-29indentArtur Grabowski
1998-11-20vn_lock already unlocks the simple lock. don't do that againArtur Grabowski
1998-11-18regenArtur Grabowski
1998-11-18syscalls behind #ifdef should have an #elseArtur Grabowski
1998-11-15GC unnecessary declarationArtur Grabowski
1998-11-12More soft updates fixes from Kirk McKusick.Constantine Sapuntzakis
1998-11-12Integrate latest soft updates patches for McKusick.Constantine Sapuntzakis
Integrate cleaner ffs mount code from FreeBSD. Most notably, this mount code prevents you from mounting an unclean file system read-write.
1998-11-10put text after endif into commentsArtur Grabowski
1998-10-13In vrele, vget, reinstate to following orderConstantine Sapuntzakis
- VNODE gets placed on free list - VOP_INACTIVE is called This was the original order. It was changed in an earlier patch due to a race condition in non-locking FSes (like NFS) between getnewvnode and inactive. However, the modified order had its own race conditions, so it turned out not to be a good choice.
1998-10-13More fixes for huge (>2GB) files.Constantine Sapuntzakis
1998-10-11Fix from Kirk McKusick to make sure that clustering works correctly acrossConstantine Sapuntzakis
the 2GB file boundary.
1998-10-01Fix a serious bug in extent_alloc_subregion where the subregion startFederico G. Schwindt
was ignored. This fix some problems in the pcmcia framework.
1998-09-27Only update vfs_refcount when the mount succeeds and MNT_UPDATE not set.Todd C. Miller
1998-09-24pretty up previous fixArtur Grabowski
1998-09-23use the same flags for f_flag as there were used for vn_open, otherwise ↵Artur Grabowski
vn_close will not decrease v_writecount for the vnode causing panics
1998-09-18Sync with previous commit of syscall.master that did not make it into the ↵Artur Grabowski
changelogs. (enable xfspioctl even when XFS is not defined)
1998-09-17always use xfspioctlArtur Grabowski
1998-09-16add openbsd copyright; if you have not talked to me about this already, do ↵Theo de Raadt
so now
1998-09-14allow the recvfrom (fd, NULL, 0, MSG_PEEK, ...) again, pr 584.Niels Provos
1998-08-30Cleanup.Constantine Sapuntzakis
Error diagnostics in vputonfreelist to catch violations of assumptions.
1998-08-30syncTheo de Raadt
1998-08-30cleanTheo de Raadt
1998-08-30regen with xfspioctlArtur Grabowski
1998-08-30glue for xfspioctl syscallArtur Grabowski
1998-08-30glue for xfsArtur Grabowski
1998-08-27Undo changes which were not discussed.Theo de Raadt
1998-08-27defopt NTPMichael Shalayeff
1998-08-17Make sure the file system is unbusied on error.Constantine Sapuntzakis
1998-08-17Fix turd left over from soft updates patch.Constantine Sapuntzakis
MNT_LAZY is not a bit flag.
1998-08-08Document the locking discipline a bit betterConstantine Sapuntzakis
1998-08-07Fix portal FS & PR #556Constantine Sapuntzakis
Basically, if file system consumes the slashes at the end of a component, don't require that the component is a directory.
1998-08-06Rename vop_revoke, vn_bwrite, vop_noislocked, vop_nolock, vop_nounlockConstantine Sapuntzakis
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).
1998-08-05return EMSGSIZE, not EINVAL is msg_iovlen <= 0 as per XPG 4.2Todd C. Miller
When comparing against UIO_SMALLIOV/UIO_MAXIOV check for >, not >=
1998-08-05delete bogus casts of msg_iovlen to u_int since msg_iovlen is already a u_intTodd C. Miller
1998-07-28writev takes an int as param #3; theoTodd C. Miller
1998-07-28For read, write, send, sendto, recv, recvfrom return EINVAL is size arg > ↵Todd C. Miller
SSIZE_MAX. For readv, writev, sendmsg, recvmsg return EINVAL if sum of the over iov_len values overflows an ssize_t. Based on what XPG 4.2 says (though XPG is not entirely consistent here). Basically since the return value is ssize_t allowing size > SSIZE_MAX is bad since people who (incorrectly mind you) check the return value for < 0 instead of == -1 will have bad things happen to them.
1998-07-28Don't assume uio_resid can go negative when detecting oflowTodd C. Miller
1998-07-28Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned ↵Todd C. Miller
(size_t) and don't return EINVAL if it is < 0 in sys_{read,write}. Remove check for uio_resid < 0 uiomove() now that uio_resid is unsigned and brack remaining panics with #ifdef DIAGNOSTIC. vn_rdwr() must now take a size_t * as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
1998-07-13Part 1) of a fix to the "mount /mnt /mnt" problem.Constantine Sapuntzakis
Don't mount the file system in the kernel name space before calling VFS_MOUNT.
1998-07-13ftpd: sleep for an indeterminate amount for non-existant loginsTodd C. Miller
to simulate a crypt, like login does. Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.
1998-07-08open fd1 and fd2 as FREAD|FWRITETheo de Raadt
1998-07-07per XPG, gethostname() with a short buffer returns truncated data - not ENOMEM.Theo de Raadt
As permitted, make the truncated buffer be NUL terminated. make getdomainname() match.
1998-07-02I suppose debugging code can be removedTheo de Raadt
1998-07-02for sugid procs ensure that fd 0-2 are allocated slots (by pointing atTheo de Raadt
/dev/null -- future patch will use a dead vnode of some sort) to prevent reuse (ie. new allocations) of these fd which libc makes many assumptions about; problem noted by James Youngman