summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-21remove some unnecessary casts. ok blambert deraadt kettenis matthewTed Unangst
2011-06-21remove stupid casts, ok deraadtTed Unangst
2011-06-21report the controllers part number. eg, i now know i have aDavid Gwynne
10G-PCIE-8A-R. dmesg looks like this: myx0 at pci4 dev 0 function 0 "Myricom Z8E" rev 0x00: apic 1 int 8, model 10G-PCIE-8A-R, address 00:60:dd:47:c6:74
2011-06-21wire up jumbos properly. the hardware supports up to 9018 bytes offDavid Gwynne
the wire (9000 + ether header + vlan tag), but has some cool alignment requirements. if you want to use a single rx ring desc to point at a jumbo it needs to start on a 4k boundary and be physically contiguous. to ensure this im pulling frames from the 12k pool and waiting for arianes diff to ensure mbufs are contig. direction from andrew gallatin. tested locally.
2011-06-21i prefer 16k ints/sec to 32k ints/sec.David Gwynne
2011-06-21There is no need to handle fragmented TCP reset packets in a specialAlexander Bluhm
way. Remove PFDESC_IP_REAS and pf_pdesc flags completely. ok claudio@ henning@
2011-06-21- adjust add_property() to allow more liberal whitespace usage.Jasper Lievisse Adriaanse
from simon@, tested in a bulk by landry@ ok espie@
2011-06-21minor cleanups; ok dlgTheo de Raadt
2011-06-21Laurence Tratt reported that his "Intel 6 Series AHCI" ahci(4) noMatthew Dempsky
longer detects his OCZ Vertex 3 after atascsi.c r1.104. For some reason, the first IDENTIFY command issued silently fails without any notification. In lieu of a better fix, workaround this for now by allowing IDENTIFY to be reissued a second time for non-PMP disks. Discussed with jmatthew@ and dlg@; ok dlg@
2011-06-21looks like the disk_lock method actually does workTheo de Raadt
2011-06-20explicit_bzero for the crypto keyTed Unangst
2011-06-20Restore changelist(5) wildcard support that we inadvertently killedIngo Schwarze
by the recent security(8) rewrite. While here: 1) Skip relative paths in changelist(5), and complain about them. 2) Skip file names ending in a tilde ('~') unless the tilde is explicitly specified in the changelist(5). That is, trailing wildcards will not match trailing tildes, as suggested by matthew@. Bug reported by both mk@ and matthew@. OK Andrew Fresh, also tested by and "move forward" mk@
2011-06-20Refactoring for simplicity, no functional change:Ingo Schwarze
* Instead of nesting subshells, perform a linear series of operations and bail out as soon as one of them fails. * Rename rc_print to rc_exit, let it calculate the exit code itself and let it exit, considerably simplifying error handling; new name suggested by sthen@. OK ajacoutot@ sthen@
2011-06-20Make -aoff option apply to MIDI ports (-q) as well, ensuring the deviceAlexandre Ratchov
stays closed also if -q is used. As we're at it, add -a to midicat so it behaves like aucat.
2011-06-20MBR_read() can be reading from a file as well as a raw partition.Kenneth R Westerback
And files can be smaller (e.g. 512 bytes like /usr/mdec/mbr) than a disk sector (e.g. 4096 bytes on pirofti's external disk drive). So relax the length test on the read() result to < DEV_BSIZE (the amount of data we actually want) instead of < secsize (the minimum size that read() will accept). 'fdisk -e' and 'fdisk -i' now work on devices with sector sizes greater than DEV_BSIZE.
2011-06-20fix a segfault found by jasper@Marc Espie
ok miod@, otto@, jasper@
2011-06-20More cleanup in pf_test/pf_test6 this time mostly the fragmentClaudio Jeker
handling. More to come to make the two codepathes a bit more identical. tested by many (esp. krw@ and sthen@) input and OK bluhm@
2011-06-20Switch binary file detection from !(isprint() || isspace()) to checkingStefan Sperling
for embedded NULs. Matches GNU and FreeBSD grep, and avoids problems with e.g. latin1-encoded files being treated as binary in the UTF-8 locale once grep calls setlocale() (which it does not, yet). OK millert@ tedu@
2011-06-20as man page states, lower case undoes upper case. add support for little s,Ted Unangst
no security, for consistency. use of this option is discouraged. :) ok deraadt guenther millert
2011-06-20more fancy kdump output, mostly from FreeBSD; ok deraadt@ tedu@Otto Moerbeek
2011-06-20Do not compare a `char' variable to EOF, which does not fit if `char' defaultsMiod Vallat
to unsigned (e.g. arm, powerpc); ok guenther@ matthew@ looks good deraadt@
2011-06-20serialize attach and detach of device sub-trees -- only one deviceTheo de Raadt
sub-tree may attach or detach at a time. attach and detach will sleep against each other. this is fixing (working around?) some bizzare corner cases that have been seen (but not fully diagnosed) where the device trees, disk registration subsystem, and other things could get messed up. one could argue though that this serialization is a very good thing; it is easier than adding piles of locks in various other places. ok matthew jsing
2011-06-20for now, move back to a private rw_lock rather than the disk_lock.Theo de Raadt
we have problems with instantiating new disks ok matthew
2011-06-20- add tests for suffixes in Requires(.private)Jasper Lievisse Adriaanse
2011-06-20Teach lint about %F, %A, %a format specifiers.Martynas Venckus
OK millert@.
2011-06-20Revert rev 1.21 which is superceded by 1.22Todd C. Miller
2011-06-20Prevent lint from warning about %m in C format strings. QuietsTodd C. Miller
false positives when check syslog(3) format strings that use %m. OK tedu@ martynas@
2011-06-20make the interrupt handler look more like what the doco suggests. seems toDavid Gwynne
fix a bad lockup i kept getting.
2011-06-20- Adjust Getopts() hash to align options with values.Jasper Lievisse Adriaanse
- Tweak comment about static libs.
2011-06-20- implement --static, and preserve dependency order,Jasper Lievisse Adriaanse
instead of search order when printing the libraries required for linking. this now passes our --static regress tests and matches fd.o
2011-06-20document -Ddonttie, even though I only put it in for performance testingMarc Espie
2011-06-20in an UpdateSet, match new files with old files based on their sha256.Marc Espie
avoid extracting again identical files, leading to less file system churn. put in a few failsafes (size check) for people with fubar'd file systems (hey oga@). The more often you update, the more you gain. Over 6 months, about one out of five files doesn't change. apparently, improves things a lot on slow fs, as said landry@ and sthen@. tested by quite a few people.
2011-06-20zap extra try that's no longer needed: print-plist-with-depends shouldMarc Espie
always succeed since it only depends on the ports tree itself.
2011-06-20Fix softraid(4) to set xs->cmd = &xs->cmdstore rather than pointing itMatthew Dempsky
to a separately allocated SCSI command structure. ok marco@, jsing@
2011-06-20Update mcd(4) to use disk_lock, etc. instead of its own tsleep(9)Matthew Dempsky
based locking. ok gcc
2011-06-20dont need debug, the myx_cmd stuff works fine.David Gwynne
2011-06-20Call bufq_drain() in wddetach() instead of reimplementing the sameMatthew Dempsky
logic.
2011-06-20enable myx(4)David Gwynne
certainly deraadt@
2011-06-20enable myx(4).David Gwynne
requested by deraadt@
2011-06-20syncTheo de Raadt
2011-06-20Xr myx(4)Theo de Raadt
2011-06-20i got myx working!David Gwynne
2011-06-20build firmware for myx(4)Theo de Raadt
2011-06-20isa(4) is an indirect bus, which means that drivers that attach to itMatthew Dempsky
need to provide an xxxprobe() method instead of an xxxmatch() method. The critical difference is xxxprobe() is given a device softc for the second argument, whereas a xxxmatch() is given the cfdata as the second argument. This commit fixes the handful of ISA device drivers that incorrectly cast the second argument to a "struct cfdata *" instead of a "struct device *". (Minor complication: unlike isa(4), isapnp(4) is a direct bus, and if_we.c used the same probe/match code for both; now separate we_probe and we_match methods are used as appropriate.) "makes sense to me" krw@; ok miod@
2011-06-19UnbreakMiod Vallat
2011-06-19fix up unbalanced format stringsJonathan Gray
ok deraadt@
2011-06-19Don't assume no interrupts if the command processor is not running.Owain Ainsworth
While this means we are on the way to vt switch a few things want vblanks interrupts between disabling the cp and the vt switch (modeset_ctl ioctls for example) tested by jsg@, found and ok kettenis@.
2011-06-19Fix typo in the "fixed" HyperTransport MSI Mapping Capability address.Mark Kettenis
2011-06-19Use disk_lock_nointr() in the xxclose() routines so that they cannotTheo de Raadt
be interrupted. ok matthew
2011-06-19Minor cleanup for disk_lock() and disk_unlock().Matthew Dempsky
ok deraadt@