]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r274364:
ngie [Fri, 5 Dec 2014 12:23:29 +0000 (12:23 +0000)]
MFC r274364:

  Add baud rate support to telnet(1)

  This implements part of RFC-2217

  It's based off a patch originally written by Sujal Patel at Isilon, and
  contributions from other Isilon employees.

  PR: 173728
  Phabric: D995
  Reviewed by: markj, markm
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r272057,r272083,r272084,r272087,r274016:
ngie [Fri, 5 Dec 2014 11:44:18 +0000 (11:44 +0000)]
MFC r272057,r272083,r272084,r272087,r274016:

r272057:

  Import pjdfstest from ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91

  - Remove tools/regression/pjdfstest
  - Add upgrade directions for contrib/pjdfstest
  - Add a note to UPDATING for the move (the reachover Makefiles are coming
    soon)

  Functional differences:
  - ftruncate testcases are added from upstream (github)

  Non-functional differences:
  - The copyright for the project has been updated to 2012
  - pjd's contact information has been updated

  Discussed with: -testing, jmmv, pjd
  Sponsored by: EMC / Isilon Storage Division

r272083:

  Expect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a
  symbolic link" case. Assume EMLINK on the rest of the OSes (FreeBSD, Solaris,
  etc)

  Sponsored by: EMC / Isilon Storage Division

r272084:

  Fix the executed testplan count

  Sponsored by: EMC / Isilon Storage Division

r272087:

  Increase the memory disk size in the following testcases to avoid mount
  failures, which would cause cascade failures in the rest of the test
  run:

  link/15.t, open/19.t, mkdir/11.t, mkfifo/11.t, symlink/11.t

  Fail quickly in all of the testcases if mdconfig, mount, umount, etc
  fails to avoid issues similar to this in the future

  Submitted by: Casey Peel <cpeel@isilon.com>
  Sponsored by: EMC / Isilon Storage Division

r274016:

  Integrate pjdfstest test suite execution into kyua

  pjdfstest execution is opt-in and must be done as root due to some of the
  assumptions made by the test suite and lack of error checking in the non-root
  case

  A description of how to execute pjdfstest with kyua is provided in
  share/pjdfstest/README

  Phabric: D824 (an earlier prototype patch)
  Relnotes: yes
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r275206:
kib [Fri, 5 Dec 2014 09:30:07 +0000 (09:30 +0000)]
MFC r275206:
Assert the state of the process lock and sigact mutex in
kern_sigprocmask() and reschedule_signals().

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

9 years agoMFC r271796 (by will):
ngie [Fri, 5 Dec 2014 08:46:15 +0000 (08:46 +0000)]
MFC r271796 (by will):

  Use 'cc' for the C compiler instead of 'gcc'.

  Sponsored by: Spectra Logic
  MFSpectraBSD: 1079507 on 2014/07/24

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

9 years agoMFC r275420:
rpaulo [Fri, 5 Dec 2014 07:51:50 +0000 (07:51 +0000)]
MFC r275420:

 gpioctl: don't print the command line arguments.

PR:    195330
Submitted by: Scott Ellis jumpnowtek at gmail.com

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

9 years agoMFC r272937: Fix r272936 build with old GCC.
mav [Fri, 5 Dec 2014 07:48:22 +0000 (07:48 +0000)]
MFC r272937: Fix r272936 build with old GCC.

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

9 years agoMFC r268395:
mav [Fri, 5 Dec 2014 07:46:28 +0000 (07:46 +0000)]
MFC r268395:
Pass correct command that should be aborted to ISPCTL_ABORT_CMD.

This makes XPT_ABORT to work for me on initiator side of isp(4).
Previous code was trying to abort the XPT_ABORT itself and failed.

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

9 years agoMFC r274248: Remove unused assignments, noticed by Clang analyzer.
mav [Fri, 5 Dec 2014 07:29:31 +0000 (07:29 +0000)]
MFC r274248: Remove unused assignments, noticed by Clang analyzer.

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

9 years agoMFC r274805:
mav [Fri, 5 Dec 2014 07:25:02 +0000 (07:25 +0000)]
MFC r274805:
Make cfiscsi_offline() synchronous, waiting for connections termination
before return.  This should make ctld restart more clean and predictable.

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

9 years agoMFC r274795:
mav [Fri, 5 Dec 2014 07:24:17 +0000 (07:24 +0000)]
MFC r274795:
Close race between cfiscsi_offline() and new connection arrival.

Incoming connection should be either rejected or accepted and terminated.

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

9 years agoMFC r274785: Partially reconstruct Active/Standby clusting.
mav [Fri, 5 Dec 2014 07:23:25 +0000 (07:23 +0000)]
MFC r274785: Partially reconstruct Active/Standby clusting.

In this mode one head is in Active state, supporting all commands, while
another is in Standby state, supporting only minimal LUN discovery subset.

It is still incomplete since Standby state requires reservation support,
which is impossible to do right without having interlink between heads.
But it allows to run some basic experiments.

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

9 years agoMFC r274172 (avg)
delphij [Fri, 5 Dec 2014 00:32:33 +0000 (00:32 +0000)]
MFC r274172 (avg)

fix l2arc compression buffers leak

We have observed that arc_release() can be called concurrently with a
l2arc in-flight write.
Also, we have observed that arc_hdr_destroy() can be called from
arc_write_done() for a zio with ZIO_FLAG_IO_REWRITE flag in similar
circumstances.

Previously the l2arc headers would be freed while leaking their
associated compression buffers.  Now the buffers are placed on
l2arc_free_on_write list for delayed freeing.  This is similar to what
was already done to arc buffers that were supposed to be freed
concurrently with in-flight writes of those buffers.

In addition to fixing the discovered leaks this change also adds some
protective code to assert that a compression buffer associated with a
l2arc header is never leaked.

A new kstat l2_cdata_free_on_write is added.  It keeps a count of
delayed compression buffer frees which previously would have been leaks.

Tested by:      Vitalij Satanivskij <satan@ukr.net> et al
Requested by:   many
Sponsored by:   HybridCluster / ClusterHQ

This is a 10.1-RELEASE errata candidate.

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

9 years agoMFC r274370:
delphij [Thu, 4 Dec 2014 23:27:29 +0000 (23:27 +0000)]
MFC r274370:

Rename variable name from 'index' to 'idx' to avoid shadowing index(3).

Noticed by: dim

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

9 years agoMFC r274674:
delphij [Thu, 4 Dec 2014 23:26:15 +0000 (23:26 +0000)]
MFC r274674:

Add a tunable for spa_slop_shift which controls how much space we
would reserve by default.  Tuning is not recommended.

Relnotes: yes

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

9 years agoMFC r274636:
delphij [Thu, 4 Dec 2014 23:21:42 +0000 (23:21 +0000)]
MFC r274636:

Sync with userland variant.

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

9 years agoMFC r274276: MFV r274271:
delphij [Thu, 4 Dec 2014 23:20:44 +0000 (23:20 +0000)]
MFC r274276: MFV r274271:

Improve zdb -b performance:

 - Reduce gethrtime() call to 1/100th of blkptr's;
 - Skip manipulating the size-ordered tree;
 - Issue more (10, previously 3) async reads;
 - Use lighter weight testing in traverse_visitbp();

Illumos issue:
    5243 zdb -b could be much faster

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

9 years agoMFC r274458,274523:
delphij [Thu, 4 Dec 2014 23:19:04 +0000 (23:19 +0000)]
MFC r274458,274523:

Derive copyright year from src/COPYRIGHT.

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

9 years agoMFC r274303:
delphij [Thu, 4 Dec 2014 23:17:35 +0000 (23:17 +0000)]
MFC r274303:

Apply upstream 13597:3eac1e8e0f4c (git: illumos-gate@aa846ad9):

Initialize tqent_flags in the userland taskq implementation.  Without
this the assertion of tq->tq_freelist != NULL may fail in taskq_destroy.

The problem is that tqent_flags is never initialized in the userland
implementation while the kernel one does initialize it.  Without proper
initialization, the flag may have its lowest bit set, making it treated
as TQENT_FLAG_PREALLOC and never removing taskq_ent_t from tq_freelist.

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

9 years agoMFC r272044:
delphij [Thu, 4 Dec 2014 23:15:44 +0000 (23:15 +0000)]
MFC r272044:

Constify a parameter of name2oid.  No functional change.

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

9 years agoMFC r275366:
dim [Thu, 4 Dec 2014 01:21:56 +0000 (01:21 +0000)]
MFC r275366:

Pull in r209785 from upstream libc++ trunk (by Marshall Clow):

  Fix a problem exposed by r208825, which caused bind (and other bits of
  libc++) to stop working. And tests

This fix is needed to support clang 3.5.0 and higher, which are more
strict about forming pointer-to-function types with cv-qualifiers or
ref-qualifiers.  See also the upstream PR <http://llvm.org/PR19742> and
<http://llvm.org/viewvc/llvm-project?rev=208825&view=rev>

Reported by: amdmi3

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

9 years agoMFC r274922:
dim [Thu, 4 Dec 2014 01:10:50 +0000 (01:10 +0000)]
MFC r274922:

Fix the following -Werror warning from clang 3.5.0, while building the
ath kernel module:

sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) {
                    ^
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: note: remove the call to '__builtin_abs' since unsigned values cannot be negative
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
1 error generated.

This warning occurs because both lp[0] and target are unsigned, so the
subtraction expression is also unsigned, and calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D1212

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

9 years agoMFC r273488:
markj [Wed, 3 Dec 2014 19:44:22 +0000 (19:44 +0000)]
MFC r273488:
Fix some bugs in the error handling of getdevice().

PR: 194506

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

9 years agoMFC r275120:
kib [Wed, 3 Dec 2014 10:42:10 +0000 (10:42 +0000)]
MFC r275120:
Fix SA_SIGINFO | SA_RESETHAND handling, reset disposition after sv_sendsig()
is called.

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

9 years agoMFC r275110:
hselasky [Wed, 3 Dec 2014 09:14:14 +0000 (09:14 +0000)]
MFC r275110:
Add new USB quirk.

PR: 195372

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

9 years agoMFC r275328 and r275330:
hselasky [Wed, 3 Dec 2014 09:08:04 +0000 (09:08 +0000)]
MFC r275328 and r275330:
Add missing libraries when linking and fix building of some infiniband
utilities by updating some header file locations and compiler include
directives.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274703:
trasz [Wed, 3 Dec 2014 08:22:13 +0000 (08:22 +0000)]
MFC r274703:

Fix typo.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275124: Fix WWNN/WWPN generation for virtual channels.
mav [Wed, 3 Dec 2014 07:05:17 +0000 (07:05 +0000)]
MFC r275124:  Fix WWNN/WWPN generation for virtual channels.

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

9 years agoMFC r275123: Fix incorrect check, blocking MULTIID functionality.
mav [Wed, 3 Dec 2014 07:04:28 +0000 (07:04 +0000)]
MFC r275123: Fix incorrect check, blocking MULTIID functionality.

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

9 years agoMFC r275101:
mav [Wed, 3 Dec 2014 06:53:49 +0000 (06:53 +0000)]
MFC r275101:
Add bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.

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

9 years agoMFC r274821:
brooks [Tue, 2 Dec 2014 22:04:27 +0000 (22:04 +0000)]
MFC r274821:

Merge from CheriBSD:

commit d0c7d235c09fc65dbdb278e7016a96f79c6a49cc
  Make the Altera JTAG UART device driver slightly more forgiving of
  the foibles of a sub-par hrdware interface by increasing the timeout
  for spotting JTAG polling from one to two seconds.

commit 19ed45a18832560dab967c179d83b71081c3a220
  Update comment.

commit 8edfe803f033cc8e33229f99894c2b7496a44d5f
  Add a comment about a device-driver race condition that could cause the BERI
  pipeline to wedge awaiting JTAG in the event that both the low-level console
  and the tty layer decide to write to the JTAG FIFO just before JTAG is
  disconnected.  Resolving this race is a bit tricky as it looks like there
  isn't a way to 'give the character back' to the tty layer when we discover
  the race.  The easy fix is to drop the character, which we don't yet do, but
  perhaps should as that is a better outcome than wedging the pipeline.

commit 2ea26cf579c9defcf31e413e7c9b0fbc159237fc
  Add a comment about an inherent race with hardware in the Altera JTAG
  UART's low-level console code.

Submitted by: rwatson
Sponsored by: DARPA, AFRL

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

9 years agoMFC r274820:
brooks [Tue, 2 Dec 2014 21:23:13 +0000 (21:23 +0000)]
MFC r274820:

Merge from CheriBSD (2e28d2a3090239b30481f35dc452ad95a5c57389):

Remove initalized, but unused devname variable

Sponsored by: DARPA, AFRL

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

9 years agoMFC r274818:
brooks [Tue, 2 Dec 2014 20:28:05 +0000 (20:28 +0000)]
MFC r274818:

Merge from CheriBSD (3422ebe71b6c06fe78b1be73623b240c219e08e3):

Rename beripic to beripic0.

Sponsored by: DARPA, AFRL

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

9 years agoMFC r274806:
brooks [Tue, 2 Dec 2014 19:58:26 +0000 (19:58 +0000)]
MFC r274806:

Add a guard against attempting to invoke the buildenv target with -j# as
that silently exits rather than doing something useful.

Sponsored by: DARPA, AFRL

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

9 years agoMFC r269634:
tijl [Tue, 2 Dec 2014 14:21:06 +0000 (14:21 +0000)]
MFC r269634:

drm: fix usage of vm_phys_fictitious_to_vm_page

vm_phys_fictitious_to_vm_page should not be called directly, even when
operating on a range that has been registered using
vm_phys_fictitious_reg_range. PHYS_TO_VM_PAGE should be used instead
because on arches that use VM_PHYSSEG_DENSE the page might come
directly from vm_page_array.

Reported by: nwhitehorn
Tested by: nwhitehorn, David Mackay <davidm.jx8p@gmail.com>
Sponsored by: Citrix Systems R&D

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

9 years agoMFC r273969:
tijl [Tue, 2 Dec 2014 14:12:05 +0000 (14:12 +0000)]
MFC r273969:

Use default memory type for TTM buffer objects that may be cached.

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

9 years agoMFC r273862,273902:
tijl [Tue, 2 Dec 2014 14:09:54 +0000 (14:09 +0000)]
MFC r273862,273902:

Port the TTM AGP backend to the FreeBSD agp driver and enable AGP support
in the radeonkms driver.

Note: In PCI mode virtual addresses on the graphics card that map to system
RAM are translated to physical addresses by the graphics card itself.   In
AGP mode address translation is done by the AGP chipset so fictitious
addresses appear on the system bus.  For the CPU cache management to work
correctly when the CPU accesses this memory it needs to use the same
fictitious addresses (and let the chipset translate them) instead of using
the physical addresses directly.

Reviewed by: kib

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

9 years agoMFC r273856,273863,273963-273965
tijl [Tue, 2 Dec 2014 13:46:13 +0000 (13:46 +0000)]
MFC r273856,273863,273963-273965

- Add two new functions to the AGP driver KPI to bind/unbind arbitrary sets
  of pages into the GTT.
- Avoid possible overflow in agp_generic_alloc_memory.
- In agp(4) avoid the need to flush all cpu caches with wbinvd between
  updating the GTT and flushing the AGP TLB by storing the GTT in
  write-combining memory.
- In agp_amd_bind_page don't flush the AGP TLB.  It's done by the calling
  function.
- agp_generic_unbind_memory: flush AGP TLB before unwiring pages
  agp_bind_pages: assert that pages have been wired down

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

9 years agoMFC r264321, r264342, r264351, r264356, r273850, r274629:
jch [Tue, 2 Dec 2014 11:47:26 +0000 (11:47 +0000)]
MFC r264321, r264342, r264351, r264356, r273850, r274629:

Currently, the TCP slow timer can starve TCP input processing while it
walks the list of connections in TIME_WAIT closing expired connections
due to contention on the global TCP pcbinfo lock.

To remediate, introduce a new global lock to protect the list of
connections in TIME_WAIT.  Only acquire the TCP pcbinfo lock when
closing an expired connection.  This limits the window of time when
TCP input processing is stopped to the amount of time needed to close
a single connection.

Approved by:    jhb (mentor)

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

9 years agoMFC r274918:
hselasky [Mon, 1 Dec 2014 07:34:25 +0000 (07:34 +0000)]
MFC r274918:
Don't use the synchronization endpoint unless referenced by the
isochronous endpoint descriptor used for the data transfers, hence the
synchronization feature might not be supposed to be supported [yet].
This makes seamless playback synced with the USB HOST clock work with
the DN32-USB module for Midas audio systems and possibly other similar
products from Klark Teknik.

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

9 years agoMFC r275003:
kevlo [Mon, 1 Dec 2014 03:04:15 +0000 (03:04 +0000)]
MFC r275003:
Add missing headers needed by write().

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

9 years agoMFC r275162:
kevlo [Mon, 1 Dec 2014 02:59:05 +0000 (02:59 +0000)]
MFC r275162:
Init array field in the proper place.

Obtained from: OpenBSD

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

9 years agoMFC r273918:
trasz [Sun, 30 Nov 2014 10:36:29 +0000 (10:36 +0000)]
MFC r273918:

Change the default log level for iSCSI target from 3 to 1.  It should
have been 1 from the beginning; not sure how it ended up at 3.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274325:
bryanv [Sat, 29 Nov 2014 23:05:01 +0000 (23:05 +0000)]
MFC r274325:

  Enable LRO by default when available on vtnet interfaces

  The prior change to not enable LRO by default has confused several
  people. The configurations where LRO is problematic is not the
  typical use case for VirtIO, and due to other issues, this often
  requires checksum offloading to be disabled anyways.

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

9 years agoMFC r273515, r274055, r274063, r274215, r274065, r274502:
bryanv [Sat, 29 Nov 2014 22:48:40 +0000 (22:48 +0000)]
MFC r273515, r274055, r274063, r274215, r274065, r274502:

Add VirtIO console driver.

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

9 years agoMFC r271366 (by mav@):
trasz [Sat, 29 Nov 2014 16:07:15 +0000 (16:07 +0000)]
MFC r271366 (by mav@):

Fix memory leak, reported by Coverity.

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

9 years agoMFC r274278:
trasz [Sat, 29 Nov 2014 16:01:44 +0000 (16:01 +0000)]
MFC r274278:

Improve wording in ctl.conf(5).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273896:
trasz [Sat, 29 Nov 2014 15:57:31 +0000 (15:57 +0000)]
MFC r273896:

Build mount_nfs(8) with WARNS=6.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273848:
trasz [Sat, 29 Nov 2014 15:55:35 +0000 (15:55 +0000)]
MFC r273848:

Get rid of obsolete code in mount_nfs(8).

MFC r273861:

Remove two functions unused after r273848.  Would be nice if clang
or at least scan-build yelled about it.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273854:
trasz [Sat, 29 Nov 2014 15:51:48 +0000 (15:51 +0000)]
MFC r273854:

Update acl(3) to expand on NFSv4 ACL support.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273853:
trasz [Sat, 29 Nov 2014 15:50:13 +0000 (15:50 +0000)]
MFC r273853:

Make it clear that ACL flags are NFSv4-only.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273852:
trasz [Sat, 29 Nov 2014 15:48:47 +0000 (15:48 +0000)]
MFC r273852:

Fix handling of "conn" mount_nfs(8) option.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273851:
trasz [Sat, 29 Nov 2014 15:43:32 +0000 (15:43 +0000)]
MFC r273851:

Note that the "timeout" nfs option is in tenths of a second.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273849:
trasz [Sat, 29 Nov 2014 15:41:55 +0000 (15:41 +0000)]
MFC r273849:

Add support for "timeo", "actimeo", "noac", and "proto" options
to mount_nfs(8).  They are implemented on Linux, OS X, and Solaris,
and thus can be expected to appear in automounter maps.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273822:
trasz [Sat, 29 Nov 2014 15:39:31 +0000 (15:39 +0000)]
MFC r273822:

Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines
(CRLF) in iscsi.conf and ctl.conf.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273821:
trasz [Sat, 29 Nov 2014 15:37:51 +0000 (15:37 +0000)]
MFC r273821:

Keep the token list sorted.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273820:
trasz [Sat, 29 Nov 2014 15:36:10 +0000 (15:36 +0000)]
MFC r273820:

Make it possible to optionally use semicolon to separate statements.
This makes it possible to format stuff like this:

target xxx {
lun 0 { path /foo/bar; size 4G; }
}

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273816:
trasz [Sat, 29 Nov 2014 15:34:17 +0000 (15:34 +0000)]
MFC r273816:

Simplify code; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273813:
trasz [Sat, 29 Nov 2014 15:32:15 +0000 (15:32 +0000)]
MFC r273813:

Add discovery-filter.  This makes it possible to restrict which targets
are returned during discovery based on initiator portal, name, and CHAP
credentials.

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

9 years agoMFC r272484:
rodrigc [Sat, 29 Nov 2014 08:33:54 +0000 (08:33 +0000)]
MFC r272484:

Add dependencies to various libraries to libzfs and libzpool.

Submitted by: sef

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

9 years agoMFC r274020:
hselasky [Sat, 29 Nov 2014 05:07:24 +0000 (05:07 +0000)]
MFC r274020:
Reduce boot verbosity.

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

9 years agoMFC r275109:
hselasky [Sat, 29 Nov 2014 04:18:56 +0000 (04:18 +0000)]
MFC r275109:
Add support for 64-byte CQE size.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274744.
cy [Fri, 28 Nov 2014 20:39:35 +0000 (20:39 +0000)]
MFC r274744.

Set the current vnet inside the ioctl handler for ipfilter.

Without this fix, the vnet was NULL and would crash.
This fix is similar to what was done inside the ioctl handler for PF.

Tested by:
   (1) Boot a kernel with "options VIMAGE" enabled
   (2) Type:

   echo "map lo0 from 10.0.0.0/24 to ! 10.0.0.0/24 -> 127.0.0.1/32" > /etc/ipnat.rules ; service ipnat onerestart

PR: 176992
Differential Revision: https://reviews.freebsd.org/D1191

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

9 years agoMFC r274017, r274088 and r275205:
hselasky [Fri, 28 Nov 2014 19:21:46 +0000 (19:21 +0000)]
MFC r274017, r274088 and r275205:

Provide an on-stack temporary buffer for small IOCTL requests.
Avoiding a memory allocation per IOCTL request can give a significant
speedup for applications which heavily rely on IOCTLs.

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

9 years agoMFC r274756:
mav [Fri, 28 Nov 2014 09:23:15 +0000 (09:23 +0000)]
MFC r274756:
Remove residual xpt_release_device() call left after r272406 cleanup.

Excessive release here could trigger use-after-free condition and kernel
panic on LUN 0 disconnect.

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

9 years agoMFC r274840, r274940:
mav [Fri, 28 Nov 2014 08:56:37 +0000 (08:56 +0000)]
MFC r274840, r274940:
Make iSCSI frontend less chatty while waiting for tasks termination.

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

9 years agoMFC r274790: Remove bunch of unused lun variables.
mav [Fri, 28 Nov 2014 08:54:43 +0000 (08:54 +0000)]
MFC r274790: Remove bunch of unused lun variables.

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

9 years agoMFC r274789: Reduce race between LUN destruction and request arrival.
mav [Fri, 28 Nov 2014 08:53:44 +0000 (08:53 +0000)]
MFC r274789: Reduce race between LUN destruction and request arrival.

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

9 years agoMFC r274786: Log errors for absent LUNs too.
mav [Fri, 28 Nov 2014 08:52:38 +0000 (08:52 +0000)]
MFC r274786: Log errors for absent LUNs too.

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

9 years agoI've merged r273770 in a right directory, but committed in a wrong one.
trasz [Thu, 27 Nov 2014 10:51:10 +0000 (10:51 +0000)]
I've merged r273770 in a right directory, but committed in a wrong one.
Fix it (hopefully).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273770:
trasz [Thu, 27 Nov 2014 10:48:06 +0000 (10:48 +0000)]
MFC r273770:

Fix build after previous commit.  While here, improve error messages.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273768:
trasz [Thu, 27 Nov 2014 10:45:55 +0000 (10:45 +0000)]
MFC r273768:

Remove the distinction between strings and numbers from ctld(8) yacc parser.
This fixes problems with passing strings that look like numbers to clauses
that expect strings; previously it caused syntax errors and had to be worked
by user, using quotes.  The workaround introduced in r267833 is no longer
neccessary.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273690:
trasz [Thu, 27 Nov 2014 10:31:11 +0000 (10:31 +0000)]
MFC r273690:

Mention VAAI and ODX in ctl(4).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274750:
ae [Thu, 27 Nov 2014 08:41:31 +0000 (08:41 +0000)]
MFC r274750:
  Use geom attribute "PART::type" to determine partition type and choose
  relevant fsck_xxx utility.

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

9 years agoMFC r273774:
hselasky [Wed, 26 Nov 2014 09:37:35 +0000 (09:37 +0000)]
MFC r273774:
Make some infiniband example utilities easily buildable:
- Add new Makefiles.
- Add more include directories when building.
- Fixed a printf() formatting string.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274724:
np [Wed, 26 Nov 2014 00:44:48 +0000 (00:44 +0000)]
MFC r274724:
cxgbe(4): figure out the max payload size and save it for later.

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

9 years agoMFC r274116:
dteske [Tue, 25 Nov 2014 13:47:53 +0000 (13:47 +0000)]
MFC r274116:

Add new libraries/utilities for data throughput visualization.
dpv(3): dialog progress view library
dpv(1): stream data from stdin or multiple paths with dialog progress view
figpar(3): configuration file parsing library

MFC r274120, r274121, r274123, r274124, r274144, r274146, r274159, r274192,
r274203, r274209, r274226, r274270, and r274851: Fixes following r274116

Reviews:        D714
Relnotes:       New libdpv/libfigpar and dpv(1) utility
Reviewed by:    jelischer, shurd
Discussed at:   MeetBSD California 2014 Vendor/Dev Summit
Discussed on:   -current
Thanks to:      ngie, ian, jelischer, shurd, bapt

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

9 years agoMFC r274900:
dim [Tue, 25 Nov 2014 13:29:13 +0000 (13:29 +0000)]
MFC r274900:

Fix the following -Werror warnings from clang 3.5.0, while building
bsnmpd's snmp_hostres module:

usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^~~
                          labs
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^~~
                            labs

Since tm::tm_gmtoff is a long, use labs(3) instead.

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

9 years agoMFC r274898:
dim [Tue, 25 Nov 2014 13:12:45 +0000 (13:12 +0000)]
MFC r274898:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.sbin/rtadvd:

usr.sbin/rtadvd/rtadvd.c:1291:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1291:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^~~
usr.sbin/rtadvd/rtadvd.c:1324:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1324:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^~~
2 errors generated.

These warnings occur because both preferred_time and pfx_pltimeexpire
are uint32_t's, so the subtraction expression is also unsigned, and
calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by: hrs
Differential Revision: https://reviews.freebsd.org/D1197

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

9 years agoMFC r274856:
dim [Tue, 25 Nov 2014 12:58:21 +0000 (12:58 +0000)]
MFC r274856:

Avoid undefined behaviour in gas's rotate_left() macro for n == 0.
Otherwise, clang can effectively remove the first iteration of the for
loops where this macro is invoked, and as a result, "cmp r0, #99" fails
to assemble.

Obtained from: joerg at netbsd

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

9 years agoMFC r274847:
dim [Tue, 25 Nov 2014 12:45:31 +0000 (12:45 +0000)]
MFC r274847:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.bin/locate:

usr.bin/locate/locate/util.c:249:29: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^
usr.bin/locate/locate/util.c:249:29: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^~~
usr.bin/locate/locate/util.c:274:32: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^
usr.bin/locate/locate/util.c:274:32: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^~~

The problem is that ntohl() always returns an unsigned quantity.  In
this case, it's expected to be cast back to a signed integer, but to
stop complaints about abs() we just store it into an integer, and don't
call ntohl() again.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D1196

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

9 years agoMFC r274846:
dim [Tue, 25 Nov 2014 12:19:05 +0000 (12:19 +0000)]
MFC r274846:

Fix the following -Werror warning from clang 3.5.0, while building
usr.bin/cpio on amd64 (or any arch with 64-bit time_t):

contrib/libarchive/cpio/cpio.c:1143:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
if (abs(mtime - now) > (365/2)*86400)
    ^
contrib/libarchive/cpio/cpio.c:1143:6: note: use function 'labs' instead
if (abs(mtime - now) > (365/2)*86400)
    ^~~
    labs
1 error generated.

This is because time_t is a long on amd64. To avoid the warning, just
copy the equivalent test from a few lines before, which is used in the
Windows case, and which is type safe.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D1198

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

9 years agoMFC r273585:
trasz [Mon, 24 Nov 2014 08:09:50 +0000 (08:09 +0000)]
MFC r273585:

Improve ctld.conf example.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273470:
trasz [Mon, 24 Nov 2014 08:06:29 +0000 (08:06 +0000)]
MFC r273470:

Fix ctl.conf example to use proper paths to ZVOLs.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273467:
trasz [Mon, 24 Nov 2014 08:04:40 +0000 (08:04 +0000)]
MFC r273467:

Comment out parts about iSER; it's not implemented.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273584:
trasz [Mon, 24 Nov 2014 07:59:44 +0000 (07:59 +0000)]
MFC r273584:

Make the initiator-name and initiator-portal checks a little nicer.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 273583:
trasz [Mon, 24 Nov 2014 07:57:18 +0000 (07:57 +0000)]
MFC 273583:

Tidy up the login code; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273760:
kevlo [Mon, 24 Nov 2014 01:56:33 +0000 (01:56 +0000)]
MFC r273760:
Fix prototypes.

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

9 years agoMFC r274407
grehan [Mon, 24 Nov 2014 01:25:19 +0000 (01:25 +0000)]
MFC r274407

  Fix incorrect reading of 32-bit modinfo by 64-bit loaders.

  The various structures in the mod_metadata set of a FreeBSD kernel and
  modules contain pointers. The FreeBSD loader correctly deals with a
  mismatch in loader and kernel pointer size (e.g. 32-bit i386/ppc
  loader, loading 64-bit amd64/ppc64 kernels), but wasn't dealing with
  the inverse case where a 64-bit loader was loading a 32-bit kernel.

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

9 years agoMFC r273635, r273793, r274797: Add basic iSNS client to the iSCSI target.
mav [Mon, 24 Nov 2014 00:47:04 +0000 (00:47 +0000)]
MFC r273635, r273793, r274797: Add basic iSNS client to the iSCSI target.

This makes ctld(8) register its iSCSI targets and portals on configured
iSNS servers to allow initiators find them without active discovery.

Fetching of allowed initiators from iSNS is not implemented now, so target
ACLs still should be configured manually.

Relnotes: Yes
Sponsored by: iXsystems, Inc.

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

9 years agoMFC r274328:
mav [Sun, 23 Nov 2014 04:17:39 +0000 (04:17 +0000)]
MFC r274328:
Make both iSCSI initiator and target support base64 encoded CHAP data.

While all tested initiators and targets use hex-encoded CHAP data, RFC also
allows base64 encoding there, and Microsoft certificaition tool uses it.

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

9 years agoMFC:
n_hibma [Sat, 22 Nov 2014 20:55:21 +0000 (20:55 +0000)]
MFC:
------------------------------------------------------------------------
r274792 | n_hibma | 2014-11-21 15:53:42 +0100 (Fri, 21 Nov 2014) | 5
lines

Simply remove the tmp dir before creating the symlink. We are doing
chroots all over the place, so there is bound to be a stale file lying
around in there (in my case samba lock files from creating accounts). If
we don't do that, the symlink later will fail.

------------------------------------------------------------------------

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

9 years agoMFC r273543:
trasz [Sat, 22 Nov 2014 17:58:39 +0000 (17:58 +0000)]
MFC r273543:

Clean up (refactor) discovery a little; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273468:
trasz [Sat, 22 Nov 2014 17:56:03 +0000 (17:56 +0000)]
MFC r273468:

Remove misleading statement.  Bump date.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273466:
trasz [Sat, 22 Nov 2014 17:54:11 +0000 (17:54 +0000)]
MFC r273466:

Remove spurious empty line.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273465:
trasz [Sat, 22 Nov 2014 17:52:33 +0000 (17:52 +0000)]
MFC r273465:

Fix ctld(8) to not show the "auth-group <name> not assigned to any target"
warning for auth-groups assigned to a portal-group.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273464:
trasz [Sat, 22 Nov 2014 17:50:14 +0000 (17:50 +0000)]
MFC r273464:

Whitespace fixes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271320:
trasz [Sat, 22 Nov 2014 17:48:09 +0000 (17:48 +0000)]
MFC r271320:

Use keys_add_int() where appropriate.  No functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agovt(4): Support syscons' SC_HISTORY_SIZE to configure history size
dumbbell [Sat, 22 Nov 2014 17:47:03 +0000 (17:47 +0000)]
vt(4): Support syscons' SC_HISTORY_SIZE to configure history size

Therefore, to set histry size to 2000 lines, add the following line to
your kernel configuration file:
    options SC_HISTORY_SIZE=2000

The default history remains at 500 lines.

MFC of: r274117

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

9 years agoMFC r273459:
trasz [Sat, 22 Nov 2014 17:39:39 +0000 (17:39 +0000)]
MFC r273459:

Untangle iSCSI authentication code by splitting off the CHAP
implementation.

Sponsored by: The FreeBSD Foundation

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

9 years agodrm: Take vt(4) default mode from loader tunables
dumbbell [Sat, 22 Nov 2014 17:37:51 +0000 (17:37 +0000)]
drm: Take vt(4) default mode from loader tunables

By default, vt(4) gets the "preferred mode" from DRM, when using a DRM
video driver as its backend. The preferred mode is usually the native
screen resolution.

Now, if this mode isn't appropriate, a user can use loader tunables to
select a mode. The tunables are read in the following order:
    1. kern.vt.fb.modes.$connector_name
    2. kern.vt.fb.default_mode

For example, to set a 1024x768 mode, no matter the connector:
    kern.vt.fb.default_mode="1024x768"

To set a 800x600 mode only on the laptop builtin screen:
    kern.vt.fb.modes.LVDS-1="800x600"

Beside r274031, this MFC includes:

r274049:
  drm: When reading connector mode tunables, list connectors

  ... and their associated tunables. This gives a way to know the list of
  available connectors, no matter the driver.

  The problem is that xrandr(1) can list connectors but it uses a
  different naming.

r274050:
  vt(4): Document kern.vt.fb.default_mode and kern.vt.fb.modes.*

  Those tunables are used to set a specific mode in vt(4) instead of using
  the default mode.

  Differential Revision: https://reviews.freebsd.org/D1098
  Reviewed by: ak@, emaste@, kwm@

r274051:
  vt(4): Improve the description of kern.vt.fb.modes.$connector

  Differential Revision: https://reviews.freebsd.org/D1098
  Submitted by: emaste@

r274053:
  vt(4): Start new sentences on their own lines

  Submitted by: brueffer@

MFC of: r274031, r274049, r274050, r274051, r274053

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