summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Kill printf warnings.imp1999-09-261-1/+1
|
* This is a major fixup of unionfs. At least 30 serious bugs have beendillon1999-09-268-1720/+2518
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixed (many due to changing semantics in other parts of the kernel and not the original author's fault), including one critical one: unionfs could cause UFS corruption in the fronting store due to calling VOP_OPEN for writing without turning on vmio for the UFS vnode. Most of the bugs were related to semantics changes in VOP calls, lock ordering problems (causing deadlocks), improper handling of a read-only backing store (such as an NFS mount), improper referencing and locking of vnodes, not using real struct locks for vnode locking, not using recursive locks when accessing the fronting store, and things like that. New functionality has been added: unionfs now has mmap() support, but only partially tested, and rename has been enhanced considerably. There are still some things that unionfs cannot do. You cannot rename a directory without confusing unionfs, and there are issues with softlinks, hardlinks, and special files. unionfs mostly doesn't understand them (and never did). There are probably still panic situations, but hopefully no where near as many as before this commit. The unionfs in this commit has been tested overlayed on /usr/src (backing /usr/src being a read-only NFS mount, fronting /usr/src being a local filesystem). kernel builds have been tested, buildworld is undergoing testing. More testing is necessary.
* GC bdbtofsb()peter1999-09-261-8/+0
|
* bdbtofsb() appears to have been unused for quite some time, if ever.peter1999-09-261-8/+0
| | | | Appears to be a 4.4Lite relic.
* Change explicit use of the queue fields into use of the definitionsn_hibma1999-09-261-10/+13
| | | | | | | | in queue.h. Change the name of two variables for consistency. Reviewed-By: peter
* Minor tidy up of PPP_FILTER and NBPF stuff. Don't generate bpf.h in thepeter1999-09-262-12/+3
| | | | module and don't #include "bpf.h".
* Update the Starfire driver comments and man page to include the URL ofwpaul1999-09-262-2/+4
| | | | | the AIC-6915 Programmer's Manual which I finally found online at Adaptec's site.
* Update this to be able to output ASSERT_VOP_(UN)LOCKED() based on theeivind1999-09-263-765/+690
| | | | | | | | | | | | | | lock specifications in kern/vnode_if.src. At present, this do not distinguish between exclusive and shared locks, and the kernel is so full of bugs in this area that running with auto-generation of assertions enabled makes DEBUG_VFS_LOCKS totally useless for anybody that has used it for anything prior to outputting automated assertions. Due to this, I made vnode_if.sh only output locking assertions if you have the environment variable DEBUG_ALL_VFS_LOCKS set to "YES". In order to actually use the assertions, you need to also add "options DEBUG_VFS_LOCKS" to your kernel config file. Urged to commit by: phk
* Move the declaration of panic() from sys/systm.h to sys/param.h.eivind1999-09-264-3/+11
| | | | | | | | Rationale: Wider access, so we can add assertions to header files. panicstr is still in sys/systm.h Suggested by: phk Discussed with: peter
* Move the vop_islocked declaration to the top, in preparation for committingeivind1999-09-261-7/+7
| | | | code to auto-generate assertions from the lockspecs
* device_get_ivars() called twice. Remove second call and assignment.mdodd1999-09-261-1/+0
| | | | Noticed by: Peter
* Duplicated '(' removed.mdodd1999-09-261-1/+1
| | | | Noticed by: Mark Murray <mark@grondar.za>
* mca_add_{iospace,mspace}() no longer takes a 4th arg.mdodd1999-09-261-1/+1
|
* Rip out the nastiness I cribbed from the EISA bus code and actuallymdodd1999-09-262-321/+77
| | | | | | | implement the resource management code correctly, using approved interfaces. While I'm here, clean up a few things.
* - Split out the ISA and PCCARD specific code.mdodd1999-09-266-605/+918
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Split out the prototypes, externs and struct decls from if_epreg.h into if_epvar.h. - Add support for MCA based Etherlink III (3c529) devices. None of this code is used right now; the old if_ep driver is still in place and used. I will eventually get around to converting if_ep_isa.c to newbus once I've had a talk with Peter and DFR about the DEVICE_IDENTIFY() method. I have tested this code on my PS/2. It works. I would like EISA and ISA testers since my example hardware hasn't arrived yet. Add: dev/ep/if_ep.c optional ep dev/ep/if_ep_isa.c optional ep isa dev/ep/if_ep_eisa.c optional ep eisa dev/ep/if_ep_mca.c optional ep mca dev/ep/if_ep_pccard.c optional ep card to sys/conf/files Remove: i386/eisa/3c5x9.c optional ep i386/isa/if_ep.c optional ep from sys/i386/conf/files.i386 PCCARD testers wanted! I will switch off and cvs rm the old driver in favor of this copy once I've had positive feedback or have the hardware to verify that it works.
* Merge from sys/i386/isa/spkr.c revision 1.37 and 1.39.nyan1999-09-261-12/+3
|
* Merge from sys/i386/isa/pcaudio.c revision 1.50.nyan1999-09-261-13/+1
|
* Merge from sys/i386/isa/mse.c revision 1.44.nyan1999-09-261-14/+3
|
* For some reason patch didn't remove these three lines first time around.phk1999-09-252-6/+0
|
* Remove a warning check which was too general.phk1999-09-252-6/+2
|
* Fix from Tor so that if we enter the debugger in the tristate going tomjacob1999-09-253-0/+3
| | | | | | SMP (other CPUs stopped but SMP mode not really started). Obtained from:Tor.Egge@fast.no
* Fix from Tor so that if we enter the debugger in the tristate going tomjacob1999-09-252-2/+2
| | | | | | SMP (other CPUs stopped but SMP mode not really started). Obtained from: Tor.Egge@fast.no
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-25147-752/+40
| | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* Change contigmalloc() lower memory bound from 1MB to 0 to improvewpaul1999-09-2511-11/+11
| | | | | | | chances of allocations succeeding on systems with small amounts of RAM. Pointed out by: bde
* This patch clears the way for removing a number of tty relatedphk1999-09-2540-634/+271
| | | | | | | | | | | | | | | | | | | | | fields in struct cdevsw: d_stop moved to struct tty. d_reset already unused. d_devtotty linkage now provided by dev_t->si_tty. These fields will be removed from struct cdevsw together with d_params and d_maxio Real Soon Now. The changes in this patch consist of: initialize dev->si_tty in *_open() initialize tty->t_stop remove devtotty functions rename ttpoll to ttypoll a few adjustments to these changes in the generic code a bump of __FreeBSD_version add a couple of FreeBSD tags
* Add missing 't' in printf message.phk1999-09-251-1/+1
|
* Remove unnecessary file. This file is obsolete by newbus integration.nyan1999-09-251-1144/+0
|
* Fix a hole in jail(2).phk1999-09-257-2/+24
| | | | Noticed by: Alexander Bezroutchko <abb@zenon.net>
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-09-2553-563/+16
| | | | | | | | | | | | This means that we will not have to have a bpf and a non-bpf version of our driver modules. This does not open any security hole, because the bpf core isn't loadable The drivers left unchanged are the "cross platform" drivers where the respective maintainers are urged to DTRT, whatever that may be. Add a couple of missing FreeBSD tags.
* Oops! I enabled SOFTUPDATES by accident.phk1999-09-253-3/+3
| | | | Pointed out by: eivind
* Merge from sys/i386/conf/files.i386 revision 1.270 and 1.271.nyan1999-09-252-6/+10
|
* Call sk_start() at the end of sk_intr() if there's packets in thewpaul1999-09-252-0/+10
| | | | interface send queue that need to be processed.
* Switch the order of a two tests so that the error actually has to occurobrien1999-09-242-2/+2
| | | | | | | | for you to be told there was an error [during verbose boot]. I poked him for the fix, he poked me to get it committed. Submitted by: Jason Young <doogie@anet-stl.com>
* Fix timeout handeling and add retry counts.sos1999-09-247-37/+75
| | | | | | Add HPT366 probe message (but no real support yet), Add CDR support for several diffenrent blocktypes, also close disk as a multisession CD.
* Header file required to support ccd changes. Forgot to commit lastdillon1999-09-231-0/+2
| | | | night.
* - Supported 1.23MB FD again.nyan1999-09-232-118/+138
| | | | | - Supported all formats that IBM-PC's driver (isa/fd.c) supports. - Changed the device minor numbers. They sync in IBM-PC's driver.
* Linux doesn't complain if you remove a msg queue that doesn't existmarcel1999-09-232-2/+6
| | | | (given the proper permissions).
* Cleanup CCD quite a bit, including adding clarifying comments.dillon1999-09-232-294/+714
| | | | | | | | | | | | | | | Enhance MIRROR code. Add a few more sanity checks and implement a zone-based disk selector to make use of both disks when reading. Also implement a read fail-over. If a read error occurs on one disk, the I/O is retried on the other. NOTE: CCD's mirroring support cannot deal with write errors properly in regards to recovery, meaning that 'old' data under a write error may be read non-deterministically if you reboot after a write error, and CCD certainly cannot deal with a disk changeout. And it still can't. Use vinum if you are really serious about mirroring. CCD basically just implements a poor-man's mirror.
* Fix ccdiodone code. The code was using cbp->cb_buf.b_bcount todillon1999-09-232-2/+20
| | | | | | sum the total amount of I/O issued to determine when all the I/O has completed. This fails when the EOF boundry occurs in the middle of an I/O. Using cbp->cb_buf.b_bufsize works better.
* Make the frequency tuneable via a sysctl.jhay1999-09-231-1/+24
| | | | Reviewed by: phk
* Restore vendor $Id$ now that it won't be clobbered.peter1999-09-234-4/+4
|
* Fix a commit that shouldn't have snuck in. Rev 1.12 was a part of thepeter1999-09-231-0/+5
| | | | newbusification of aha, not device_get_flags() related...
* MFS: firewall -> firewall_typejkh1999-09-233-3/+3
|
* Fixed the bug that the number of sectors per cylinder was stored intokato1999-09-231-1/+1
| | | | | | the ncyls (number of cylinders) in dsinit(). Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* - Fixed DMA 64k boundary problem.kato1999-09-231-7/+14
| | | | | | - Test the processor flag to detect disk I/O BIOS errors. Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
* Sync with sys/dev/syscons/syscons.c revision 1.322.kato1999-09-231-114/+92
|
* As suggested by phk, unconditionalize BPF support in these drivers. Sincewpaul1999-09-2321-212/+26
| | | | | | | there are stubs compiled into the kernel if BPF support is not enabled, there aren't any problems with unresolved symbols. The modules in /modules are compiled with BPF support enabled anyway, so the most this will do is bloat GENERIC a little.
* Fix bug in pseudo-geometry calculation code that assumed a sector sizedillon1999-09-232-2/+2
| | | | smaller then 1024 bytes.
* Regeneration.luoqi1999-09-223-6/+9
|
* Implement linux_ioperm() syscall. Fix linux_iopl() to use the level argument.luoqi1999-09-226-18/+54
| | | | | | SVGAlib should now work. Reviewed by: marcel
OpenPOWER on IntegriCloud