summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2007-06-25use daddr64_t for size in bounds_check_with_label(); prompted by miod@;Otto Moerbeek
ok deraadt@
2007-06-24rework sensor tasks to use the kernels generic workq rather than a specialDavid Gwynne
kernel thread of its own. the api has changed (which will be fixed in the manpage shortly) so all the users of sensor tasks that i can find have been fixed too. noone tested, so its going in to force people to run with it. "put it in" deraadt@
2007-06-21english, okay jmc@Pedro Martelletto
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-18ansify/de-register.Jasper Lievisse Adriaanse
no binary change
2007-06-17de-registerJasper Lievisse Adriaanse
ok thib@
2007-06-17significantly simplified disklabel infrastructure. MBR handling becomes MITheo de Raadt
to support hotplug media on most architectures. disklabel setup and verification done using new helper functions. Disklabels must *always* have a correct checksum now. Same code paths are used to learn on-disk location disklabels, to avoid new errors sneaking in. Tested on almost all cases, testing help from todd, kettenis, krw, otto, dlg, robert, gwk, drahn
2007-06-14Forgotten hackton diff: bounds check for seek on special devicesOtto Moerbeek
with a disklabel. Original diff from pedro@; ok pedro@ deraadt@
2007-06-11kill unneeded include;Thordur I. Bjornsson
(stdarg.h, leftover from the vararg's idea). ok tedu@
2007-06-10when we change fields in the label to version 1, fix the checksum (but onlyTheo de Raadt
if it was ok beforehands)
2007-06-10Add netbt files to common files for "make tags"Uwe Stuehler
2007-06-09blocks/sectors != blocks/blocks. Fix calculation of b_cylinder inKenneth R Westerback
bounds_check_with_label(). Tweak error path to eliminate duplicate code.
2007-06-09The differences in the last non-homogeneous bounds_check_with_label()Kenneth R Westerback
routines (alpha, vax) prove to be not worth keeping. Move bounds_check_with_label() into the MI world. Eliminate unreliable and almost certainly useless checks for overwriting a disklabel. After discussion with deraadt@
2007-06-09silently whack wrong-sized C partitionsTheo de Raadt
2007-06-09Protect access to 'bufhead' with splbio(), okay art@ millert@ marco@Pedro Martelletto
2007-06-09handle C non-0 start after doing v1 converstion.. sighTheo de Raadt
2007-06-09by hand i carefully found that all the differences in setdisklabel()Theo de Raadt
implimentations were simply either missing code, or spacing and such. setdisklabel() can become MI now.
2007-06-09be even more forceful with RAW_PART (and note this is the wrong, and ↵Theo de Raadt
temporary, place
2007-06-09push RAW_PART to 0 if it is non-zero, and bitchTheo de Raadt
2007-06-06fix format strings for block #'s now that they are 64 bit; ok tedu (whoTheo de Raadt
also spotted one more)
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
2007-06-06oopsTheo de Raadt
2007-06-06even more problems with disk size consistancy checksTheo de Raadt
2007-06-06remove remaining IPX hooks. all inside #ifdef IPX, so no actual changeHenning Brauer
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
2007-06-04disable a part of the label validation because some Sun systemsTheo de Raadt
have contradictory information in their cyl-based labels
2007-06-04perhaps it made art's head hurt because it is wrong. triggers NULLTheo de Raadt
deref in sensor_task_work(); found by krw, dlg should talk to him
2007-06-03backout rev 1.91 and 1.92, it causes proceses to hang on low memOtto Moerbeek
machines. ok deraadt@
2007-06-02Initialize pkthdr.rcvif.Artur Grabowski
ok claudio@
2007-06-02Rename cvtdisklabelv1 -> disklabeltokernlabel. It does more than justKenneth R Westerback
convert version 0 to version 1 disklabels. Suggested by deraadt@. ok deraadt@ otto@
2007-06-02daddr_t -> daddr64_t for specfs. convert some variablesThordur I. Bjornsson
to proper types along the way (ints), fixes a subtle bug wich otto@ pointed me at. ok deraadt@
2007-06-01pedro ok'd this ~3500 line diff which removes the vop argumentTheo de Raadt
"ap = v" comments in under 8 seconds, so it must be ok. and it compiles too.
2007-06-01Uninline bio_doread(), okay art@Pedro Martelletto
2007-06-01FIBMAP is used by nothing; checked by miod and pvalchevTheo de Raadt
2007-06-01some architectures called setroot() from cpu_configure(), *way* before someTheo de Raadt
subsystems were enabled. others used a *md_diskconf -> diskconf() method to make sure init_main could "do late setroot". Change all architectures to have diskconf(), use it directly & late. tested by todd and myself on most architectures, ok miod too
2007-06-01Add two constraints to V1 disklabels:Kenneth R Westerback
1) All partitions must start before the end of the disk. 2) All partitions must end at or before the end of the disk. Partitions not satisfying these constraints will be truncated and marked FS_UNUSED. ok otto@ deraadt@
2007-06-01dont request zeroed memory when we allocate data regions for buffers. thisDavid Gwynne
moves memset from the 20th most expensive function in the kernel to the 331st when doing heavy io. ok tedu@ thib@ pedro@ beck@ art@
2007-06-01decouple the allocated number of vnodes from the "desiredvnodes" variableBob Beck
which is used to size a zillion other things that increasing excessively has been shown to cause problems - so that we may incrementally look at increasing those other things without making the kernel unusable. This diff effectivly increases the number of vnodes back to the number of buffers, as in the earlier dynamic buffer cache commits, without increasing anything else (namecache, softdeps, etc. etc.) ok pedro@ tedu@ art@ thib@
2007-06-01remove crufty adosfs. everytime we try to change a vfs layer interface,Theo de Raadt
adosfs has the issue and in an entirely different way. noone uses this code so this is hte best way to handle the problem diff from pedro who went to sleep but we need to move ahead; ok thib
2007-06-01rework the sensor task handling to run in the kernels generic workq.David Gwynne
apologies to art for abusing timeouts so badly. apologies to tedu for making his head hurt. tested by and ok tedu@
2007-05-31remove p_lock from struct proc; unused debug goo for lockmgr,Thordur I. Bjornsson
wich gets set and never checked etc... ok art@,tedu@
2007-05-31switch the flags argument to the front, requested by artTed Unangst
ok dlg
2007-05-31add an interface for work queues run from a kernel thread.David Gwynne
this type of code is implemented many times already in the kernel, this is a generic version of all those replicated code bases. originally from tedu@ ok tedu@ tom@ deraadt@
2007-05-31remove some silly casts, no real changeTed Unangst
2007-05-31NFSv2 cannot cope with a big number of vnodes, so revert to NPROC-basedPedro Martelletto
calculation until the problem is fixed, okay beck@ art@
2007-05-30Adjust filename buffer for the new /var/crash prefix to preventMoritz Jodeit
truncation and add an additional truncation check. ok deraadt@ tedu@
2007-05-30the (root) stuff is ugly, so print "at root", so it looks more likeTheo de Raadt
regular things. everyone here buys it, and i'm 90% sure miod will be ok with it
2007-05-30back out vfs change - todd fries has seen afs issues, and I'm suspiciousBob Beck
this can cause other problems.
2007-05-30openbsd has timeouts, not callouts so rename the variables. i applied an olderTed Unangst
diff from brad. from brad.
2007-05-30add a new kevent filter type for timers. this allows processes to createTed Unangst
a series of oneshot or periodic timers. capped to a global limit. from freebsd via brad. ok art pedro