summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r307731: Add names for some DASP devices.mav2016-10-282-0/+6
|
* MFC r300881, r302058 (by asomers):mav2016-10-282-57/+91
| | | | | | | | | | | | | | | | | | | | Avoid issuing spa config updates for physical path when not necessary ZFS's configuration needs to be updated whenever the physical path for a device changes, but not when a new device is introduced. This is because new devices necessarily cause config updates, but only if they are actually accepted into the pool. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c Split vdev_geom_set_physpath out of vdev_geom_attrchanged. When setting the vdev's physical path, only request a config update if the physical path has changed. Don't request it when opening a device for the first time, because the config sync will happen anyway upstack. sys/geom/geom_dev.c Split g_dev_set_physpath and g_dev_set_media out of g_dev_attrchanged
* MFC r300059 (by asomers): Speed up vdev_geom_open_by_guidsmav2016-10-281-43/+87
| | | | | | | | | | | | | | | Speedup is hard to measure because the only time vdev_geom_open_by_guids gets called on many drives at the same time is during boot. But with vdev_geom_open hacked to always call vdev_geom_open_by_guids, operations like "zpool create" speed up by 65%. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c * Read all of a vdev's labels in parallel instead of sequentially. * In vdev_geom_read_config, don't read the entire label, including the uberblock. That's a waste of RAM. Just read the vdev config nvlist. Reduces the IO and RAM involved with tasting from 1MB to 448KB.
* MFC r298814 (by asomers): Fix a use-after-free when "zpool import" failsmav2016-10-281-4/+2
| | | | | | | clear vd->vdev_tsd in vdev_geom_close_locked instead of vdev_geom_detach. In the latter function, it would fail to happen in certain circumstances where cp->private was unset. Ideally, the latter should never happen, but it can happen when vdev open fails, or where spares are involved.
* MFC r298786 (by asomers):mav2016-10-281-119/+97
| | | | | | | | | | | | Refactor vdev_geom_attach and friends to reduce code duplication sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c Move checks for provider's sectorsize and mediasize into a single location in vdev_geom_attach. Remove the zfs::vdev::taste class; it's ok to use the regular vdev class for tasting. Consolidate guid checks into a single location in vdev_attach_ok. Consolidate some error handling code from vdev_geom_attach into vdev_geom_detach, closing a resource leak of geom consumers in the process.
* MFC r294329 (by asomers): Disallow zvol-backed ZFS poolsmav2016-10-284-28/+34
| | | | | | | | | | | | | | | | | Using zvols as backing devices for ZFS pools is fraught with panics and deadlocks. For example, attempting to online a missing device in the presence of a zvol can cause a panic when vdev_geom tastes the zvol. Better to completely disable vdev_geom from ever opening a zvol. The solution relies on setting a thread-local variable during vdev_geom_open, and returning EOPNOTSUPP during zvol_open if that thread-local variable is set. Remove the check for MUTEX_HELD(&zfsdev_state_lock) in zvol_open. Its intent was to prevent a recursive mutex acquisition panic. However, the new check for the thread-local variable also fixes that problem. Also, fix a panic in vdev_geom_taste_orphan. For an unknown reason, this function was set to panic. But it can occur that a device disappears during tasting, and it causes no problems to ignore this departure.
* bump __FreeBSD_version for libzfs_core.havg2016-10-281-1/+1
| | | | Direct commit.
* MFC r307141: remove a few stray spaces from sys/param.havg2016-10-281-5/+5
|
* MFC r307131: install header files required development with libzfs_coreavg2016-10-281-0/+11
|
* MFC r307130: smbus: allow child devices to be added via hintsavg2016-10-282-32/+163
| | | | | Note that r281985 has never been MFC-ed to this branch, so this commit contains a couple of bits from that commit.
* MFC r306808:kib2016-10-281-2/+7
| | | | Add verbosity around failed reboot(2) call.
* MFC r306807:kib2016-10-281-1/+9
| | | | | | When making a pause after detecting hard kill of the single-user shell, ensure that we do sleep for at least the specified time, in presence of signals.
* MFC r307651:hselasky2016-10-281-5/+30
| | | | | | Add support for adjusting the hardware buffering delay for USB audio. Requested by: Goran Mekic <meka@tilda.center>
* MFC 303002: Include process IDs in core dumps.jhb2016-10-283-2/+9
| | | | | | | | | When threads were added to the kernel, the pr_pid member of the NT_PRSTATUS note was repurposed to store LWP IDs instead of process IDs. However, the process ID was no longer recorded in core dumps. This change adds a pr_pid field to prpsinfo (NT_PRSINFO). Rather than bumping the prpsinfo version number, note parsers can use the note's payload size to determine if pr_pid is present.
* MFC r305539: work around AMD erratum 793 for family 16h, models 00h-0Fhavg2016-10-271-0/+14
|
* MFC r306801: implement zfs_vptocnp() using z_parent propertyavg2016-10-273-2/+46
|
* MFC r307578davidcs2016-10-263-95/+107
| | | | | | | | | | | 1. Use taskqueue_create() instead of taskqueue_create_fast() for both fastpath and slowpath taskqueues. 2. Service all transmits in taskqueue threads. 3. additional stats counters for keeping track of - bd availability - tx buf ring not emptied in the fp task queue. These are drained via timeout taskqueue. - tx attempts during link down.
* MFC r307132: Use copyout() instead of pointing sbuf to user-space buffer.mav2016-10-261-2/+2
|
* Merge r307936:glebius2016-10-251-1/+4
| | | | | | | | | The argument validation in r296956 was not enough to close all possible overflows in sysarch(2). Submitted by: Kun Yang <kun.yang chaitin.com> Patch by: kib Security: SA-16:15
* MFC r307783:bapt2016-10-254-66/+94
| | | | Import tzdata 2016h
* MFC r307551:jch2016-10-253-3/+42
| | | | | | | | | | | | | | | | | | Fix a double-free when an inp transitions to INP_TIMEWAIT state after having been dropped. This change enforces in_pcbdrop() logic in tcp_input(): "in_pcbdrop() is used by TCP to mark an inpcb as unused and avoid future packet delivery or event notification when a socket remains open but TCP has closed." PR: 203175 Reported by: Palle Girgensohn, Slawa Olhovchenkov Tested by: Slawa Olhovchenkov Reviewed by: Slawa Olhovchenkov Approved by: gnn, Slawa Olhovchenkov Differential Revision: https://reviews.freebsd.org/D8211 Sponsored by: Verisign, inc
* MFC r307522: makesyscalls.sh: remove trailing space on the "created from" lineemaste2016-10-241-2/+1
| | | | | | | | | | | | | | | | | | | In r10905 and r10906 makesyscalls was modified to avoid emitting a literal $Id$ string in the generated file, with: gsub("[$]Id: ", "", $0) gsub(" [$]", "", $0) Then r11294 added some functionality and also tried to address the $Id$ problem in a different way, by removing every $: sed -e 's/\$//g ... This rendered the gsub infeffective. The gsub was later updated to track the $Id$ -> $FreeBSD$ switch, even though it did not do anything. Revert the addition of the s/\$//g, and update the gsub to keep the resulting format the same.
* MFC r307520: elfdump: correct DT_AUXILIARY / DT_USED / DT_FILTER definitionsemaste2016-10-241-3/+3
| | | | | | r109332 introduced these three as DT_SUNW_*. Update to the correct names already used elsewhere in FreeBSD and the Sun "Linker and Libraries Guide"
* Spelling, title.grog2016-10-221-1/+1
|
* MFC r307215:mm2016-10-2210-31/+127
| | | | | | | Sync libarchive with vendor. Style and tests fixes. Important vendor bugfixes (relevant to FreeBSD): #801: FreeBSD Coverity report: resource leak in libarchive/tar/test/main.c
* MFC r307236:markj2016-10-211-0/+2
| | | | Plug a vnode lock leak in vm_fault_hold().
* MFC r306276, but don't remove findwin95asomers2016-10-212-26/+3
| | | | | | | Mount msdosfs with longnames support by default. The old behavior depended on the FAT version and on what files were in the root directory. "mount_msdosfs -o shortnames" is still supported.
* MFstable/11 r307721:ngie2016-10-212-2/+2
| | | | | | MFC r306029: Use SRCTOP instead of the longhand version for defining the path to contrib/atf
* MFstable/11 r307718:ngie2016-10-212-4/+4
| | | | | | | | | MFC r305920: Remove spurious newlines from atf_tc_fail calls This changes the results from broken (incorrect) to failed (correct) on i386
* MFstable/11 r307715:ngie2016-10-211-0/+6
| | | | | | | | | | | | | | | | | | MFC r305916,r305918: r305916: Make sure $TMPDIR is created with 0755 permissions This is required to ensure that the temporary script can be executed, as the default mode is apparently too restrictive r305918: Only chmod $TMPDIR if it's not /tmp This is a safety belt to ensure that the /tmp sticky bit stuff doesn't get whacked by accident if someone runs the script outright
* MFC r307218:kib2016-10-207-23/+23
| | | | Fix a race in vm_page_busy_sleep(9).
* MFC r306762: Fix possible geom destruction before final provider close.mav2016-10-203-28/+17
| | | | | Introduce internal counter to track opens. Using provider's counters is not very successfull after calling g_wither_provider().
* MFC r306571:markj2016-10-191-1/+1
| | | | rtsold: Log messages about unexpected RAs at LOG_DEBUG.
* MFC r306332:pfg2016-10-191-1/+2
| | | | | | btree(3): don't shortcut closing if the metadata is dirty. Obtained from: NetBSD (from krb5 tree)
* MFC r307145:emaste2016-10-191-1/+1
| | | | | | Use M_WAITOK in PIO_KEYMAP ioctl The malloc return value is not checked.
* MFC 307261sephe2016-10-191-1/+1
| | | | | | | | | hyperv/stor: Fix off-by-one bug; this brings back TRIM support. Submitted by: Hongjiang Zhang <honzhan microsoft com> Reported by: Lili Deng <v-lide microsoft com> Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8238
* MFC 307078sephe2016-10-191-1/+1
| | | | | | | | | | ifnet: Use if_link_state snapshot to invoke ifnet_link_event So that everyone in this task have consistent view of link state. Reviewed by: ae Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8214
* MFC 307012,307013,307262sephe2016-10-196-38/+146
| | | | | | | | | | | | | | | | | | | | | | 307012 hyperv/vmbus: Allow driver to inject synchronous task into channel taskq. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8208 307013 hyperv/hn: Rework link status support. This is the preamble for network device SR-IOV and NDIS_STATUS_NETWORK_CHANGE handling. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8209 307262 hyperv/hn: Management parts always need suspend and resume. Sponsored by: Microsoft
* MFC 306936-306939sephe2016-10-196-44/+453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 306936 hyperv/hn: Fix checksum offload settings The _correct_ way to identify the supported checksum offloading and TSO parameters is to query OID_TCP_OFFLOAD_HARDWARE_CAPABILITIES. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8088 306937 hyperv/hn: Fix if_hw_tsomax setup. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8089 306938 hyperv/hn: Generalize RSS capabilities query. - Support NDIS < 6.30. - Stringent response checks. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8090 306939 hyperv/hn: Suffix NDIS offload size with NDIS version. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8091
* MFC r306346vangyzen2016-10-191-1/+1
| | | | | | | | Make no assertions about mutex state when the scheduler is stopped. This changes the assert path to match the lock and unlock paths. Sponsored by: Dell EMC
* MFC r307064:kib2016-10-181-1/+12
| | | | | When downgrading exclusively busied page to shared-busy state, wakeup waiters.
* MFC 304438:mckusick2016-10-174-13/+15
| | | | | Fsck_ufs was using an int rather than a ufs2_daddr_t to store the alternate superblock location when given in the -b option.
* MFC r304230:mckusick2016-10-174-25/+202
| | | | | | | | | | Add two new macros, SLIST_CONCAT and LIST_CONCAT. MFC r304239: Bug 211013 reports that a write error to a UFS filesystem running with softupdates panics the kernel. PR: 211013
* MFC r306790davidcs2016-10-174-63/+169
| | | | | Add support for adding up to 64 Multicast addresses with a single mailbox command
* MFC r306840:sevan2016-10-161-3/+3
| | | | | | | | | Sort SEE ALSO section sequentially. Highlighted by mandoc -Tlint PR: 212440 Approved by: imp Differential Revision: https://reviews.freebsd.org/D8192
* MFC r306736:sevan2016-10-161-1/+6
| | | | | | | | Add history section to nos-tun(8) PR: 212545 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104
* MFC r306735:sevan2016-10-161-2/+7
| | | | | | | | | Add history section to natd(8) Fix back sentence raised by igor. PR: 212544 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104
* MFC r306734:sevan2016-10-161-4/+15
| | | | | | | | | Add history section to fsck_ffs(8) Move sentence to a new line as advised by igor. PR: 212474 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104
* MFC r306732:sevan2016-10-161-1/+16
| | | | | | | | | | | | | | | | | | Document the history of fdisk based on the original post to comp.unix.bsd by Julian Elischer [1] and the Mach 2. 5 Installation notes [2]. I was unable to pin point the exact version of Mach the fdisk utility appeared as I could not find documentation older than version 2.5 & no source code or repo history. fdisk utility appears as a separate utility[3] in v2.5. Due to this, I have avoided stating the exact version fd isk first appeared in Mach. Add authors section. [1] https://groups.google.com/d/topic/comp.unix.bsd/Hhi45vAHxDg/discussion [2] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_install.ps [3] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_manpages.ps PR: 212470 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104
* MFC r306731:sevan2016-10-161-4/+19
| | | | | | | | | | | | | | Document the history of fdisk based on the original post to comp.unix.bsd by Julian Elischer [1] and the Mach 2.5 Installation notes [2]. I was unable to pin point the exact version of Mach the fdisk utility appeared as I could not find documentation older than version 2.5 & no source code or repo history. fdisk utility appears as a separate utility[3] in v2.5. Due to this, I have avoided stating the exact version fdisk first appeared in Mach. Add authors section. Make correction pointed by igor [1] https://groups.google.com/d/topic/comp.unix.bsd/Hhi45vAHxDg/discussion [2] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_install.ps [3] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_manpages.ps PR: 212469 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104
OpenPOWER on IntegriCloud