summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a few examples.joel2013-03-157-7/+102
| | | | Obtained from: OpenBSD
* Fix two bugs:adrian2013-03-151-3/+8
| | | | | | | | | * when pulling frames off of the TID queue, the ATH_TID_REMOVE() macro decrements the axq_depth field. So don't do it twice. * in ath_tx_comp_cleanup_aggr(), bf wasn't being reset to bf_first before walking the buffer list to complete buffers; so those buffers will leak.
* Add support for Exar XR17V358 8-port serial device to puc(4)rstone2013-03-151-0/+20
| | | | | | Reviewed by: marius Sponsored by: Sandvine Inc. MFC after: 1 week
* Separate the copyright lines and the informational block by a blank line.kib2013-03-151-0/+1
| | | | | Requested by: joel MFC after: 2 weeks
* - Use m_getcl() instead of hand allocating.glebius2013-03-154-104/+51
| | | | | | | | | - Do not calculate constant length values at run time, CTASSERT() their sanity. - Remove superfluous cleaning of mbuf fields after allocation. - Replace compat macros with function calls. Sponsored by: Nginx, Inc.
* We can, and should use M_WAITOK here.glebius2013-03-151-1/+1
| | | | Sponsored by: Nginx, Inc.
* Add my copyright for the 2012 year work, in particular vn_io_fault()kib2013-03-151-0/+5
| | | | | | | and f_offset locking. Add required Foundation notice for r248319. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* Use m_get/m_gethdr instead of compat macros.glebius2013-03-1510-22/+16
| | | | Sponsored by: Nginx, Inc.
* - Use m_getcl() instead of hand allocating.glebius2013-03-151-12/+8
| | | | Sponsored by: Nginx, Inc.
* - Use m_getcl() instead of hand allocating.glebius2013-03-151-11/+8
| | | | | | | | - Convert panic() to KASSERT. - Remove superfluous cleaning of mbuf fields after allocation. - Add comment on possible use of m_get2() here. Sponsored by: Nginx, Inc.
* - Use m_getcl() instead of hand allocating.glebius2013-03-154-33/+22
| | | | | | | - Use m_get()/m_gethdr() instead of macros. - Remove superfluous cleaning of mbuf fields after allocation. Sponsored by: Nginx, Inc.
* Use m_getcl() instead of hand made allocation.glebius2013-03-151-10/+5
| | | | Sponsored by: Nginx, Inc.
* Implement the helper function vn_io_fault_pgmove(), intended to use bykib2013-03-152-0/+41
| | | | | | | | | | | the filesystem VOP_READ() and VOP_WRITE() implementations in the same way as vn_io_fault_uiomove() over the unmapped buffers. Helper provides the convenient wrapper over the pmap_copy_pages() for struct uio consumers, taking care of the TDP_UIOHELD situations. Sponsored by: The FreeBSD Foundation Tested by: pho MFC after: 2 weeks
* Use m_get() and m_getcl() instead of compat macros.glebius2013-03-153-7/+8
|
* Use m_get2() + m_align() instead of hand made key_alloc_mbuf(). Codeglebius2013-03-151-104/+50
| | | | | | | examination shows, that although key_alloc_mbuf() could return chains, the callers never use chains, so m_get2() should suffice. Sponsored by: Nginx, Inc.
* - Use m_get2() instead of hand allocating.glebius2013-03-151-6/+4
| | | | | | - No need for u_int cast here. Sponsored by: Nginx, Inc.
* Make m_get2() never use clusters that are bigger than PAGE_SIZE.glebius2013-03-151-13/+3
| | | | | Requested by: andre, jhb Sponsored by: Nginx, Inc.
* Make this more compilable.glebius2013-03-151-8/+7
|
* Remove a now incorrect comment.adrian2013-03-151-2/+0
| | | | | This comment dates back to my initial stab at TX aggregation completion, where I didn't even bother trying to do software retries.
* Add locking around the new holdingbf code.adrian2013-03-152-4/+16
| | | | | | | | | | Since this is being done during buffer free, it's a crap shoot whether the TX path lock is held or not. I tried putting the ath_freebuf() code inside the TX lock and I got all kinds of locking issues - it turns out that the buffer free path sometimes is called with the lock held and sometimes isn't. So I'll go and fix that soon. Hence for now the holdingbf buffers are protected by the TXBUF lock.
* MFV of 248305, tzdata2013bedwin2013-03-158-67/+324
| | | | | | | | Lots of historical data added. Morocco: add DST rules for the coming years Cuba: Doing DST in 2013. Chili: Will do DST in 2013 as it seems.
* Make file name generation to work with both new and old versions of OpenSSL.pjd2013-03-151-2/+2
| | | | Sponsored by: The FreeBSD Foundation
*-. Replace our (un)vis(1) commands with implementations from NetBSD tobrooks2013-03-1512-291/+482
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | match our import of the (un)vis(3) APIs. This adds support for multibyte encoding and the -h and -m flags which support HTTP and MIME encoding respectively. PR: bin/175418 Obtained from: NetBSD
| | * Tag 2013-02-21 import of NetBSD's vis(1)brooks2013-02-215-0/+569
| | |
| | * Vendor import of NetBSD's vis(1) at 2013-02-21brooks2013-02-216-0/+592
| |
| * Tag 2013-02-21 import of NetBSD's unvis(1)brooks2013-02-213-0/+224
| |
| * Vendor import of NetBSD's unvis(1) at 2013-02-21brooks2013-02-214-0/+247
|
* Update to the latest (un)vis(3) sources from NetBSD. This addsbrooks2013-03-147-406/+606
| | | | | | | | | | | | | multibyte support[0] and the new functions strenvisx and strsenvisx. Add MLINKS for vis(3) functions add by this and the initial import from NetBSD[1]. PR: bin/166364, bin/175418 Submitted by: "J.R. Oldroyd" <fbsd@opal.com>[0] stefanf[1] Obtained from: NetBSD MFC after: 2 weeks
* When throttling a process to enforce RACCT limits, do not use neithertrasz2013-03-141-9/+2
| | | | | | | | PBDRY (which simply doesn't make any sense) nor PCATCH (which could be used by a malicious process to work around the PCPU limit). Submitted by: Rudo Tomori Reviewed by: kib
* Accessing td_state requires thread lock to be held.trasz2013-03-141-4/+2
| | | | | Submitted by: Rudo Tomori Reviewed by: kib
* Now that ioctl(2) is allowed in capability mode and we can limit ioctls for thepjd2013-03-141-16/+48
| | | | | | | | | given descriptors, use Capsicum sandboxing for hastd in primary and secondary modes. Allow for DIOCGDELETE and DIOCGFLUSH ioctls on provider descriptor and for G_GATE_CMD_MODIFY, G_GATE_CMD_START, G_GATE_CMD_DONE and G_GATE_CMD_DESTROY on GEOM Gate descriptor. Sponsored by: The FreeBSD Foundation
* Minor corrections.pjd2013-03-141-4/+4
|
* We don't need buffer to handle BIO_DELETE, so don't check buffer size for it.pjd2013-03-141-1/+1
| | | | This fixes handling BIO_DELETE larger than MAXPHYS.
* Delete requests can be larger than MAXPHYS.pjd2013-03-141-1/+1
|
* Rename 'status' command to 'list' and introduce new 'status' which producesmarck2013-03-142-5/+71
| | | | | | | | | | more terse output more observable for both scripts and humans. Also, it shifts hastctl closer to GEOM utilities with their list/status command pairs. Approved by: pjd MFC after: 4 weeks
* FDT_DTS_FILE is expanded in a Makefile so use :R to remove the suffixbrooks2013-03-141-2/+2
| | | | rather than using echo|cut to remove everything after the first '.'.
* Removed redundant includes.pjd2013-03-141-10/+0
|
* Add FreeBSD 9.1.joel2013-03-141-6/+9
|
* Some style fixes.kib2013-03-144-13/+11
| | | | Sponsored by: The FreeBSD Foundation
* Add currently unused flag argument to the cluster_read(),kib2013-03-1410-35/+32
| | | | | | | | cluster_write() and cluster_wbuild() functions. The flags to be allowed are a subset of the GB_* flags for getblk(). Sponsored by: The FreeBSD Foundation Tested by: pho
* When pidptr was passed as NULL to pidfile_open(3), we were returningpjd2013-03-141-13/+18
| | | | | | | | | EAGAIN/EWOULDBLOCK when another daemon was running and had the pidfile open. We should return EEXIST in that case, fix it. Reported by: Dirk Engling <erdgeist@erdgeist.org> Reviewed by: jhb, Dirk Engling <erdgeist@erdgeist.org> MFC after: 1 week
* Add pmap function pmap_copy_pages(), which copies the content of thekib2013-03-1415-1/+466
| | | | | | | | | | | | | | | | | | | | | | | | pages around, taking array of vm_page_t both for source and destination. Starting offsets and total transfer size are specified. The function implements optimal algorithm for copying using the platform-specific optimizations. For instance, on the architectures were the direct map is available, no transient mappings are created, for i386 the per-cpu ephemeral page frame is used. The code was typically borrowed from the pmap_copy_page() for the same architecture. Only i386/amd64, powerpc aim and arm/arm-v6 implementations were tested at the time of commit. High-level code, not committed yet to the tree, ensures that the use of the function is only allowed after explicit enablement. For sparc64, the existing code has known issues and a stab is added instead, to allow the kernel linking. Sponsored by: The FreeBSD Foundation Tested by: pho (i386, amd64), scottl (amd64), ian (arm and arm-v6) MFC after: 2 weeks
* Correct type for DIOCGSTRIPESIZE. Without this theredelphij2013-03-141-1/+1
| | | | | | | | | would be a stack overflow which will crash the program later. PR: bin/176953 Submitted by: r4721 tormail org MFC after: 3 days
* Sort sections.joel2013-03-141-23/+23
|
* Remove excessive and inconsistent initializers for the various kernelkib2013-03-141-4/+4
| | | | | | maps and submaps. MFC after: 2 weeks
* Rewrite the vfs_bio_clrbuf(9) to not access the b_data for B_VMIOkib2013-03-141-13/+15
| | | | | | | | | buffers directly, use pmap_zero_page_area(9) for each zeroing page region instead. Sponsored by: The FreeBSD Foundation Tested by: pho MFC after: 2 weeks
* Fix minor spelling error in a comment.joel2013-03-141-1/+1
|
* Minor mdoc fixes.joel2013-03-141-1/+4
|
* Add GEOM_* kernel options to the SYNOPSIS.joel2013-03-141-1/+36
|
* MFV r248266:mm2013-03-143-4/+9
| | | | | | | | | | Import minor ZFS changes from vendor Illumos ZFS issues: 3604 zdb should print bpobjs more verbosely (fix zdb hang) 3606 zpool status -x shouldn't warn about old on-disk format MFC after: 3 days
OpenPOWER on IntegriCloud