summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* pseudo-device -> device in kernel config.schweikh2001-05-012-2/+2
| | | | Reviewed by: joerg, dd
* Use ufs_bmaparray() rather than VOP_BMAP() on our own vnodes.phk2001-05-011-2/+2
|
* Remove blatantly pointless call to VOP_BMAP().phk2001-05-012-9/+3
| | | | Use ufs_bmaparray() rather than VOP_BMAP() on our own vnodes.
* Remove blatantly pointless call to VOP_BMAP().phk2001-05-012-8/+2
|
* Implement vop_std{get|put}pages() and add them to the default vop[].phk2001-05-0125-381/+47
| | | | | Un-copy&paste all the VOP_{GET|PUT}PAGES() functions which do nothing but the default.
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inmarkm2001-05-01226-768/+1186
| | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations)
* Turn on preemption by default on the alpha arch. This also removes thejhb2001-05-012-6/+0
| | | | | | PREEMPTION kernel option. Not objected to by: -alpha
* Add sense key table entries for DATA PROTECT and BLANK CHECK. This willken2001-04-301-0/+2
| | | | | | | prevent scsi_sense_desc() from deferencing a NULL pointer when a drive happens to return one of these sense keys. Reported by: Michael Samuel <michael@miknet.net>
* Allow the size of the SSC memory disk used with the SKI emulator to bejhb2001-04-301-0/+1
| | | | overridden in the kernel config file via the SSC_NSECT option.
* Uncut&paste som bogus use of VOP_BMAP in cd9660::VOP_STRATEGY.phk2001-04-302-20/+8
| | | | XXX mark some stuff which looks like further cut&paste junk.
* Uncut&paste som bogus use of VOP_BMAP in hpfs::VOP_STRATEGY.phk2001-04-301-6/+6
| | | | | At the same time, eliminate uninitialized use of a vnode pointer. Interesting GCC didn't spot this.
* In camperiphscsisenseerror(), don't return an error when the error actionken2001-04-301-0/+3
| | | | | | is SS_NOP. Submitted by: joerg
* Regen.n_hibma2001-04-302-7/+14
|
* Add 4300C Idn_hibma2001-04-301-1/+2
| | | | Submitted by: Ernst de Haan <ernst@heinz.jollem.com>
* Fix an errant search and replace that broke SCSI start unit commands.ken2001-04-301-1/+1
| | | | This should fix automatic spinups as well as 'camcontrol start'.
* Backed out previous commit. It cause massive filesystem corruption,bde2001-04-302-0/+2
| | | | | | | | | | | | | | | | | | | not to mention a compile-time warning about the critical function becoming unused, by replacing spec_bmap() with vop_stdbmap(). ntfs seems to have the same bug. The factor for converting specfs block numbers to physical block numbers is 1, but vop_stdbmap() uses the bogus factor btodb(ap->a_vp->v_mount->mnt_stat.f_iosize), which is 16 for ffs with the default block size of 8K. This factor is bogus even for vop_stdbmap() -- the correct factor is related to the filesystem blocksize which is not necessarily the same to the optimal i/o size. vop_stdbmap() was apparently cloned from nfs where these sizes happen to be the same. There may also be a problem with a_vp->v_mount being null. spec_bmap() still checks for this, but I think the checks in specfs are dead code which used to support block devices.
* When panic()'ing because of recursion on a non-recursive mutex, printalfred2001-04-301-2/+2
| | | | | | out the location it was initially locked. Ok'd by: jake
* Make rtprio work again.jake2001-04-291-19/+14
| | | | | | | | | | - add a missing break which caused RTP_SET to always return EINVAL - break instead of returning if p_can fails so proc_lock is always dropped correctly - only copyin data that is actually needed - use break instead of goto - make rtp_to_pri return EINVAL instead of -1 if the values are out or range so we don't have to translate
* o As part of the move to not maintaining copies of the vnode owning uidrwatson2001-04-293-3/+3
| | | | | | | | | | | | | | | | and gid in the ACL, vaccess_acl_posix1e() was changed to accept explicit file_uid and file_gid as arguments. However, in making the change, I explicitly checked file_gid against cr->cr_groups[0], rather than using groupmember, resulting in ACL_GROUP_OBJ entries being compared to the caller's effective gid only, not the remainder of its groups. This was recently corrected for the version of the group call without privilege, but the second test (when privilege is added) was missed. This change replaces an additiona cr->cr_groups[0] check with groupmember(). Pointed out by: jedgar Reviewed by: jedgar Obtained from: TrustedBSD Project
* VOP_BALLOC was never really a VOP in the first place, so convert itphk2001-04-2914-61/+48
| | | | to UFS_BALLOC like the other "between UFS and FFS function interfaces".
* Add a vop_stdbmap(), and make it part of the default vop vector.phk2001-04-2924-414/+33
| | | | | | Make 7 filesystems which don't really know about VOP_BMAP rely on the default vector, rather than more or less complete local vop_nopbmap() implementations.
* Make a panic less misleading.phk2001-04-292-2/+2
|
* Call ufs_bmaparray() directly instead of indirectly via VOP_BMAP().phk2001-04-291-2/+3
|
* Remove two unused arguments from ufs_bmaparray().phk2001-04-294-62/+47
|
* Remove faint traces of blind copy&paste.phk2001-04-291-1/+0
|
* Remove faint traces of non-existant ffs_bmap().phk2001-04-291-2/+0
|
* Remove incorrect comment.alfred2001-04-292-2/+0
| | | | | Submitted by: quinot@inf.enst.fr <quinot@inf.enst.fr> PR: kern/26893
* Revert consequences of changes to mount.h, part 2.grog2001-04-2995-189/+0
| | | | Requested by: bde
* Bring in ficl 2.05.dcs2001-04-2926-1804/+3992
| | | | | | | This version has a step debugger, which now completely replaces the old trace feature. Also, we moved all of the FreeBSD-specific MI code to loader.c, reducing the diff between this and the official FICL distribution.
* don't unlock the channel in chn_read, msleep will do it for us.cg2001-04-291-2/+0
| | | | PR: kern/26430
* Add back in the bits to remove any existing "schg" flags as we haveobrien2001-04-295-0/+10
| | | | kernel's out in wild that still have these flags set.
* Instead of asserting that a mutex is not still locked after unlocking it,alfred2001-04-281-1/+1
| | | | | | assert that the mutex is owned and not recursed prior to unlocking it. This should give a clearer diagnostic when a programming error is caught.
* Add in a missing call to forward_hardclock() in the SMP case.jhb2001-04-285-0/+15
| | | | Submitted by: bde
* be more specific in identifying the chip typecg2001-04-271-14/+73
|
* Address a number of problems with sysctl_vm_zone().alfred2001-04-271-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The zone allocator's locks should be leaflocks, meaning that they should never be held when entering into another subsystem, however the sysctl grabs the zone global mutex and individual zone mutexes while holding the lock it calls SYSCTL_OUT which recurses into the VM subsystem in order to wire user memory to do a safe copy. This can block and cause lock order reversals. To fix this: lock zone global. get a count of the number of zones. unlock global. allocate temporary storage. format and SYSCTL_OUT the banner. lock global. traverse list. make sure we haven't looped more than the initial count taken to avoid overflowing the allocated buffer. lock each nodes. read values and format into buffer. unlock individual node. unlock global. format and SYSCTL_OUT the rest of the data. free storage. return. Other problems included not checking for errors when doing sysctl out of the column header. Fixed. Inconsistant termination of the copied string. Fixed. Objected to by: des (for not using sbuf) Since the output is not variable length and I'm actually over allocating signifigantly and I'd like to get this fixed now, I'll work on the sbuf convertion at a later date. I would not object to someone else taking it upon themselves to convert it to sbuf. I hold no MAINTIANER rights to this code (for now).
* Better handling of ioctl(SIOCSIFFLAGS) failing in ifpromisc():fenner2001-04-271-7/+9
| | | | | - Don't print the "promiscuous mode (enabled|disabled)" on failure - Restore the reference count on failure
* Move the disklabel construction to the attach function instead ofsos2001-04-271-9/+9
| | | | | in open. This prevent panics when a the disklabel is accessed on an ATA-RAID subdisk.
* Overhaul of the SMP code. Several portions of the SMP kernel support havejhb2001-04-2777-7925/+1123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | been made machine independent and various other adjustments have been made to support Alpha SMP. - It splits the per-process portions of hardclock() and statclock() off into hardclock_process() and statclock_process() respectively. hardclock() and statclock() call the *_process() functions for the current process so that UP systems will run as before. For SMP systems, it is simply necessary to ensure that all other processors execute the *_process() functions when the main clock functions are triggered on one CPU by an interrupt. For the alpha 4100, clock interrupts are delievered in a staggered broadcast fashion, so we simply call hardclock/statclock on the boot CPU and call the *_process() functions on the secondaries. For x86, we call statclock and hardclock as usual and then call forward_hardclock/statclock in the MD code to send an IPI to cause the AP's to execute forwared_hardclock/statclock which then call the *_process() functions. - forward_signal() and forward_roundrobin() have been reworked to be MI and to involve less hackery. Now the cpu doing the forward sets any flags, etc. and sends a very simple IPI_AST to the other cpu(s). AST IPIs now just basically return so that they can execute ast() and don't bother with setting the astpending or needresched flags themselves. This also removes the loop in forward_signal() as sched_lock closes the race condition that the loop worked around. - need_resched(), resched_wanted() and clear_resched() have been changed to take a process to act on rather than assuming curproc so that they can be used to implement forward_roundrobin() as described above. - Various other SMP variables have been moved to a MI subr_smp.c and a new header sys/smp.h declares MI SMP variables and API's. The IPI API's from machine/ipl.h have moved to machine/smp.h which is included by sys/smp.h. - The globaldata_register() and globaldata_find() functions as well as the SLIST of globaldata structures has become MI and moved into subr_smp.c. Also, the globaldata list is only available if SMP support is compiled in. Reviewed by: jake, peter Looked over by: eivind
* Make stathz match reality on platforms like the 4100 where hz!=1024gallatin2001-04-271-1/+1
| | | | | | It might be more correct to make stathz as close as possible to 128, but that would involve adding complexity to the clock intr path, which I don't want to do.
* Actually show the values that tripped the assertion "receive 1"alfred2001-04-271-1/+3
|
* o Remove the disabled p_cansched() test cases that permitted users torwatson2001-04-271-11/+0
| | | | | | | | | modify the scheduling properties of processes with a different real uid but the same effective uid (i.e., daemons, et al). (note: these cases were previously commented out, so this does not change the compiled code at al) Obtained from: TrustedBSD Project
* Initiate the deorbit burn sequence for sys/ipl.h by moving the softwarejhb2001-04-272-13/+13
| | | | | interrupt priorities over to sys/interrupt.h next to the software interrupt API.
* Initialize p_md.md_kernnest to 1 for newly fork'd processes since theyjhb2001-04-263-0/+18
| | | | start off in the kernel.
* vfs_subr.c is getting rather fat. The underlying repocopy and thisphk2001-04-263-3198/+5
| | | | commit moves the filesystem export handling code to vfs_export.c
* Fix the definitions for memory bank sizes, which I somehow got wrong.wpaul2001-04-264-4/+14
| | | | | | | | The constant I was using was correct, but I mislabeled it as 256K when it should have been 512K. This doesn't actually change the code, but it clarifies things somewhat. Submitted by: Chuck Cranor <chuck@research.att.com>
* Remove a leading underscore that prevented I386_CPU kernels fromjake2001-04-263-3/+3
| | | | | | | compiling. Submitted by: Alexander N. Kabaev <ak03@gte.com> PR: kern/26858
* More new Dell PCI IDs.msmith2001-04-261-1/+4
| | | | Submitted by: "Marty Moll" <martym@arbor.edu>
* Rather than copying all the indirect blocks of the snapshot,mckusick2001-04-261-35/+19
| | | | | | simply mark them as BLK_NOCOPY. This trick cuts the initial size of the snapshot in half and cuts the time to take a snapshot by a third.
* The PERC 3/Di in the Dell PowerEdge 2250 has a new subdevice ID.msmith2001-04-261-0/+1
| | | | Submitted by: Chris Csanady <cc@ameslab.gov>
* Sendfile is documented to return 0 on success, however if when aalfred2001-04-261-0/+7
| | | | | | | | | | | sf_hdtr is used to provide writev(2) style headers/trailers on the sent data the return value is actually either the result of writev(2) from the trailers or headers of no tailers are specified. Fix sendfile to comply with the documentation, by returning 0 on success. Ok'd by: dg
OpenPOWER on IntegriCloud