summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change `iostat -Ix` to display total duration of transactions insteadtrociny2012-12-152-13/+42
| | | | | | | | | | | of average duration, and total busy time instead of %. This looks more useful when one runs `iostat -Ix` periodically to collect statistics: e.g. now it is possible to calculate busy % between two runs subtracting total busy times and dividing per time period. Average duration and % busy are still available via `iostat -x`.
* New devstat metrics for devstat_compute_statistics():trociny2012-12-153-9/+75
| | | | | | | | | DSM_TOTAL_DURATION DSM_TOTAL_DURATION_READ DSM_TOTAL_DURATION_WRITE DSM_TOTAL_DURATION_FREE DSM_TOTAL_DURATION_OTHER DSM_TOTAL_BUSY_TIME
* Update to the new and brighter pkg worldphk2012-12-151-27/+39
|
* In pfioctl, if the permission checks failed we returned with vnet contexttrociny2012-12-151-2/+2
| | | | | | | | | | set. As the checks don't require vnet context, this is fixed by setting vnet after the checks. PR: kern/160541 Submitted by: Nikos Vassiliadis (slightly different approach)
* Four .c files from OpenBSM are used, in modified form, by the kernel torwatson2012-12-156-5/+5
| | | | | | | | implement the BSM audit trail format. Rename the kernel versions of the files to match the userspace filenames so that it's easier to work out what they correspond to, and therefore ensure they are kept in-sync. Obtained from: TrustedBSD Project
* Merge OpenBSM 1.2-alpha3 from the vendor branch to 10-CURRENT; this versionrwatson2012-12-1510-35/+49
| | | | | | | | included various upstreamed patches from the FreeBSD base to make OpenBSM compile more easily with bmake, higher warning levels, clang, and several other loose ends. Obtained from: TrustedBSD Project
* Regenerate usb.confhselasky2012-12-151-1/+25
| | | | MFC after: 1 week
* MFV r244245:mm2012-12-151-9/+17
| | | | | | | | | | | | | | Merge two zdb bugfixes from vendor (illumos) illumos-gate 13894:f4af77f6bbd2 3397 zdb <pool> <objnum> output is too verbose 3398 zdb can't dump feature flags zap objects References: https://www.illumos.org/issues/3397 https://www.illumos.org/issues/3398 MFC after: 1 week
* Fix extending filesystems of weird size by making sure the actual sizetrasz2012-12-151-0/+6
| | | | is always multiple of fragment size.
* When mnt_vnode_next_active iterator cannot lock the next vnode andkib2012-12-152-63/+54
| | | | | | | | | | | | | | | | | | | yields, specify the user priority for the yield. Otherwise, a higher-priority (kernel) thread could fall into the priority-inversion with the thread owning the mutex lock. On single-processor machines or UP kernels, do not loop adaptively when the next vnode cannot be locked, instead yield unconditionally. Restructure the iteration initializer and the iterator to remove code duplication. Put the code to fetch and lock a vnode next to the current marker, into the mnt_vnode_next_active() function, and use it instead of repeating the loop. Reported by: hrs, rmacklem Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 3 days
* Fix a typo, resulting in the NULL pointer dereference.kib2012-12-151-1/+1
| | | | | | Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 3 days
* Line up the continuation backslashes.kib2012-12-151-2/+2
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days
* Remove a special case for XEN, which is erronous and makes vfork(2)kib2012-12-151-4/+0
| | | | | | | behaviour to differ from the documented, only on XEN. If there are any issues with XEN pmap left, they should be fixed in pmap. MFC after: 2 weeks
* Put shared library debug info into separate .symbols fileemaste2012-12-152-2/+22
| | | | Sponsored by: ADARA Networks
* The group list for a non-default export entry (a host/subnet one)rmacklem2012-12-141-1/+1
| | | | | | | | | | was being copied from the wrong place. This patch fixes that. This could cause access failures for mapped users, when the group permissions were needed. PR: 147998 Submitted by: Christopher Key (cjk32 at cam.ac.uk) MFC after: 2 weeks
* Minor refactoring prior to .symbols file changesemaste2012-12-142-14/+9
| | | | | | | | - Combine .if x and .if !x using .else - Separate out beforelinking dependency - Add comments to clarify .if nesting Sponsored by: ADARA Networks
* - When checking if a dump exists on the given device there is no need topjd2012-12-143-6/+8
| | | | | | | | | | | | | | | | provide dump directory. Eliminate this redundant argument. This changes the usage, but the only risk here is that a warning will be printed about directory given as device. - Update usage of -C option. - When clearing dump header from the given device there is also no need to provide dump directory, although additional arguments for -c were not documented. - Document that -v can be used with -c and that list of devices can be given. Obtained from: WHEEL Systems
* The clear option (-c) is not compatible with keep (-k) and compress (-z)pjd2012-12-141-0/+2
| | | | | | options. Obtained from: WHEEL Systems
* If we are not going to clear the dump (we are either just checking if the dumppjd2012-12-141-2/+2
| | | | | | exists or we want to keep it), open device read-only. Obtained from: WHEEL Systems
* Whitespace cleanups.pjd2012-12-141-6/+6
|
* Fix error in r235991. No-sleep version of IFNET_RLOCK() shouldglebius2012-12-141-2/+2
| | | | | | be used here, since we may hold the main pf rulesets rwlock. Reported by: Fleuriot Damien <ml my.gd>
* Add an #include guard to the sys/fnv_hash.h.ae2012-12-141-0/+3
| | | | MFC after: 3 days
* Fix VIMAGE build broken in r244185.glebius2012-12-141-1/+1
| | | | Submitted by: Nikolai Lifanov <lifanov mail.lifanov.com>
* virtio: Start taskqueues threads after attach cannot failbryanv2012-12-143-12/+9
| | | | | | | | | | If virtio_setup_intr() failed during boot, we would hang in taskqueue_free() -> taskqueue_terminate() for all the taskq threads to terminate. This will never happen since the scheduler is not running by this point. Reported by: neel, grehan Approved by: grehan (mentor)
* Teach sysctl(8) about parsing a file (while I'm there also give itdelphij2012-12-133-99/+188
| | | | | | | capability of parsing both = and : formats). Submitted by: hrs (initial version, bugs are mine) MFC after: 3 months
* Add support for QEMU's version of Versatile Platform Boardgonzo2012-12-1315-0/+3465
|
* Add driver for PrimeCell Vectored Interrupt Controller (PL190)gonzo2012-12-132-0/+188
|
* Fixes zfs receive errors caused by snapshot replication being processed in asmh2012-12-131-2/+29
| | | | | | | | | | | | | random order instead of creation order. Eliminates needless filesystem renames caused by removed parent snapshots which subsequently causes many more errors. PR: kern/172259 Submitted by: Steven Hartland Reviewed by: pjd (mentor) Approved by: pjd (mentor) MFC after: 2 weeks
* Add bus_space_read_8 and bus_space_write_8 for amd64.jimharris2012-12-131-4/+34
| | | | | | | | | | | | | | | | | | | | Rather than trying to KASSERT for callers that invoke this on IO tags, either do nothing (for write_8) or return ~0 (for read_8). Using KASSERT here just makes bus.h too messy from both polluting bus.h with systm.h (for any number of drivers that include bus.h without first including systm.h) or ports that use bus.h directly (i.e. libpciaccess) as reported by zeising@. Also don't try to implement all of the other bus_space functions for 8 byte access since realistically only these two are needed for some devices that expose 64-bit memory-mapped registers. Put the amd64-specific functions here rather than sys/amd64/include/bus.h so that we can keep this header unified for x86, as requested by mdf@ and tijl@. Submitted by: Carl Delsey <carl.r.delsey@intel.com> MFC after: 3 days
* Revert r243960 based on feedback regarding keeping x86 headers unifiedjimharris2012-12-133-171/+40
| | | | | | (mdf@, tijl@) and use of KASSERT/systm.h in bus.h (zeising@, bde@). Alternate implementation will be made in a separate commit.
* 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
OpenPOWER on IntegriCloud