197188 Commits

Author SHA1 Message Date
mav
28d91d5dcf MFC r271940: Polish INQUIRY command fields validation. 2014-10-06 13:24:25 +00:00
mav
9189486c50 MFC r271930: Allow SUBPAGE CODE field in MODE SENSE commands. 2014-10-06 13:23:37 +00:00
mav
d219050090 MFC r271869:
Fix inverted expression to report block size in mode page block descriptor.
2014-10-06 13:22:53 +00:00
mav
b913091bf1 MFC r271845:
Allow more commands to pass persistent reservation according to SPC-4 r37.
2014-10-06 13:22:05 +00:00
mav
48c3bee1ac MFC r271839:
Add support for "no Data-Out Buffer" (NDOB) flag of WRITE SAME (16) command.
2014-10-06 13:21:13 +00:00
mav
116bd3882f 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.
2014-10-06 13:20:18 +00:00
mav
36c0adf871 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.
2014-10-06 13:19:20 +00:00
mav
143513e376 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.
2014-10-06 13:18:28 +00:00
tuexen
df8c240c19 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.
2014-10-06 13:16:37 +00:00
tuexen
0be9f8014d 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.
2014-10-06 13:12:04 +00:00
mav
5951623a23 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.
2014-10-06 12:54:06 +00:00
mav
e2b4e0c243 MFC r271443: Add support for Extended INQUIRY Data (0x86) VPD page. 2014-10-06 12:49:07 +00:00
mav
994e3ee5d0 MFC r271313: Oops, missed piece of r271311. 2014-10-06 12:48:10 +00:00
mav
dba3e8e2f0 MFC r271360: Remove uninitialized and unused variable, reported by Coverity. 2014-10-06 12:42:06 +00:00
mav
a21c949f78 MFC r271358: Fix array overrun, reported by Coverity. 2014-10-06 12:41:07 +00:00
mav
39e205854e MFC r271354: Fix couple off-by-one range check errors, reported by Coverity. 2014-10-06 12:40:15 +00:00
mav
401b622675 MFC r271353: Fix memory leak on error, reported by Coverity. 2014-10-06 12:39:25 +00:00
mav
c963137dee MFC r271352: Fix minor buffer overflow reported by Coverity. 2014-10-06 12:38:35 +00:00
mav
89c5125dfb MFC r271316: Report that DPO and FUA bits are supported after r271311. 2014-10-06 12:37:35 +00:00
mav
cf304edcc4 MFC r271311:
Add support for Mode Page Policy (0x87) VPD page.
2014-10-06 12:36:42 +00:00
mav
f60999f291 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).
2014-10-06 12:35:41 +00:00
mav
e13f201bd6 MFC r271308:
Make ZVOL writes in device mode support IO_SYNC flag.
2014-10-06 12:31:51 +00:00
luigi
5aadc8e180 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
2014-10-06 09:46:21 +00:00
bapt
2014ab0354 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
2014-10-06 09:15:09 +00:00
hselasky
c2da2fb6f1 MFC r272480:
When we fail to get a USB reference we should just return, because
there are no more references held.
2014-10-06 06:05:43 +00:00
hselasky
f5788ce956 MFC r272410:
Add new USB ID.

PR:		194091
2014-10-06 06:03:25 +00:00
hselasky
ad142a0378 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.
2014-10-06 06:01:46 +00:00
bdrewery
d4285265d1 MFC r272579:
Bump .Dd missed in r271424
2014-10-06 00:27:08 +00:00
bdrewery
65df434e1f 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
2014-10-05 23:32:58 +00:00
rodrigc
42bcc4fbac MFC r272305
Fix pkill unit test.
2014-10-05 02:52:54 +00:00
alc
2d2ce84b0c MFC r271351
Fix a boundary case error in vm_reserv_alloc_contig().
2014-10-04 22:52:21 +00:00
kib
a1a38225f0 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.
2014-10-04 19:37:44 +00:00
kib
24883994ff 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).
2014-10-04 19:33:58 +00:00
pfg
5c298394b4 MFC r271467, r271468:
ext2fs: add ext2_getpages().

Literally copy/pasted from ffs_getpages().

Tested with:	fsx
2014-10-04 17:46:04 +00:00
trasz
108145fb73 MFC 271761:
Add missing link to TIMEOUT_TASK_INIT(9).

Sponsored by:	The FreeBSD Foundation
2014-10-04 14:40:12 +00:00
trasz
81668aa338 MFC 271759:
Add missing links to taskqueue(9).

Sponsored by:	The FreeBSD Foundation
2014-10-04 14:38:39 +00:00
gjb
86fcfc85d1 Bump __FreeBSD_version after releng/10.1 branch.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-10-03 00:58:42 +00:00
gjb
f2bccf111a Update stable/10 to -RC1 in preparation of branching releng/10.1
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-10-03 00:13:10 +00:00
delphij
4fa55a08b7 MFC r271528: MFV r271512:
Illumos issue:
    5136 fix write throttle comment in dsl_pool.c

Approved by:	re (gjb)
2014-10-02 22:52:05 +00:00
delphij
81242229b8 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)
2014-10-02 22:16:00 +00:00
sbruno
3e8c118a14 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)
2014-10-02 21:19:13 +00:00
delphij
28944a4ef0 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)
2014-10-02 18:26:40 +00:00
bdrewery
bcf511dc04 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)
2014-10-02 18:11:13 +00:00
bdrewery
590a70f745 MFC r272028:
Make it more explicitly clear that -t will not change filename.

Approved by:	re (gjb)
2014-10-02 18:08:30 +00:00
bdrewery
7d399012db MFC r271321:
Don't cross mount boundaries when cleaning tmp files.

Approved by:	re (gjb)
Relnotes:	yes
2014-10-02 18:05:00 +00:00
bdrewery
f19c28648a 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)
2014-10-02 17:58:47 +00:00
delphij
0bbb133a51 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)
2014-10-02 17:41:27 +00:00
allanjude
88af6200b6 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.
2014-10-02 17:19:32 +00:00
hselasky
f0d6c23c18 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
2014-10-02 16:57:44 +00:00
hselasky
a6d8870502 MFC r272253:
Regenerate usb.conf

Approved by:    re, gjb
2014-10-02 16:41:43 +00:00