summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added vfs.zfs.vdev.trim_on_init sysctl which allows full vdev trim onsmh2012-12-131-1/+6
| | | | | | | | | | | initialisation to be enabled (1) / disabled (0) defaults to enabled. This is useful for devices which have a slow trim speed and are either new or have otherwise already been wiped e.g. secure erase. PR: kern/173116 Submitted by: Steven Hartland Approved by: pjd (mentor)
* Upgrades trim free request sizes before inserting them into to free map,smh2012-12-132-3/+14
| | | | | | | | | | | | | | | | | making range consolidation much more effective particularly for small deletes. This reduces memory used by the free map as well as reducing the number of bio requests down to geom required to process all deletes. In tests this achieved a factor of 10 reduction of trim ranges / geom call downs. While I'm here correct the description of zio_vdev_io_start. PR: kern/173254 Submitted by: Steven Hartland Approved by: pjd (mentor)
* Merge rev. 1.119 from OpenBSD:glebius2012-12-131-6/+11
| | | | | | | | | | | date: 2009/03/31 01:21:29; author: dlg; state: Exp; lines: +9 -16 ... this also firms up some of the input parsing so it handles short frames a bit better. This actually fixes reading beyond mbuf data area in pfsync_input(), that may happen at certain pfsync datagrams.
* Initialize state id prior to attaching state to key hash. Otherwise aglebius2012-12-131-3/+3
| | | | | race can happen, when pf_find_state() finds state via key hash, and locks id hash slot 0 instead of appropriate to state id slot.
* Fix problem in r238990. The LLE_LINKED flag should be tested prior toglebius2012-12-133-12/+20
| | | | | | | | | entering llentry_free(), and in case if we lose the race, we should simply perform LLE_FREE_LOCKED(). Otherwise, if the race is lost by the thread performing arptimer(), it will remove two references from the lle instead of one. Reported by: Ian FREISLICH <ianf clue.co.za>
* Fixed missing 'n' of \n for my committers linesmh2012-12-131-1/+1
| | | | Approved by: avg (mentor)
* Fix the location of auditdistd configuration file.pjd2012-12-131-1/+1
| | | | Reported by: Johan Hendriks <joh.hendriks@gmail.com>
* Bump MAX_COLS to 512 to take advantage of wider terminals.rpaulo2012-12-131-1/+1
|
* Add the common FreeBSD SVN properties.rpaulo2012-12-130-0/+0
|
* Prevent possible usage of uninitialized pbase variable by checkinggonzo2012-12-131-1/+3
| | | | return value of fdt_get_range
* Add memory barrier macros for ARMgonzo2012-12-131-0/+2
|
* Disable interrupts in filter in order to avoid interrupt storm andgonzo2012-12-131-7/+4
| | | | CPU starvation
* Use even more conventional conversion routines.grog2012-12-131-1/+1
| | | | Reported by: peterj@
* Reluctantly remove one of the most extraordinary numeric conversiongrog2012-12-131-7/+5
| | | | routines I have ever seen and replace with something far more boring.
* Change progress indicator for downloading patches.alfred2012-12-131-2/+26
| | | | | Use a percent style indicator instead of emitting one long line of patch numbers.
* Give credit where credit is due.eadler2012-12-131-0/+2
| | | | | Requested by: Álvaro Castillo Approved by: cperciva (implicit)
* Add my ex-mentors.jimharris2012-12-121-0/+4
|
* sh: Detect and flag write errors on stdout in builtins.jilles2012-12-124-0/+25
| | | | | | | If there is a write error on stdout, a message will be printed (to stderr) and the exit status will be changed to 2 if it would have been 0 or 1. PR: bin/158206
* Fix a regression caused by SVN r222417.dteske2012-12-126-40/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | Prior to r222417, setting `password' in loader.conf(5) did not prevent boot but instead only prevented changes to boot options by prompting for password if autoboot failed or the user interrupted the countdown sequence. After r222417 the same machine with `password' set in loader.conf(5) would no longer boot without _always_ entering the password. This patch restores the old (8.x and older) functionality for password in loader.conf(5) while adding a new bootlock_password feature to replace the edge-case should anybody desire the regressed functionality (HINT: great for PXE servers and/or private distributions). loader.conf(5) was updated to be more clear with-respect to password setting (previous text was misleading). Documentation (loader.conf(5) and check-password.4th(8)) has been updated to include notes on the new bootlock_password setting. Special thanks to Alex Verbod for bringing this to my attention and helping to refine the loader.conf(5) text. PR: conf/170110 Submitted by: Vitaly Zakharov <ded3axap@gmail.com> Reviewed by: Alexander Verbod <alexander.verbod@gmail.com>
* Fix a crash in tcp_input(), that happens when mbuf has a fwd_tag on it,glebius2012-12-121-0/+2
| | | | | | | | | but later after processing and freeing the tag, we need to jump back again to the findpcb label. Since the fwd_tag pointer wasn't NULL we tried to process and free the tag for second time. Reported & tested by: Pawel Tyll <ptyll nitronet.pl> MFC after: 3 days
* Add myself as a new src committersmh2012-12-121-0/+3
| | | | Approved by: pjd (mentor)
* Renamed zfs trim stats removing duplicate zio_trim identifier from the namesmh2012-12-124-16/+19
| | | | | | | | | | | Added description option to kstats. Added descriptions for zio_trim kstats PR: kern/173113 Submitted by: Steven Hartland Reviewed by: pjd Approved by: pjd MFC after: 2 weeks
* Use kern.max_pid sysctl to obtain maximum PID number instead of using localpjd2012-12-121-3/+17
| | | | | | define. Reviewed by: jhb
* Eliminate redundant variable.pjd2012-12-121-6/+3
|
* Add IDs for SATA controllers on AMD Hudson-2 series chipsets.mav2012-12-123-0/+17
| | | | | | | I am not exactly sure about the naming due to lack of specs on AMD site, but it is better to have some identification then none at all. MFC after: 1 month
* Add quirks for AD1984A codec and Lenovo X300 laptop.mav2012-12-122-1/+19
| | | | | PR: kern/148741 MFC after: 2 weeks
* Implement an API to allow a hypervisor to save/restoregrehan2012-12-122-1/+36
| | | | | | | | | | | | | guest floating point state without having to know the size of floating-point state. Unstaticize fpurestore to allow the hypervisor to save/restore guest state using fpusave/fpurestore on the allocated FPU state area. Reviewed by: kib Obtained from: NetApp/bhyve MFC after: 1 week
* virtio_scsi: Remove duplicated linesbryanv2012-12-121-4/+1
| | | | | | | These must have been accidently copied from the if statement a few lines later. Also remove parameter name from function prototype. Approved by: grehan (mentor)
* Handle large negative block counts correctly.grog2012-12-121-1/+1
| | | | MFC after: 2 weeks
* Make Tflag and Wflag filters work for more sysctl options.alfred2012-12-121-11/+11
| | | | | To do this move the Tflag and Wflag checks earlier in show_var() so we bail earlier for variables not matching our query.
* Add -R, an option to restart all enabled "local" services.delphij2012-12-122-2/+35
| | | | | Discussed on: -rc@ (in September) MFC after: 2 months
* libc: Make various internal file descriptors close-on-exec.jilles2012-12-112-2/+2
| | | | These are obtained via fopen().
* Cleanup a few duplicate llvm libs that snuck in with the recent update.dim2012-12-111-4/+1
| | | | Noticed by: rdivacky
* Similar to CTLFLAG_RDTUN, provide CTLFLAG_RWTUN that defines writable sysctlpjd2012-12-111-1/+2
| | | | that can also be modified by loader tunable.
* Remove 'dangerous' instructions from the example make.conf.eadler2012-12-111-8/+7
| | | | | | | | | | Clarify when and why these might be used and that this isn't a supported configuration. PR: docs/144488 Submitted by: amdmi3 Approved by: cperciva (implicit) MFC after: 2 weeks
* Add pci id for the xeon hd4000 (IvyBridge server GT2)bapt2012-12-111-0/+5
| | | | | | Submitted by: François Tigeot <ftigeot@wolfpond.org> Obtained from: dragonfly MFC after: 3 days
* Merge 1.127 from OpenBSD, that closes a regression from 1.125 (mergedglebius2012-12-111-3/+6
| | | | | | | | | | as r242694): do better detection of when we have a better version of the tcp sequence windows than our peer. this resolves the last of the pfsync traffic storm issues ive been able to produce, and therefore makes it possible to do usable active-active statuful firewalls with pf.
* Cleanup more of the kassert_panic.alfred2012-12-111-9/+30
| | | | | fix compile warnings on !amd64 and NULL derefs that would happen if kassert_panic() would return.
* Fix WITNESS when INVARIANT_SUPPORT is defined.alfred2012-12-111-0/+1
| | | | | | This fixes tinderbox breakage from r244105. Pointed out by: adrian
* There's no need to use a TXQ pointer here; we specifically need theadrian2012-12-112-30/+14
| | | | | | hardware queue ID when queuing to EDMA descriptors. This is a small part of trying to reduce the size of ath_buf entries.
* Allow sysctl to filter boot and runtime tunables.alfred2012-12-112-6/+30
| | | | | | | | | | | Add the following flags to sysctl: -W - show only writable sysctls -T - show only tuneable sysctls This can be used to create a /var/run/sysctl.boot to compare set tunables versus booted tunables. Sponsored by: iXsystems
* Switch the hardwired WITNESS panics to kassert_panic.alfred2012-12-113-42/+58
| | | | | | | | | | | This is an ongoing effort to provide runtime debug information useful in the field that does not panic existing installations. This gives us the flexibility needed when shipping images to a potentially large audience with WITNESS enabled without worrying about formerly non-fatal LORs hurting a release. Sponsored by: iXsystems
* In parse():delphij2012-12-111-6/+5
| | | | | | | | - Only operate on copy, don't operate on source. - Eliminate home-rolled strsep(). - Constify the parameter. MFC after: 2 weeks
* back out half of 244098.alfred2012-12-111-1/+1
| | | | | | kern.bootfile needs to be rw for installkernel. Pointed out by: kib, flo
* Add CTLFLAG_STATS to sysctl flagsalfred2012-12-101-0/+1
| | | | | | | | | | | | In preparation for sysctl(8) growing the ability to only print out boot/run-time tunables we need a way to differentiate between RW sysctl nodes that tune a particular thing, or simply export a stat that we want to allow the sysadmin to reset to 0 (or some other value). To do so, we add the CTLFLAG_STATS which should be OR'd into the CTLFLAGs when exporting a "writable/resettable" statistic node via sysctl.
* Add constant missed in r244099alfred2012-12-101-0/+1
| | | | KDB entered due to KASSERT.
* allow KASSERT to enter KDB.alfred2012-12-101-0/+14
|
* make sysctls kern.{bootfile,conftxt} read-onlyalfred2012-12-101-10/+3
| | | | MFC after: 1 month
* Sync pf.os with OpenBSD:delphij2012-12-101-2/+10
| | | | | | | add a handful of linux signatures from p0fv2 and some other signatures from observation. MFC after: 2 weeks
* Do not yield while owning a mutex. The Giant reacquire in thekib2012-12-101-16/+18
| | | | | | | | | | | | | | | | | kern_yield() is problematic than. The owned mutex is the mount interlock, and it is in fact not needed to guarantee the stability of the mount list of active vnodes, so fix the the issue by only taking the mount interlock for MNT_REF and MNT_REL operations. While there, augment the unconditional yield by some amount of spinning [1]. Reported and tested by: pho Reviewed by: attilio Submitted by: attilio [1] MFC after: 3 days
OpenPOWER on IntegriCloud