summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r266857:hrs2014-10-091-10/+32
| | | | | - Add rwlock to struct dadq. A panic could occur when a large number of addresses performed DAD at the same time.
* MFC r266494:hrs2014-10-091-10/+7
| | | | | | | - Fix a bug which can make sysctl() fail when -F is specified. - Increase WID_IF_DEFAULT() from 6 to 8 (the default for AF_INET6) because we have interfaces with longer names than 6 chars like epairN{a,b}. - Style fixes.
* MFC r272650: Set CAM_SIM_QUEUED flag before calling ctl_queue() to avoid race.mav2014-10-091-2/+4
| | | | | | PR: 194128 Submitted by: Scott M. Ferris <smferris@gmail.com> Sponsored by: EMC/Isilon Storage Division
* MFC r271307:ae2014-10-095-2/+30
| | | | | | | | Add the ability to set `prefer_source' flag to an IPv6 address. It affects the IPv6 source address selection algorithm (RFC 6724) and allows override the last rule ("longest matching prefix") for choosing among equivalent addresses. The address with `prefer_source' will be preferred source address.
* MFC r272485: Fill cyclinder, head and sector fields for the EBR,marcel2014-10-086-21/+58
| | | | | | MBR and PC98 schemes. Requested by: gjb
* MFC 272384:marcel2014-10-082-94/+586
| | | | | | Improve performance of mking(1). Requested by: gjb
* MFC 272198, 272217:marcel2014-10-083-20/+127
| | | | | | | | | Add 3 long options (--version, --formats & --schemes) for getting information about mkimg itself. Requested by: gjb Relnotes: yes
* MFC 271965, 272072, 272086: Add QCOW v1 & v2 supportmarcel2014-10-082-0/+370
| | | | | | Requested by: gjb Relnotes: yes
* MFC r272273, r272387, r272443, r272533 :pfg2014-10-082-16/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add strptime(3) support for %U and %W Add support for the missing POSIX-2001 %U and %W features: the existing FreeBSD strptime code recognizes both directives and validates that the week number lies in the permitted range, but then simply discards the value. Initial support for the feature was written by Paul Green. David Carlier added the initial handling of tm_wday/tm_yday. Major credit goes to Andrey Chernov for detecting much of the brokenness and rewriting/cleaning most of the code, making it much more robust. Tested independently with the strptime test from the GNU C library. PR: 137307 Relnotes: yes MFC r272441 : strptime: %s format fix. Almost never needed in real life because %s is tends to be only one format spec. 1) Return code of gmtime_r() is checked. 2) All flags are set. Submitted by: ache
* MFC r272706:tuexen2014-10-081-1/+1
| | | | | Fix a bug introduced in https://svnweb.freebsd.org/base?view=revision&revision=272347
* MFC r271287:brooks2014-10-081-9/+16
| | | | | | | | | | Merge from NetBSD: PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings gracefully. (don't abuse 0 to mean compute string length internally) PR: 193447 Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
* Revert r272724:gjb2014-10-086-530/+3
| | | | | | | | | | | Features not yet available in stable/10 are needed in mkimg(1), and it is more dangerous to tweak these changes in stable/10 directly without explicitly testing certain failure cases. Re-addition of this change is imminent. Sponsored by: The FreeBSD Foundation
* MFC r272270:neel2014-10-081-6/+6
| | | | | tty_rel_free() can be called more than once for the same tty so make sure that the tty is dequeued from 'tty_list' only the first time.
* MFC r272414:gjb2014-10-086-3/+530
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge the following revisions from ^/projects/release-vmimage: r272234, r272236, r272262, r272264, r272269, r272271, r272272, r272277, r272279, r272376, r272380, r272381, r272392, r272234, r272412: r272234: Initial commit to include virtual machine images as part of the FreeBSD release builds. This adds a make(1) environment variable requirement, WITH_VMIMAGES, which triggers the virtual machine image targets when not defined to an empty value. Relevant user-driven variables include: o VMFORMATS: The virtual machine image formats to create. Valid formats are provided by running 'mkimg --formats' o VMSIZE: The size of the resulting virtual machine image. Typical compression is roughly 140Mb, regardless of the target size (10GB, 15GB, 20GB, 40GB sizes have been tested with the same result). o VMBASE: The prefix of the virtual machine disk images. The VMBASE make(1) environment variable is suffixed with each format in VMFORMATS for each individual disk image, as well as '.img' for the source UFS filesystem passed to mkimg(1). This also includes a new script, mk-vmimage.sh, based on how the VM images for 10.0-RELEASE, 9.3-RELEASE, and 10.1-RELEASE were created (mk-vmimage.sh in ^/user/gjb/thermite/). With the order in which the stages need to occur, as well as sanity-checking error cases, it makes much more sense to execute a shell script called from make(1), using env(1) to set specific parameters for the target image than it does to do this in make(1) directly. r272236: Use VMBASE in place of a hard-coded filename in the CLEANFILES list. r272262: Remove a 'set -x' that snuck in during testing. r272264: release/Makefile: Connect the virtual machine image build to the release target if WITH_VMIMAGES is set to a non-empty value. release/release.sh: Add WITH_VMIMAGES to RELEASE_RMAKEFLAGS. release/release.conf.sample: Add commented entries for tuning the release build if the WITH_VMIMAGES make(1) environment variable is set to a non-empty value. r272269: release/Makefile: Include .OBJDIR in DESTDIR in the vm-base target. release/release.sh: Provide the full path to mddev. r272271: Fix UFS label for the root filesystem. r272272: Remove comments left in accidentally while testing, so the VM /etc/fstab is actually created. r272277: Remove the UFS label from the root filesystem since it is added by mkimg(1) as a gpt label, consistent with the fstab(5) entry. r272279: Comment cleanup in panic() message when mkimg(1) does not support the requested disk image format. r272376: Separate release/scripts/mk-vmimage.sh to machine-specific scripts, making it possible to mimic the functionality for non-x86 targets. Move echo output if MAKEFLAGS is empty outside of usage(). Remove TARGET/TARGET_ARCH evaluation. r272380: Avoid using env(1) to set values passed to mk-vmimage.sh, and instead pass the values as arguments to the script, making it easier to run this by hand, without 'make release'. Add usage_vm_base() and usage_vm_image() usage helpers. r272381: After evaluating WITH_VMIMAGES is non-empty, ensure the mk-vmimage.sh script exists before running it. r272392: Add WITH_COMPRESSED_VMIMAGES variable, which when set enables xz(1) compression of the virtual machine images. This is intentionally separate to allow more fine-grained tuning over which images are compressed, especially in cases where compressing 20GB sparse images can take hours. r272412: Document the new 'vm-image' target, and associated release.conf variables. r272413: Remove two stray comments added during the initial iterations of testing, no longer needed. Sponsored by: The FreeBSD Foundation
* MFC 272550:bryanv2014-10-081-2/+0
| | | | | | | | | Remove stray uma_mtx lock/unlock in zone_drain_wait() Callers of zone_drain_wait(M_WAITOK) do not need to hold (and were not) the uma_mtx, but we would attempt to unlock and relock the mutex if we had to sleep because the zone was already draining. The M_NOWAIT callers may hold the uma_mtx, but we do not sleep in that case.
* MFC r271609: add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pagesavg2014-10-076-0/+440
|
* MFC r261894: move devd rules for zfs events into a separate fileavg2014-10-073-32/+78
| | | | ... and fix stale event types
* MFC r261893: zfs.8: fix garbled options in a sample zfs send -R command lineavg2014-10-071-1/+1
|
* MFC r261892: zpool.8: fix typo in option description of labelclear commandavg2014-10-071-1/+1
|
* MFC r272176:ae2014-10-071-3/+13
| | | | Keep list of lagg ports sorted by if_index.
* Make external NFS clients know when files have their attributes changed andaraujo2014-10-071-0/+1
| | | | | | | | | | | | | | avoid cache the file's state indefinitely. The va_filerev is what is sent to the client as the "change" attribute, the client is periodically fetching the attributes and without this option the attribute remains as some garbage value. Phabric: D905 Reported by: Kevin Buhr <buhr@asaurus.net> Reviewed by: rmacklem, delphij Approved by: delphij Obtained from: r272467 Sponsored by: QNAP Systems Inc.
* MFC r265232asomers2014-10-061-2/+12
| | | | | | | | | | | Fix a panic caused by doing "ifconfig -am" while a lagg is being destroyed. The thread that is destroying the lagg has already set sc->sc_psc=NULL when the "ifconfig -am" thread gets to lacp_req(). It tries to dereference sc->sc_psc and panics. The solution is for lacp_req() to check the value of sc->sc_psc. If NULL, harmlessly return an lacp_opreq structure full of zeros. Full details in GNATS. PR: 189003
* MFC r271532: MFV r271515:delphij2014-10-061-0/+8
| | | | | | | | | | | | | | Add a new tunable/sysctl, vfs.zfs.free_max_blocks, which can be used to limit how many blocks can be free'ed before a new transaction group is created. The default is no limit (infinite), but we should probably have a lower default, e.g. 100,000. With this limit, we can guard against the case where ZFS could run out of memory when destroying large numbers of blocks in a single transaction group, as the entire DDT needs to be brought into memory. Illumos issue: 5138 add tunable for maximum number of blocks freed in one txg
* MFC r272469:tuexen2014-10-061-0/+8
| | | | UDP/IPv6 and UDPLite/IPv6 require a checksum. So check for it.
* MFC r272408:tuexen2014-10-061-12/+3
| | | | | Check for UDP/IPv6 packets that the length in the UDP header is at least the minimum. Make the check similar to the one for UDPLite/IPv6.
* MFC r272404:tuexen2014-10-063-15/+30
| | | | | | | | | Fix the checksum computation for UDPLite/IPv6. This requires the usage of a function computing the checksum only over a part of the function. Therefore introduce in6_cksum_partial() and implement in6_cksum() based on that. While there, ensure that the UDPLite packet contains at least enough bytes to contain the header.
* MFC r272347:tuexen2014-10-063-12/+12
| | | | | | | | The default for UDPLITE_RECV_CSCOV is zero. RFC 3828 recommend that this means full checksum coverage for received packets. If an application is willing to accept packets with partial coverage, it is expected to use the socket option and provide the minimum coverage it accepts.
* MFC r272326:tuexen2014-10-061-2/+10
| | | | | UDPLite requires a checksum. Therefore, discard a received packet if the checksum is 0.
* MFC r269472: Do not retry on set of non-transient XCOPY errors.mav2014-10-061-8/+8
|
* MFC r269469: Do not retry token errors.mav2014-10-061-11/+11
| | | | They are not going to disappear by themselves.
* MFC r272308: Fix old iSCSI initiator to work with new CAM locking.mav2014-10-061-19/+14
| | | | | | | | This switches code to using xpt_rescan() routine, irrelevant to locking. Using xpt_action() directly requires knowledge about higher level locks, that SIM does not need to have. This code is obsolete, but that is not a reason to crash.
* MFC r272108: add missing file for building netmap as a moduleluigi2014-10-061-0/+1
|
* MFC r272355: Fix couple issues with ROD tokens content.mav2014-10-061-3/+14
|
* MFC r272247:mav2014-10-061-8/+8
| | | | | | Do not transfer unneeded training zero bytes in INQUIRY response. It is an addition to r269631.
* MFC r272323:tuexen2014-10-062-4/+6
| | | | | | If the checksum coverage field in the UDPLITE header is the length of the complete UDPLITE packet, the packet has full checksum coverage. So fix the condition.
* MFC r272224: Fix page length reported for Block Limits VPD page.mav2014-10-061-1/+1
|
* MFC r272033:mav2014-10-061-1/+1
| | | | Fix ASCQ for "Logical unit not ready, manual intervention required" error.
* MFC r271959: Pretend that we support BYTCHK=1 in WRITE AND VERIFY command.mav2014-10-061-3/+3
| | | | | Technically that is not true, but since we don't implement VERIFY there at all, doing only WRITE part, this is a minor sin.
* MFC r271954:mav2014-10-061-2/+3
| | | | Deny ANCHOR flag set without UNMAP flag set in WRITE SAME commands.
* MFC r271951: Don't try to continue aborted commands if status was not set.mav2014-10-061-3/+4
|
* MFC r271945:mav2014-10-062-27/+19
| | | | Simplify legacy reservation handling. Drop it on I_T nexus loss.
* MFC r271942:mav2014-10-061-6/+6
| | | | | | Don't report unsupported FUA_NV bit set in READ/WRITE commands as error. While this bit is obsolete in SBC-3, SBC-2 allowed to silently ignore it.
* MFC r271941:mav2014-10-061-12/+22
| | | | Report proper errors codes for unsupported SERVICE ACTION values.
* MFC r271940: Polish INQUIRY command fields validation.mav2014-10-061-31/+9
|
* MFC r271930: Allow SUBPAGE CODE field in MODE SENSE commands.mav2014-10-061-2/+2
|
* MFC r271869:mav2014-10-061-1/+1
| | | | Fix inverted expression to report block size in mode page block descriptor.
* MFC r271845:mav2014-10-063-6/+12
| | | | Allow more commands to pass persistent reservation according to SPC-4 r37.
* MFC r271839:mav2014-10-064-3/+13
| | | | Add support for "no Data-Out Buffer" (NDOB) flag of WRITE SAME (16) command.
* MFC r271606:mav2014-10-061-3/+1
| | | | | | | | | Always report that we support REPORT TARGET PORT GROUPS command. Without clustering support we any way have only one group of permanently active ports, but that gives us one more supported VMWare feature. ;) Solaris' Comstar also reports it even when only one port is present.
* MFC r271507:mav2014-10-064-87/+57
| | | | | | | | | Implement control over command reordering via options and control mode page. It allows to bypass range checks between UNMAP and READ/WRITE commands, which may introduce additional delays while waiting for UNMAP parameters. READ and WRITE commands are always processed in safe order since their range checks are almost free.
OpenPOWER on IntegriCloud