summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Sort properly the headersbapt2014-07-161-4/+5
| | | | | | While here space/tabs cleanup Reviewed by: kib
* White space fixesbapt2014-07-161-2/+2
|
* Sort headersbapt2014-07-161-12/+8
| | | | | | Constify long options Remove useless call to sigemptyset properly check errno when waiting for a process status when a SIGCHLD is received
* Fix typobapt2014-07-161-1/+1
|
* Style(9) fixbapt2014-07-161-0/+1
|
* Fix build with gccbapt2014-07-161-5/+4
|
* Fix indentationbapt2014-07-161-1/+1
|
* New BSDL timeout(1) utility compatible with GNU timeoutbapt2014-07-164-0/+412
| | | | | | | it fully passes the GNU timeout regression tests, it is written in a mostly portable way (only signal parsing is relying on non portable structures) Phabric: D377
* Improve support for Intel Lynx Point USB 3.0 controllers by using thehselasky2014-07-161-3/+6
| | | | | | | | | USB 2.0 port mask in addition to the USB 3.0 port mask. The hardware does not always accept when writing -1U to the port switching registers. MFC after: 3 days Tested by: Huang Wen Hui <huanghwh@gmail.com>
* When we fail to extract the pkg binaries (for example, / is read-only),gavin2014-07-161-1/+2
| | | | | | give a more helpful error message. MFC after: 1 week
* Add a bandaid to fix GCC build (on sparc64 et al).delphij2014-07-151-0/+1
|
* Move the "retry:" label so that the calls to m_pullup() arermacklem2014-07-151-1/+1
| | | | | | | | | | not done after the call to m_defrag(). This fixes a problem where m_pullup() would prepend an mbuf to the list created by m_defrag() making the chain greater than 32 again. Tested by: rcarter@pinyon.org Reviewed by: yongari, jfv MFC after: 2 weeks
* Since r202933, kthread_suspend_check() takes no arguments. Update thegavin2014-07-151-2/+2
| | | | | | example to match. MFC after: 3 days
* Also link 'show bio' to g_bio(9.)bdrewery2014-07-151-1/+3
| | | | | | X-MFC-With: r268715 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* MFV r268714:delphij2014-07-152-15/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve extreme rewind import. When doing an "extreme rewind" import ("zpool import -XF"), we attempt to verify all data in the pool, essentially scrubbing the entire pool. The problem is that spa_load_verify_cb() issues an unbounded number of concurrent scrub i/os. This can lead to all of memory being used for these zio's, wedging the system. Like normal scrub, we need to put a cap on the number of outstanding i/os, and have the traverse thread block when we reach this cap. For this purpose the cap can be very large (10,000) to optimize the elevator algorithm. Three kernel tunables have been added: vfs.zfs.spa_load_verify_maxinflight vfs.zfs.spa_load_verify_metadata vfs.zfs.spa_load_verify_data The latter two tunables controls whether metadata and/or user data when doing extreme rewind. Make 'zpool import -T' imply scrub. Make zpool import -T <txg> accept hexadecimal values for the txg when prefixed with 0x. Skip txg's for which there is no uberblock when doing extreme rewind. Skip reading all user data twice by skipping prefetches when doing extreme rewinds as we do not access via the ARC. Illumos issues: 4970 need controls on i/o issued by zpool import -XF 4971 zpool import -T should accept hex values 4972 zpool import -T implies extreme rewind, and thus a scrub 4973 spa_load_retry retries the same txg 4974 spa_load_verify() reads all data twice MFC after: 2 weeks
* Document the 'show bio' command added in 2009.bdrewery2014-07-151-10/+17
| | | | | | | | While here also reword 'show buffer' to have an 'addr' argument and to match other struct documentation. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* MFV r268702:delphij2014-07-155-1/+19
| | | | | | | | | Add missing *_destroy() calls in various places with ZFS. Illumos issue: 4975 missing mutex_destroy() calls in zfs MFC after: 2 weeks
* Followup to r268466.kib2014-07-151-28/+62
| | | | | | | | | | | | | | | | - Move the code to calculate resident count into separate function. It reduces the indent level and makes the operation of vmmap_skip_res_cnt tunable more clear. - Optimize the calculation of the resident page count for map entry. Skip directly to the next lowest available index and page among the whole shadow chain. - Restore the use of pmap_incore(9), only to verify that current mapping is indeed superpage. - Note the issue with the invalid pages. Suggested and reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Change the calculation of the kinfo_vmentry field kve_private_residentkib2014-07-151-1/+1
| | | | | | | | to reflect its name. Noted and reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week
* cxgbe(4): Display CF facility correctly in the device log.np2014-07-151-0/+1
| | | | MFC after: 3 days
* Add support for operand size and address size override prefixes in bhyve'sneel2014-07-155-123/+234
| | | | | | | | | | | | | | | | | | | instruction emulation [1]. Fix bug in emulation of opcode 0x8A where the destination is a legacy high byte register and the guest vcpu is in 32-bit mode. Prior to this change instead of modifying %ah, %bh, %ch or %dh the emulation would end up modifying %spl, %bpl, %sil or %dil instead. Add support for moffsets by treating it as a 2, 4 or 8 byte immediate value during instruction decoding. Fix bug in verify_gla() where the linear address computed after decoding the instruction was not being truncated to the effective address size [2]. Tested by: Leon Dang [1] Reported by: Peter Grehan [2] Sponsored by: Nahanni Systems
* Actually set the "no execute" bit on 1 MB page mappings in pmap_protect().alc2014-07-151-1/+1
| | | | | | | Previously, the "no execute" bit was being set directly in the PTE, instead of the local variable in which the new PTE value is being constructed. So, when the local variable was finally assigned to the PTE, the "no execute" bit setting was lost.
* Fix build with SMP disabled.jhb2014-07-152-0/+8
| | | | | CR: https://phabric.freebsd.org/D407 Reviewed by: royger
* Add a comment to explain the EAGAIN is only there for POSIX compliancebapt2014-07-151-0/+1
| | | | | Resquested by: kib Reviewed by: des
* Make amd64 pmap_copy_pages() functional for pages not mapped by DMAP.kib2014-07-151-5/+53
| | | | | | | Requested and reviewed by: royger Tested by: pho, royger Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Eliminate repeated calculation of next_bucket in pmap_protect() andalc2014-07-151-13/+12
| | | | | pmap_remove(). Eliminate an unnecessary variable from pmap_remove() and pmap_advise().
* Add image_data() for checking whether a sequence of blocks has data.marcel2014-07-154-14/+77
| | | | | | | | | Use this for VHD and VMDK to avoid allocating space in the image for empty sectors. Note that this negatively affects performance because mkimg uses a temporary file for the intermediate storage. When mkimg has better internal book keeping, performance can be significantly improved.
* libc/stdlib: Minor cleanups to code originating in NetBSDpfg2014-07-153-22/+14
| | | | | | | Mostly ANSIfication and typos. Obtained from: NetBSD MFC after: 5 days
* Document that listen(2) can fail with EDESTADDRREQ.kevlo2014-07-151-1/+4
|
* libc/gen: small updates to code originating at OpenBSDpfg2014-07-152-19/+8
| | | | | | | | | | | | | | | | | | | arc4random.c - CVS rev. 1.22 Change arc4random_uniform() to calculate ``2**32 % upper_bound'' as ``-upper_bound % upper_bound''. Simplifies the code and makes it the same on both ILP32 and LP64 architectures, and also slightly faster on LP64 architectures by using a 32-bit remainder instead of a 64-bit remainder. - CVS rev. 1.23 Spacing readpassphrase.c -CVS rev. v 1.24 most obvious unsigned char casts for ctype Obtained from: OpenBSD MFC after: 5 days
* Fix an issue with service(8) where utilities such as screen(1) and tmux(1)dteske2014-07-151-1/+1
| | | | | | | | | | | | would behave differently when utilizing rc-script was invoked manually vs. service(8). The issue being that these utilities require the TERM environ variable to be set and service(8) was not passing it down. Reported by: Michael Dexter <editor@callfortesting.org> PR: bin/191869 Reviewed by: allanjude MFC after: 3 days X-MFC-to: stable/10, stable/9
* Allow multi-byte reads in the private CHELSIO_T4_GET_I2C ioctl. Thenp2014-07-153-37/+92
| | | | | | | | firmware allows up to 48B to be read this way but the driver limits itself to 8B at a time to remain compatible with old cxgbetool binaries. MFC after: 1 week
* Use the blockif CHS routine to create fake CHS values,grehan2014-07-151-0/+6
| | | | | | | | and then populate them in the identity page. This fixes a divide-by-zero error at probe time with NetBSD. MFC after: 1 week.
* Add a call to synthesize a C/H/S value for block emulationsgrehan2014-07-152-0/+51
| | | | | that require it (ahci). The algorithm used is from the VHD specification.
* fortune(8): Search fortune files installed by ports/packages as well asgavin2014-07-141-1/+2
| | | | | | | | those supplied by the base system. PR: 191800 Submitted by: Andy Kosela MFC after: 1 week
* Plug p_pptr null test in do_execve. It is always true.mjg2014-07-141-1/+1
|
* newfs_msdosfs: Respect FSFIXFATpfg2014-07-142-4/+4
| | | | | | | Fix some whitespace issues while here. Obtained from: NetBSD (rev. 1.9) MFC after: 3 days
* Manage struct sigacts refcnt with atomics instead of a mutex.mjg2014-07-142-11/+8
| | | | MFC after: 1 week
* Fix the Zedboard/Zynq ethernet driver to handle media speed changes soian2014-07-144-36/+207
| | | | | | | | | | | | that it can connect to switches at speeds other than 1gb. This requires changing the reference clock speed. Since we still don't have a general clock API that lets a SoC-independant driver manipulate its own clocks, this change includes a weak reference to a routine named cgem_set_ref_clk(). The default implementation is a no-op; SoC-specific code can provide an implementation that actually changes the speed. Submitted by: Thomas Skibo <ThomasSkibo@sbcglobal.net>
* msdosfs: Assorted fixes from other BSDs.pfg2014-07-142-15/+33
| | | | | | | | | | | | | | When truncating cluster chains fix the length of the cluster head. http://marc.info/?t=140304310700005&r=1&w=2 Avoid infinite loops in cluster chain linked lists. http://marc.info/?l=openbsd-tech&m=140275150804337&w=2 Avoid off-by-one on FAT12 filesystems. http://marc.info/?l=openbsd-tech&m=140234174104724&w=2 Obtained from: NetBSD (from OpenBSD) MFC after: 1 week
* fsck_msdosfs: be a bit more permissivepfg2014-07-141-5/+6
| | | | | | | | | | | | | | The free space value in the FSInfo block is merely unitialized when it is 0xffffffff. This fixes a bug found in NetBSD. It must be noted that we never supported all the checks that NetBSD does as some of them would cause failures with a freshly created FAT32 from MS-Windows. While here, bring some space fixes. Obtained from: NetBSD (rev. 1.22) MFC after: 3 days
* Minor (mostly cosmetic) cleanupspfg2014-07-142-3/+1
| | | | | | | | Several whitespace fixes convert *rootDir from external to static. Obtained from: NetBSD, OpenBSD (partial) MFC after: 3 days
* Bump mdoc date after r268621.delphij2014-07-141-1/+1
| | | | X-MFC-With: r268621
* On my Lenovo laptop, the firmware maps the EFI framebuffer with MTRRs setnwhitehorn2014-07-141-3/+25
| | | | | | | | to uncacheable. This leads to execrable console performance. Once PMAP is up, remap the framebuffer as write-combining. This reduces boot time on my laptop by 60% when booting with EFI. MFC after: 2 weeks
* Eliminate dead code. There is no direct map. This code was cut-and-pastedalc2014-07-141-10/+0
| | | | from amd64.
* Don't report non-native block-size pools under zpool status -xsmh2014-07-142-1/+3
| | | | | | | | | | | zpool status -x is used to identify pools that are exhibiting errors or are otherwise unavailable, therefore non-native block-size pools shouldn't be reported. Also update man page to clarify other additional conditions which won't cause a pool to be displayed under zpool status -x. Sponsored by: Multiplay
* Make generation of nslexer.c more robust.jmmv2014-07-141-3/+5
| | | | | | | | | | | | | | | | | | Ensure that lex errors fail the build instead of being silently ignored due to the piped call. Also postpone the update of the nslexer.c file until we are sure we have generated it properly. These changes fix some very obscure build failures I encountered while building FreeBSD within a chroot that did not have devfs mounted. The specific errors looked like: .../libc.so.7: undefined reference to `_nsyyerror' .../libc.so.7: undefined reference to `_nsyyin' .../libc.so.7: undefined reference to `_nsyylex' .../libc.so.7: undefined reference to `_nsyylineno' .../libc.so.7: undefined reference to `_nsyytext' and were caused due to a mangled nslexer.c being linked into libc.
* Unbreak the build by re-enabling exceptions.gahr2014-07-141-1/+1
| | | | | | | | | | | | | | | | | Disabling them breaks build on archs using GCC. The problem is at line 156 of bits/basic_ios.h: if (this->exceptions() & __state) __throw_exception_again; With exceptions disabled __throw_exception_again is defined as #define __throw_exception_again at line 45 of exception_defines.h and the code results in an empty loop body, which fails because of -Werror. Approved by: cognet
* Rework the tmpfs unmount.kib2014-07-143-27/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Suspend filesystem for unmount. This prevents new tmpfs nodes from instantiating, and also ensures that only unmount thread can destroy nodes. - Do not start tmpfs node deletion until all vnodes are reclaimed, which guarantees that no thread can access tmpfs data. For this, call vflush() in the loop, until the mnt_nvnodelistsize is non-zero. Note that after mnt_nvnodelistsize becomes 0, insmntque() blocks insertion of a vnode germ into the mount list of vnodes. - Fail node allocation when the filesystem is being unmounted. This is race-free due to the vflush() call in loop. This is mostly cosmetic, avoiding some more work which might be done until suspension in unmount is started. Note that there is currently no way to prevent new vnode instantiation from readers during the unmount. Due to this, forced unmount might live-lock if vflush() loop cannot get to the zero vnode count due to races with readers. The unmount would proceed after the load is lifted. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* Change forgotten in r268615. Set the OBJ_TMPFS_NODE flag forkib2014-07-141-1/+1
| | | | | | | | vm_object of VREG tmpfs node. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
OpenPOWER on IntegriCloud