summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-07-05Don't worry about lseek(2)ing past the end of raw disk devices. TheMatthew Dempsky
disk drivers are now smart enough to handle this correctly, as they need to also handle pread(2)/pwrite(2). ok deraadt@, krw@; ok marco@ on an similar, earlier diff
2011-07-05Revert henning's commit-n-run that broke the treePhilip Guenthe
2011-07-05Replace last remaining users of link->scsibus withMatthew Dempsky
link->bus->sc_dev.dv_unit.
2011-07-05fix some memset sizeofs, found by jsg. ok deraadt krwTed Unangst
2011-07-05correct memsets of key contexts which were shorter than they needed to beTheo de Raadt
due to sizeof pointer instead of sizeof of type with tedu; some quibbles spotted by miod, ok tedu miod jsg jakob -- please push this upstream
2011-07-05IFQ_IS_EMPTY instead of fiddling with ifqueue internalsHenning Brauer
isn't it awesome that 5 out of 6 cases of this crap were in the various ppp implementations? ok claudio ryan the 6th to be fixed when we return from MEC
2011-07-052 cases of IFQ_IS_EMPTY instead of mucking with ifqueue internalsHenning Brauer
make sppp_flush use IFQ_PURGE instead of handrolling the same making assumptions about ifqueue internals. ok ryan claudio
2011-07-05Remove a broken optimization found by the new pool_chk code. ItTed Unangst
leaves an empty page in curpage, and this inconsistency slowly spreads until finally one of the other pool checks freaks out. ok art deraadt
2011-07-05ifqueues in BSS don't need NULL init, especially not absolutely incorrectHenning Brauer
ones that make assumptions about ifqueue internals... ok ryan claudio
2011-07-05use IFQ_IS_EMPTY instead of fiddling with ifqueue internals - 3 casesHenning Brauer
why bother with APIs when you can muck with internals directly, it's obvious there'll NEVER be changes, right. ok claudio ryan
2011-07-05fix memcpy sizeof. found by jsg. ok deraadt krw mikebTed Unangst
2011-07-05add missing ifdefs for INET6; diff from form, ok henning, bluhm, claudioMike Belopuhov
2011-07-05Don't derefence the item past the end of the array to figure out ifAriane van der Steldt
the extraction loop should stop. No more 298 pages in 42 segments when asking for only 32 pages in 1 segment. ok oga@
2011-07-05fix an incorrect memset use of sizeofTheo de Raadt
found by jsg, "looks right" tedu jsg
2011-07-05ENOMEM causing EIO errors is bad juju. Softraid crypto did this.Owain Ainsworth
Instead of allocating a crypto op and the optional dma buffer on each and every io, preallocate a list of softraid crypto wus that contain a buffer of the max size we will use (MAXPHYS). since we know the number of openings we have in advance this means that on each io we just pick one, shorten the list of crypto descs, init any values then do the io. ok jsing (who provided many useful comments. he also provided a smarter way of handling the cryptop lists which is not in this diff but will be implemented soonish), marco@. dlg@ pointed out that this should probably use iopools but letting disciplines allocate their own iopool involves more softraid rejigging that will have to be done first. For now this is sufficient.
2011-07-05Fix some awful code in the example, pointed out by millert@.Nicholas Marriott
2011-07-05Add linux_to_native_timespec() for future futex use. Okay tedu@.Paul Irofti
2011-07-05sortMiod Vallat
2011-07-05Don't write /boot to sector 0 on non-floppy devices. Non-floppyKenneth R Westerback
devices must have an OpenBSD MBR partition to install /boot into. But search anything except floppy devices (e.g. vnd) for such a partition. Feedback & ok deraadt@
2011-07-05plug in mmap_write_selfArtur Grabowski
2011-07-05Test for when we're writing to a file from an mmaped area of the file.Artur Grabowski
2011-07-05More non-512-byte sector groundwork. Don't let disklabel hint thatKenneth R Westerback
a ffs frag size can be less than the d_secsize of the disk. Make sure amd64 writedisklabel() puts the disklabel where readdoslabel() will read it. Tweak i386/amd64 installboot/biosboot so sectors are indeed used where sectors are claimed. Lets me fdisk, newfs, mount and installboot onto 2048 and 4096 byte sector devices. Other filesystem utilites will still hold surprises. Note that actually booting from such devices will await BIOSen that acknowledge such devices as bootable. ok guenther@
2011-07-05N: Thou shalt not call hardclock() with biglock held.Owain Ainsworth
i386 disobeys the Nth commandment. Fix this. While here, make i386 and amd64 definitions of iplclock and statclock match. ok art@, kettenis@
2011-07-05Stupid driver makes a copy of struct pci_attach_args. Make sure we clearMark Kettenis
the MSI enabled flag there such that the driver actually pays attention to it. Found out the hard way by Chris Smith on an 82540EM, which defenitely does not like MSI. ok deraadt@
2011-07-05when all you have is a hammer, make it a big one. add more checks to pool_chkTed Unangst
and a pool_init flag to aggressively run pool_chk. ok art deraadt
2011-07-05VFSDEBUG -> VFSLCKDEBUG;Jason McIntyre
2011-07-05from Tim van der Molen:Jason McIntyre
- State that ftell() and ftello() return -1 on error rather than just a non-zero value. The latter is not specific enough, because these functions can also return non-zero on success. - For clarity and search-friendliness, don't refer to fgetpos() and fsetpos() as "the others", but mention them by name. ok millert otto
2011-07-05Document CCACHE_DIR and CCACHE_ENV.Stuart Henderson
2011-07-05Document USE_CCACHE / NO_CCACHE.Stuart Henderson
2011-07-05If uvm_vslock_device() fails, just exit the loop. None of theMatthew Dempsky
after_unlock code is needed if this happens, and running it was even wrong because we weren't setting b_resid, so uio_offset (and higher up, f_offset) would be incorrectly adjusted. Discussed with deraadt@.
2011-07-05Enforce that raw disk I/O is only initiated on block boundaries inMatthew Dempsky
physio(). ok deraadt@
2011-07-05msync has some code that is based on *old* bsd behaviour whereOwain Ainsworth
msync(size == 0) did strange things based on the original mapping segments and trying to manipulate same. This code was copied from the original vm when we moved to uvm. posix says nothing about this behaviour and anything that depends on it is systemically broken, so rip it out and make sys_msync about 30% smaller. ok deraadt@, tedu@, guenther@.
2011-07-05remove comment: yes, they should be independentTheo de Raadt
2011-07-05Add disklabel defines for ia64. Okay krw@.Paul Irofti
2011-07-05there are no cachelist or logs for poolsTed Unangst
2011-07-05Minor cleanup. OK blambert@Claudio Jeker
2011-07-05When both a formatted and an unformatted version of the same manual pageIngo Schwarze
are available in the same tree, only show the newer of the two. So far, this only handles the case without -a; i need to look at the case with -a next.
2011-07-05kill a useless Pp;Jason McIntyre
2011-07-05clean up some left over decls from before the code moved to one fileTheo de Raadt
ok guenther
2011-07-05When the kernel runs out of mbuf clusters, the hme receive ring mayAlexander Bluhm
become empty. In that case, the hme driver could not recover as the ring was only filled after receiving data. Check and potentially fill an empty receive ring every second in hme_tick(). ok kettenis@
2011-07-05Add so_idletv to netstat -vP pcb-address output.Alexander Bluhm
ok mikeb@
2011-07-05Move arm to the 'MI' softfloat code instead of the arm version.Dale Rahn
YES!! miod@
2011-07-05Do not use (ifam + 1) to find the start of the sockaddrs. Use theClaudio Jeker
rtm_hdrlen instead. Also move the ifindex check way further up. OK dlg@ bluhm@
2011-07-05Flip one .Fl interface to .Fl iface since iface is used everywhere elseClaudio Jeker
even though -interface is the same as -iface. OK jmc@
2011-07-05tweak previous;Jason McIntyre
2011-07-05Allow parallel linting of manuals,Ingo Schwarze
by using one mandoc process and one timestamp file per man page. This might be slightly slower on single-processor machines, but it's considerably faster with make -j. "I think so" deraadt@
2011-07-05Recommit the reverted sigacts change now that the NFS use-after-freePhilip Guenthe
problem has been tracked down. This fixes the sharing of the signal handling state: shared bits go in sigacts, per-rthread bits goes in struct proc. ok deraadt@
2011-07-05Sync to bsd.lv (all coded by kristaps@):Ingo Schwarze
- mdoc(7): fix an assertion if the first line after .Bd -column starts with a blank, and some simplifications in mdoc_argv.c - man(7): literal mode ends at .SH and .SS (bug reported by naddy@) - allow .RS/.RE blocks to nest (bug reported by dcoppa@ and gsoares@) - improve vertical spacing of man(7) blocks - roff(7): clear user-defined strings when starting a new file - correct ID tags in -T[x]html
2011-07-05Add checks for sector-alignment and whole number of sectors toMatthew Dempsky
bounds_check_with_label() and generally cleanup the code while here. ok krw@ ("I like this a *lot*"); "i like it" tedu@
2011-07-05Replace expanded version of RW_PROC() with the macro.Tobias Weingartner
ok oga@