]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r269469: Do not retry token errors.
mav [Mon, 6 Oct 2014 15:23:12 +0000 (15:23 +0000)]
MFC r269469:  Do not retry token errors.

They are not going to disappear by themselves.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272656 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272308: Fix old iSCSI initiator to work with new CAM locking.
mav [Mon, 6 Oct 2014 15:11:08 +0000 (15:11 +0000)]
MFC r272308: Fix old iSCSI initiator to work with new CAM locking.

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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272654 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272108: add missing file for building netmap as a module
luigi [Mon, 6 Oct 2014 14:39:45 +0000 (14:39 +0000)]
MFC r272108: add missing file for building netmap as a module

git-svn-id: svn://svn.freebsd.org/base/stable/10@272648 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272355: Fix couple issues with ROD tokens content.
mav [Mon, 6 Oct 2014 13:34:12 +0000 (13:34 +0000)]
MFC r272355: Fix couple issues with ROD tokens content.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272247:
mav [Mon, 6 Oct 2014 13:33:22 +0000 (13:33 +0000)]
MFC r272247:
Do not transfer unneeded training zero bytes in INQUIRY response.

It is an addition to r269631.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272646 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272323:
tuexen [Mon, 6 Oct 2014 13:32:30 +0000 (13:32 +0000)]
MFC r272323:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272645 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272224: Fix page length reported for Block Limits VPD page.
mav [Mon, 6 Oct 2014 13:31:44 +0000 (13:31 +0000)]
MFC r272224: Fix page length reported for Block Limits VPD page.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272644 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272033:
mav [Mon, 6 Oct 2014 13:30:52 +0000 (13:30 +0000)]
MFC r272033:
Fix ASCQ for "Logical unit not ready, manual intervention required" error.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272643 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271959: Pretend that we support BYTCHK=1 in WRITE AND VERIFY command.
mav [Mon, 6 Oct 2014 13:30:06 +0000 (13:30 +0000)]
MFC r271959: Pretend that we support BYTCHK=1 in WRITE AND VERIFY command.

Technically that is not true, but since we don't implement VERIFY there
at all, doing only WRITE part, this is a minor sin.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271954:
mav [Mon, 6 Oct 2014 13:29:15 +0000 (13:29 +0000)]
MFC r271954:
Deny ANCHOR flag set without UNMAP flag set in WRITE SAME commands.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272641 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271951: Don't try to continue aborted commands if status was not set.
mav [Mon, 6 Oct 2014 13:28:17 +0000 (13:28 +0000)]
MFC r271951: Don't try to continue aborted commands if status was not set.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272640 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271945:
mav [Mon, 6 Oct 2014 13:27:18 +0000 (13:27 +0000)]
MFC r271945:
Simplify legacy reservation handling.  Drop it on I_T nexus loss.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272639 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271942:
mav [Mon, 6 Oct 2014 13:26:26 +0000 (13:26 +0000)]
MFC r271942:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272638 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271941:
mav [Mon, 6 Oct 2014 13:25:36 +0000 (13:25 +0000)]
MFC r271941:
Report proper errors codes for unsupported SERVICE ACTION values.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272637 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271940: Polish INQUIRY command fields validation.
mav [Mon, 6 Oct 2014 13:24:25 +0000 (13:24 +0000)]
MFC r271940: Polish INQUIRY command fields validation.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271930: Allow SUBPAGE CODE field in MODE SENSE commands.
mav [Mon, 6 Oct 2014 13:23:37 +0000 (13:23 +0000)]
MFC r271930: Allow SUBPAGE CODE field in MODE SENSE commands.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272635 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271869:
mav [Mon, 6 Oct 2014 13:22:53 +0000 (13:22 +0000)]
MFC r271869:
Fix inverted expression to report block size in mode page block descriptor.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272634 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271845:
mav [Mon, 6 Oct 2014 13:22:05 +0000 (13:22 +0000)]
MFC r271845:
Allow more commands to pass persistent reservation according to SPC-4 r37.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272633 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271839:
mav [Mon, 6 Oct 2014 13:21:13 +0000 (13:21 +0000)]
MFC r271839:
Add support for "no Data-Out Buffer" (NDOB) flag of WRITE SAME (16) command.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272632 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271606:
mav [Mon, 6 Oct 2014 13:20:18 +0000 (13:20 +0000)]
MFC r271606:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272631 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271507:
mav [Mon, 6 Oct 2014 13:19:20 +0000 (13:19 +0000)]
MFC r271507:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272630 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271505:
mav [Mon, 6 Oct 2014 13:18:28 +0000 (13:18 +0000)]
MFC r271505:
Add "readcache" and "writecache" LUN options to control default behavior.

Default values are "on".  Disabling requires backend to support IO_DIRECT
and IO_SYNC flags respectively, or some alternatives.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272296:
tuexen [Mon, 6 Oct 2014 13:16:37 +0000 (13:16 +0000)]
MFC r272296:
When plen != ulen, it should only be checked when this is UDP.

The commit is from kevlo and he agreed that I MFC it as part of the
UDPLite fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272628 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272263:
tuexen [Mon, 6 Oct 2014 13:12:04 +0000 (13:12 +0000)]
MFC r272263:

Checksum coverage values larger than 65535 for UDPLite are invalid.
Check for this when the user calls setsockopt using UDPLITE_{SEND,RECV}CSCOV.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272627 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271503: Implement range checks between UNMAP and READ/WRITE commands.
mav [Mon, 6 Oct 2014 12:54:06 +0000 (12:54 +0000)]
MFC r271503: Implement range checks between UNMAP and READ/WRITE commands.

Before this change UNMAP completely blocked other I/Os while running.
Now it blocks only colliding ones, slowing down others only due to ZFS
locks collisions.

Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271443: Add support for Extended INQUIRY Data (0x86) VPD page.
mav [Mon, 6 Oct 2014 12:49:07 +0000 (12:49 +0000)]
MFC r271443: Add support for Extended INQUIRY Data (0x86) VPD page.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272625 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271313: Oops, missed piece of r271311.
mav [Mon, 6 Oct 2014 12:48:10 +0000 (12:48 +0000)]
MFC r271313: Oops, missed piece of r271311.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271360: Remove uninitialized and unused variable, reported by Coverity.
mav [Mon, 6 Oct 2014 12:42:06 +0000 (12:42 +0000)]
MFC r271360: Remove uninitialized and unused variable, reported by Coverity.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271358: Fix array overrun, reported by Coverity.
mav [Mon, 6 Oct 2014 12:41:07 +0000 (12:41 +0000)]
MFC r271358: Fix array overrun, reported by Coverity.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271354: Fix couple off-by-one range check errors, reported by Coverity.
mav [Mon, 6 Oct 2014 12:40:15 +0000 (12:40 +0000)]
MFC r271354: Fix couple off-by-one range check errors, reported by Coverity.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271353: Fix memory leak on error, reported by Coverity.
mav [Mon, 6 Oct 2014 12:39:25 +0000 (12:39 +0000)]
MFC r271353: Fix memory leak on error, reported by Coverity.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271352: Fix minor buffer overflow reported by Coverity.
mav [Mon, 6 Oct 2014 12:38:35 +0000 (12:38 +0000)]
MFC r271352: Fix minor buffer overflow reported by Coverity.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271316: Report that DPO and FUA bits are supported after r271311.
mav [Mon, 6 Oct 2014 12:37:35 +0000 (12:37 +0000)]
MFC r271316: Report that DPO and FUA bits are supported after r271311.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271311:
mav [Mon, 6 Oct 2014 12:36:42 +0000 (12:36 +0000)]
MFC r271311:
Add support for Mode Page Policy (0x87) VPD page.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272617 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271309:
mav [Mon, 6 Oct 2014 12:35:41 +0000 (12:35 +0000)]
MFC r271309:
Improve cache control support, including DPO/FUA flags and the mode page.

At this moment it works only for files and ZVOLs in device mode since BIOs
have no respective respective cache control flags (DPO/FUA).

git-svn-id: svn://svn.freebsd.org/base/stable/10@272616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271308:
mav [Mon, 6 Oct 2014 12:31:51 +0000 (12:31 +0000)]
MFC r271308:
Make ZVOL writes in device mode support IO_SYNC flag.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272111
luigi [Mon, 6 Oct 2014 09:46:21 +0000 (09:46 +0000)]
MFC r272111
fix a panic when passing ifioctl from a netmap file descriptor to
the underlying device. This needs to be merged to 10.1

git-svn-id: svn://svn.freebsd.org/base/stable/10@272604 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r272398
bapt [Mon, 6 Oct 2014 09:15:09 +0000 (09:15 +0000)]
MFC: r272398

Make sure to not skip any argument when converting from deprecated
+POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n
as it is expected

PR: 193994
Submitted by: rodrigo
MFC after: 3 days

git-svn-id: svn://svn.freebsd.org/base/stable/10@272603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272480:
hselasky [Mon, 6 Oct 2014 06:05:43 +0000 (06:05 +0000)]
MFC r272480:
When we fail to get a USB reference we should just return, because
there are no more references held.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272592 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272410:
hselasky [Mon, 6 Oct 2014 06:03:25 +0000 (06:03 +0000)]
MFC r272410:
Add new USB ID.

PR: 194091

git-svn-id: svn://svn.freebsd.org/base/stable/10@272590 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272349, r272422 and r272479:
hselasky [Mon, 6 Oct 2014 06:01:46 +0000 (06:01 +0000)]
MFC r272349, r272422 and r272479:
- Fix XHCI driver for devices which have more than 15 physical root HUB
  ports. The current bitmap array was too small to hold more than 16
  bits and would at some point toggle the context size, which then would
  trigger an enumeration fault and cause a fallback to the EHCI
  companion controller, if any.
- Make sure we always set the maximum number of valid contexts.
- Set default cycle state in case of early interrupts.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272579:
bdrewery [Mon, 6 Oct 2014 00:27:08 +0000 (00:27 +0000)]
MFC r272579:

  Bump .Dd missed in r271424

git-svn-id: svn://svn.freebsd.org/base/stable/10@272580 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271424:
bdrewery [Sun, 5 Oct 2014 23:32:58 +0000 (23:32 +0000)]
MFC r271424:

  - Add $netif_ipexpand_max to specify the upper limit for the number of
    addresses generated by an address range specification.  The default value
    is 2048.  This can be increased by setting $netif_ipexpand_max in rc.conf.

PR: 186841

git-svn-id: svn://svn.freebsd.org/base/stable/10@272577 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272305
rodrigc [Sun, 5 Oct 2014 02:52:54 +0000 (02:52 +0000)]
MFC r272305

Fix pkill unit test.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272549 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271351
alc [Sat, 4 Oct 2014 22:52:21 +0000 (22:52 +0000)]
MFC r271351
  Fix a boundary case error in vm_reserv_alloc_contig().

git-svn-id: svn://svn.freebsd.org/base/stable/10@272543 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272130:
kib [Sat, 4 Oct 2014 19:37:44 +0000 (19:37 +0000)]
MFC r272130:
In kern_linkat() and kern_renameat(), do not call namei(9) while
holding a write reference on the filesystem.  Try to get write
reference in unblocked way after all vnodes are resolved; if failed,
drop all locks and retry after waiting for suspension end.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272541 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271747:
kib [Sat, 4 Oct 2014 19:33:58 +0000 (19:33 +0000)]
MFC r271747:
 - Use NULL instead of 0 for fpcurthread.
 - Note the quirk with the interrupt enabled state of the dna handler.
 - Use just panic() instead of printf() and panic().  Print tid instead
   of pid, the fpu state is per-thread.

MFC r271924:
Update and clarify comments.  Remove the useless counter for impossible, but
seen in wild situation (on buggy hypervisors).

git-svn-id: svn://svn.freebsd.org/base/stable/10@272540 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271467, r271468:
pfg [Sat, 4 Oct 2014 17:46:04 +0000 (17:46 +0000)]
MFC r271467, r271468:
ext2fs: add ext2_getpages().

Literally copy/pasted from ffs_getpages().

Tested with: fsx

git-svn-id: svn://svn.freebsd.org/base/stable/10@272531 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 271761:
trasz [Sat, 4 Oct 2014 14:40:12 +0000 (14:40 +0000)]
MFC 271761:

Add missing link to TIMEOUT_TASK_INIT(9).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272526 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 271759:
trasz [Sat, 4 Oct 2014 14:38:39 +0000 (14:38 +0000)]
MFC 271759:

Add missing links to taskqueue(9).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoBump __FreeBSD_version after releng/10.1 branch.
gjb [Fri, 3 Oct 2014 00:58:42 +0000 (00:58 +0000)]
Bump __FreeBSD_version after releng/10.1 branch.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoUpdate stable/10 to -RC1 in preparation of branching releng/10.1
gjb [Fri, 3 Oct 2014 00:13:10 +0000 (00:13 +0000)]
Update stable/10 to -RC1 in preparation of branching releng/10.1

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272459 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271528: MFV r271512:
delphij [Thu, 2 Oct 2014 22:52:05 +0000 (22:52 +0000)]
MFC r271528: MFV r271512:

Illumos issue:
    5136 fix write throttle comment in dsl_pool.c

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272456 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271527: MFV r271511:
delphij [Thu, 2 Oct 2014 22:16:00 +0000 (22:16 +0000)]
MFC r271527: MFV r271511:

Use fnvlist_* to make code more readable.

Illumos issue:
    5135 zpool_find_import_cached() can use fnvlist_*

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272453 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271141: Allow multiple image activators to run on the same
sbruno [Thu, 2 Oct 2014 21:19:13 +0000 (21:19 +0000)]
MFC r271141: Allow multiple image activators to run on the same
execution by changing imgp->interpreted to a bitmask instead of,
functionally, a bool.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272450 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272288,272289:
delphij [Thu, 2 Oct 2014 18:26:40 +0000 (18:26 +0000)]
MFC r272288,272289:

When setting environment variables in the atrun script, use the
"export foo=bar" form instead of "foo=bar; export foo" since the
former allows the shell to catch variable names that are not valid
shell identifiers.  This will cause /bin/sh to exit with an error
(which gets mailed to the at user) and it will not run the script.

Obtained from: OpenBSD (r1.63 millert)
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271720:
bdrewery [Thu, 2 Oct 2014 18:11:13 +0000 (18:11 +0000)]
MFC r271720:

  If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a
  FILE* leak in getbounds().

PR: 192032
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272028:
bdrewery [Thu, 2 Oct 2014 18:08:30 +0000 (18:08 +0000)]
MFC r272028:

  Make it more explicitly clear that -t will not change filename.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271321:
bdrewery [Thu, 2 Oct 2014 18:05:00 +0000 (18:05 +0000)]
MFC r271321:

  Don't cross mount boundaries when cleaning tmp files.

Approved by: re (gjb)
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@272430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270183:
bdrewery [Thu, 2 Oct 2014 17:58:47 +0000 (17:58 +0000)]
MFC r270183:

  Avoid showing stale errors when nmount(2) fails.

  This should not be documented in relnotes as it still fails due to a
  race with unmounting, but no longer shows bogus details.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272389:
delphij [Thu, 2 Oct 2014 17:41:27 +0000 (17:41 +0000)]
MFC r272389:

Diff reduction with kernel code: instruct the compiler that the data of
these types may be unaligned to their "normal" alignment and exercise
caution when accessing them.

PR: 194071
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272425 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272274:
allanjude [Thu, 2 Oct 2014 17:19:32 +0000 (17:19 +0000)]
MFC r272274:
Change the /var dataset in the default ZFS layout to have the
ZFS property canmount=off, making /var/db/pkg part of the / dataset, so
installed package files are consistent with the package database when
using ZFS boot environments (beadm).

PR: 193971
Reviewed by: Shawn Webb, bcr
Approved by: re (gjb), jmg
Relnotes: yes
Sponsored by: ScaleEngine Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@272424 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272254:
hselasky [Thu, 2 Oct 2014 16:57:44 +0000 (16:57 +0000)]
MFC r272254:
Instead of creating the full range of possible ports, try to figure
out the actual number of so-called "embedded jacks" which are present
when a USB MIDI device is attaching.

Approved by: re, gjb

git-svn-id: svn://svn.freebsd.org/base/stable/10@272423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272253:
hselasky [Thu, 2 Oct 2014 16:41:43 +0000 (16:41 +0000)]
MFC r272253:

Regenerate usb.conf

Approved by:    re, gjb

git-svn-id: svn://svn.freebsd.org/base/stable/10@272417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272027:
hselasky [Thu, 2 Oct 2014 10:46:12 +0000 (10:46 +0000)]
MFC r272027:

Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

NOTE:
  - TSO feature needs r271946, which is not yet merged.

Sponsored by: Mellanox Technologies
Approved by: re, glebius

git-svn-id: svn://svn.freebsd.org/base/stable/10@272407 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272193
grehan [Wed, 1 Oct 2014 23:15:23 +0000 (23:15 +0000)]
MFC r272193

  Allow the PIC's IMR register to be read before ICW initialisation.

  As of git submit e179f6914152eca9, the Linux kernel does a simple
  probe of the PIC by writing a pattern to the IMR and then reading it
  back, prior to the init sequence of ICW words.

  The bhyve PIC emulation wasn't allowing the IMR to be read until
  the ICW sequence was complete. This limitation isn't required so
  relax the test.

  With this change, Linux kernels 3.15-rc2 and later won't hang
  on boot when calibrating the local APIC.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272388 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268376 (imp):
gjb [Wed, 1 Oct 2014 16:18:40 +0000 (16:18 +0000)]
MFC r268376 (imp):

  rm -rf can fail sometimes with an error from fts_read. Make it
  honor fflag to ignore fts_read errors, but stop deleting from
  that directory because no further progress can be made.

  When building a kernel with a high -j value on a high core count
  machine, during the cleanobj phase we can wind up doing multiple
  rm -rf at the same time for modules that have subdirectories. This
  exposed this race (sometimes) as fts_read can return an error if
  the directory is removed by another rm -rf. Since the intent of
  the -f flag was to ignore errors, even if this was a bug in
  fts_read, we should ignore the error like we've been instructed
  to do.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFH (r272280, r272281, r272348): allow use with null user and rhost
des [Wed, 1 Oct 2014 10:26:43 +0000 (10:26 +0000)]
MFH (r272280, r272281, r272348): allow use with null user and rhost

PR: 83099 193927
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272351 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271526: MFV r271510:
delphij [Tue, 30 Sep 2014 21:03:17 +0000 (21:03 +0000)]
MFC r271526: MFV r271510:

Enforce 4K as smallest indirect block size (previously the smallest
indirect block size was 1K but that was never used).

This makes some space estimates more accurate and uses less memory
for some data structures.

Illumos issue:
    5141 zfs minimum indirect block size is 4K

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272332 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC the altera_atse.4.
brooks [Tue, 30 Sep 2014 20:32:27 +0000 (20:32 +0000)]
MFC the altera_atse.4.

This was intended to have been merged along with r256752.  This commit
contains the altera_atse.4 portions of r256752, r257656, and r270268.

Approved by: re (gjb)
Sponsored by: DARPA/AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@272327 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271493,271688-271689,271696,271854,272139-272143:
delphij [Tue, 30 Sep 2014 17:54:57 +0000 (17:54 +0000)]
MFC r271493,271688-271689,271696,271854,272139-272143:

Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.

While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.

The HyperV utilities are only built for i386 and amd64 targets.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272322 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 271745,271834,271899,271900,271913,272022,272023:
bz [Tue, 30 Sep 2014 16:55:19 +0000 (16:55 +0000)]
MFC 271745,271834,271899,271900,271913,272022,272023:

  Revert changes to shared code of the ixl and ixlv drivers to allow
  for easier long-term maintainability.

  Restrict the drivers to building on amd64 for now as it is
  only tested on that 64bit architecture.

  Just depend on PCI and neither INET nor INET6; also make sure we
  can build individual drivers and they do not depend on each other
  anymore.

  Reviewed by: gnn, eric.joyner intel.com
PR: 193824
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271549 (nwhitehorn):
emaste [Tue, 30 Sep 2014 16:36:50 +0000 (16:36 +0000)]
MFC r271549 (nwhitehorn):

    Create /tmp/bsdinstall_etc even if we aren't starting the installer
    so that dhclient can write resolv.conf when used from the live
    environment.

PR: 176078
Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/10@272309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271875, r272046, r272049, r272056
rodrigc [Tue, 30 Sep 2014 16:14:02 +0000 (16:14 +0000)]
MFC r271875, r272046, r272049, r272056
 -> Reference the test case "packs" to fix warnings
 -> Delete mentions to removed manpages
 -> Minor fixes to docs

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272307 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272105: Remove duplicated header content
emaste [Tue, 30 Sep 2014 13:56:32 +0000 (13:56 +0000)]
MFC r272105: Remove duplicated header content

Approved by: re (gjb, kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272301 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272137:
wblock [Sun, 28 Sep 2014 23:15:18 +0000 (23:15 +0000)]
MFC r272137:

Revised to better point to release notes and errata, security
advisories, and be more specific about the -questions list.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272275 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272132:
kib [Sun, 28 Sep 2014 11:08:32 +0000 (11:08 +0000)]
MFC r272132:
Fix fcntl(2) compat32 after r270691.

Approved by: re (glebius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272246 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC revisions 268999, 269027, 269351-269352, 269354, 269460, 270283,
dteske [Sat, 27 Sep 2014 23:57:21 +0000 (23:57 +0000)]
MFC revisions 268999, 269027, 269351-269352, 269354, 269460, 270283,
270505, 270954, and 270989:
r268999: Add new bsdconfig example scripts; remove obsolete ones
r269027: Update bsdconfig dot module; fixes and enhancements
r269351: Add setvar() for non-FreeBSD platforms using bash as /bin/sh
r269352: Fix syntax error when run under bash
r269354: Update setvar() function introduced in r269351
r269460: Update f_xdialog_info() in bsdconfig's dialog.subr include
r270283: Add `-A' flag to pkg-install(8) when installing dependencies
r270505: Optimize f_which() to be slightly faster still (common.subr)
r270954: Update f_dialog_init() for safer getopts usage (dialog.subr)
r270989: Fix for previously mentioned r270954

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272230 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272071:
smh [Sat, 27 Sep 2014 18:20:45 +0000 (18:20 +0000)]
MFC r272071:
Fix ticks wrap issue of lowmem test in vm_pageout_scan

Approved by: re (kib)
Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@272221 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271874:
hselasky [Sat, 27 Sep 2014 18:08:39 +0000 (18:08 +0000)]
MFC r271874:
Add new USB IDs.

PR: 193775
Approved by: re, gjb

git-svn-id: svn://svn.freebsd.org/base/stable/10@272218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272059:
mav [Sat, 27 Sep 2014 08:33:50 +0000 (08:33 +0000)]
MFC r272059:
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272204 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272040:
mav [Sat, 27 Sep 2014 08:14:15 +0000 (08:14 +0000)]
MFC r272040:
When reporting some major UNIT ATTENTION condition, like POWER ON OCCURRED
or I_T NEXUS LOSS, clear all minor UAs for the LUN, redundant in this case.

All SAM specifications tell that target MAY do it, but libiscsi initiator
seems require it to be done, terminating connection with error if some more
UAs happen to be reported during iSCSI connection.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272203 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272036:
kib [Sat, 27 Sep 2014 07:54:27 +0000 (07:54 +0000)]
MFC r272036:
Avoid calling vm_map_pmap_enter() for the MADV_WILLNEED on the wired
entry, the pages must be already mapped.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272202 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC revisions 271553, 271567:
dteske [Sat, 27 Sep 2014 01:50:03 +0000 (01:50 +0000)]
MFC revisions 271553, 271567:
r271553: Rename choices in partitioning method dialog (nwhitehorn)
r271567: ZFS support isn't actually experimental anymore (nwhitehorn)

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272194 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC revisions 262864-262865, 263114, 267970:
dteske [Fri, 26 Sep 2014 23:01:27 +0000 (23:01 +0000)]
MFC revisions 262864-262865, 263114, 267970:
r262864: Stop pw(8) from segfaulting when given certain input (julian)
r262865: Part 2 of bug 187310 (julian)
r263114: Fix pw(8) edge-case deletion of group "username" on userdel
r267970: Fix infinite-loop during deletion of users from groups

PR: 187310, 169471, 191427
Submitted by: Voradesh Yenbut, Alexander Pyhalov, Kim Shrier
Obtained from: bug
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272192 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC revisions 268860, 268863:
dteske [Fri, 26 Sep 2014 22:54:10 +0000 (22:54 +0000)]
MFC revisions 268860, 268863:
r268860: Minor enhancements, bug fixes, and man-page adjustments.
r268863: Bump .Dd in manual

Reported by: lme
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272191 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270993:
mjg [Fri, 26 Sep 2014 20:05:28 +0000 (20:05 +0000)]
MFC r270993:

Fix up proc_realparent to always return correct process.

Prior to the change it would always return initproc for non-traced processes.

This fixes a regression in inferior().

Approved by: re (marius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272187 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoForced commit to mark the real 10.1-BETA3 point, after
gjb [Fri, 26 Sep 2014 09:52:39 +0000 (09:52 +0000)]
Forced commit to mark the real 10.1-BETA3 point, after
r272152.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272167 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoProperly revert r272128.
gjb [Fri, 26 Sep 2014 03:03:58 +0000 (03:03 +0000)]
Properly revert r272128.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoRevert r272149, which introduces obscure vestiges from the
gjb [Fri, 26 Sep 2014 02:30:47 +0000 (02:30 +0000)]
Revert r272149, which introduces obscure vestiges from the
r272128 reversal.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272151 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoForced commit to reflect the real 10.1-BETA3 point.
gjb [Fri, 26 Sep 2014 01:14:11 +0000 (01:14 +0000)]
Forced commit to reflect the real 10.1-BETA3 point.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272150 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoRevert r272128:
gjb [Fri, 26 Sep 2014 01:08:31 +0000 (01:08 +0000)]
Revert r272128:
  Though this passes the buildworld test, this fails during
  installworld with:

  make[3]: "/releng/scripts-release/chroots/10/i386/release/etc/devd/Makefile"
  line 13: Malformed conditional (${MK_HYPERV} != "no")

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272149 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoUpdate stable/10 to -BETA3 as part of the 10.1-RELEASE
gjb [Fri, 26 Sep 2014 00:00:13 +0000 (00:00 +0000)]
Update stable/10 to -BETA3 as part of the 10.1-RELEASE
cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272148 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r272007
grehan [Thu, 25 Sep 2014 23:09:35 +0000 (23:09 +0000)]
MFC r272007

Correct display of bhyve SMBIOS UUIDs with dmidecode by bumping the version.

The mixed little/big-endianness of SMBIOS UUIDs was clarified in v2.6
of the SMBIOS spec. dmidecode uses the reported version of SMBIOS to
determine the layout and what to byte-swap.

bhyve's SMBIOS reported as 2.4 though it implemented the 2.6-style of
memory layout. This resulted in dmidecode reporting a different
UUID than one passed in via the -U option.

Fix by exporting a version of 2.6.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272147 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271227: MFV r271225:
delphij [Thu, 25 Sep 2014 21:45:07 +0000 (21:45 +0000)]
MFC r271227: MFV r271225:

Iterate through all the children instead of returning error when we hit
the first error.  This makes the error message give more information
rather than just the first device that causes problem.

Illumos issue:
    5118 When verifying or creating a storage pool, error messages only
       show one device

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272136 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271536: MFV r271518:
delphij [Thu, 25 Sep 2014 21:28:19 +0000 (21:28 +0000)]
MFC r271536: MFV r271518:

Correctly report hole at end of file.

When asked to find a hole, the DMU sees that there are no holes in the
object, and returns ESRCH.  The ZPL interprets this as "no holes before
the end of the file", and therefore inserts the "virtual hole" at the
end of the file.  Because DMU and ZPL have different ideas of where the
end of an object/file is, we will end up returning the end of file,
which is generally larger, instead of returning the end of object.

The fix is to handle the "virtual hole" in the DMU. If no hole is found,
the DMU will return a hole at the end of the file, rather than an error.

Illumos issue:
    5139 SEEK_HOLE failed to report a hole at end of file

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272134 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271534: MFV r271517:
delphij [Thu, 25 Sep 2014 21:07:30 +0000 (21:07 +0000)]
MFC r271534: MFV r271517:

In zil_claim, don't issue warning if we get EBUSY (inconsistent) when
opening an objset, instead, ignore it silently.

Illumos issue:

    5140 message about "%recv could not be opened" is printed when
         booting after crash

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272133 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoRegen.
delphij [Thu, 25 Sep 2014 20:56:05 +0000 (20:56 +0000)]
Regen.

This is a direct commit to stable/10 instead of a MFC of
r271494.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272131 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271493,271688,271689,271696,271854:
delphij [Thu, 25 Sep 2014 20:34:13 +0000 (20:34 +0000)]
MFC r271493,271688,271689,271696,271854:

Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.

While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.

The HyperV utilities are only built for i386 and amd64 targets.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@272128 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271259:
trasz [Thu, 25 Sep 2014 17:59:00 +0000 (17:59 +0000)]
MFC r271259:

Make it possible to use empty user name ("-U ''") for mount_smbfs(8).
It's just like "-U guest", except that it actually works, at least
with Samba 4, which seems to return authentication failure for "-U guest".

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@272119 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f