]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r263775:
dim [Wed, 2 Apr 2014 06:17:57 +0000 (06:17 +0000)]
MFC r263775:

Avoid "cc1: warning: is shorter than expected" when using GNU cpp in
combination with dtrace scripts, which have "#!/usr/sbin/dtrace -Cs"
shebang lines.  This is because dtrace positions the file pointer after
the shebang line, before passing the file to GNU cpp.

To fix the warning, adjust the size downwards by the current position,
after a bit of sanity checking.

Suggested by: avg

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

10 years agoMFC r263118:
mav [Tue, 1 Apr 2014 12:07:15 +0000 (12:07 +0000)]
MFC r263118:
Report ZVOL block size as GEOM stripesize.

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

10 years agoMFC r263891:
dim [Tue, 1 Apr 2014 08:19:30 +0000 (08:19 +0000)]
MFC r263891:

Make clang default to DWARF2 debug info format for FreeBSD 10.x and
earlier.  For head, this commit does not change anything, but it is
purely meant to be MFC'd.

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

10 years agoMFC revisions 260894,260899,262895-262902,262904,262908-262910,262982,
dteske [Tue, 1 Apr 2014 00:19:13 +0000 (00:19 +0000)]
MFC revisions 260894,260899,262895-262902,262904,262908-262910,262982,
262984,263133-263137,263139,263141,263144-263150, and (partially) 263249
(31 revisions; summarized below)...
r260894: Optimize f_expand_number(), improving performance
r260899: s/__number/__num/ in f_expand_number()
r262895: Allow dispatched reswords to carry arguments
r262896: Add missing local declaration
r262897: Fix a typo in a comment
r262898: Fix incorrect return status if var_to_set and var_to_get are same
r262899: Make f_show_err non-fatal
r262900: Centralize function name; Update a comment while here
r262901: s/__num/__number/ in f_expand_number()
r262902: Comment to go with NL global introduced by previous commit
r262904: Rewrite groupmgmt -- hooking it into the scripting system
r262908: Change dispatch words from group* to *Group for backward compat
r262909: Fix copy/paste error in a comment
r262910: Take a group name on the command-line if available
r262982: Whitespace
r262984: Remove vestigial global, no longer used since r262904
r263133: Remove indexfile from debug statement (already logged)
r263134: Add debug statement just before attempting to exec a module
r263135: Comments
r263136: Update copyright
r263137: Fix future namespace issues for functions taking $var_to_set
r263139: Remove useless NULL string in compound strings
r263141: Pointy hat! Fix a broken f_isinteger()
r263144: Fix a code-typo that prevented auto-sizing of a dialog
r263145: Fix comments and whitespace
r263146: Reduce the sleep cycle when using dialog(1) [infobox] to 1-second
r263147: Fix a bug preventing errors from pw(8) from appearing
r263148: For non-interactive scripts, forgot to check argument
r263149: Add protection against input containing single-quotes
r263150: Rewrite usermgmt
r263249: (partial) Add more obsolete files

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

10 years agoMFC r263271
asomers [Mon, 31 Mar 2014 14:51:45 +0000 (14:51 +0000)]
MFC r263271

share/man/man9/counter.9
Fix logic error in the description of counter_u64_alloc: the command
may fail only if M_NOWAIT is specified, not M_WAITOK.

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

10 years agoMFC r263468:
ae [Mon, 31 Mar 2014 09:34:46 +0000 (09:34 +0000)]
MFC r263468:
  When loader(8) inspects MBR, it chooses GPT as main partition table,
  when MBR contains only PMBR entry or it is bootcamp-compatible.
  If MBR has PMBR entry and some other, the loader rejects it.

  Make these checks to be less strict. If loader decided that PMBR
  isn't suitable for GPT, it will use MBR.

  Reported by: Paul Thornton

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

10 years agoMFC r263758:
mjg [Mon, 31 Mar 2014 02:53:15 +0000 (02:53 +0000)]
MFC r263758:
Update userspace users of hw.bus.devctl_disable.

This switches the code to use hw.bus.devctl_queue instead.

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

10 years agoMFC r263755:
mjg [Mon, 31 Mar 2014 02:44:43 +0000 (02:44 +0000)]
MFC r263755:
Document a known problem with handling the process intended to receive
SIGIO in /dev/devctl.

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

10 years agoMFC r263704:
mjg [Mon, 31 Mar 2014 02:30:55 +0000 (02:30 +0000)]
MFC r263704:
Make /dev/devctl mpsafe.

MFC r263753:
Remove lockless check in devopen, while correct it does not make much sense.

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

10 years agoMFC r263458:
mjg [Mon, 31 Mar 2014 02:24:29 +0000 (02:24 +0000)]
MFC r263458:
audit: plug FILEDESC_LOCK leak in audit_canon_path.

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

10 years agoMFC r263530:
mjg [Mon, 31 Mar 2014 02:19:57 +0000 (02:19 +0000)]
MFC r263530:
Mark the following sysctls as MPSAFE:
kern.file
kern.proc.filedesc
kern.proc.ofiledesc

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

10 years agoMFC r263460:
mjg [Mon, 31 Mar 2014 02:17:58 +0000 (02:17 +0000)]
MFC r263460:
Take filedesc lock only for reading when allocating new fdtable.

Code populating the table does this already.

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

10 years agoMFC r263863:
gjb [Mon, 31 Mar 2014 00:28:54 +0000 (00:28 +0000)]
MFC r263863:
  Dereference nonexistent md2(3) manual.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263131,r263174,r263175:
bdrewery [Sun, 30 Mar 2014 18:22:10 +0000 (18:22 +0000)]
MFC r263131,r263174,r263175:

  Tmpfs readdir() redundant logic and code readability cleanup.

  r263131:
    Cleanup redundant logic and add some comments to help explain how it works
    in lieu of potentially less clear code.

  r263174:
    Rename cnt to maxcookies and change its use as the condition for when to
    lookup cookies to be less obscure.

  r263175:
    Add missing FALLTHROUGH comment in tmpfs_dir_getdents for looking up '.'
    and '..'.

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

10 years agoMFC r263130:
bdrewery [Sun, 30 Mar 2014 16:51:12 +0000 (16:51 +0000)]
MFC r263130:

  Fix -o size less than PAGE_SIZE resulting in SIZE_MAX being used.

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

10 years agoMFC r263129:
bdrewery [Sun, 30 Mar 2014 16:48:04 +0000 (16:48 +0000)]
MFC r263129:

  Combine similar code from vprintf(9) and log(9).

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

10 years agoMFC r263937:
bdrewery [Sun, 30 Mar 2014 15:29:54 +0000 (15:29 +0000)]
MFC r263937:

  Give hint on how to disable the default repository.

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

10 years agoMFC r260880 (by kaiw, from projects/elftoolchain):
dim [Sat, 29 Mar 2014 17:18:23 +0000 (17:18 +0000)]
MFC r260880 (by kaiw, from projects/elftoolchain):

  * Make die_mem_offset() be able to handle DW_AT_data_member_location
    attributes generated by Clang 3.4.
  * Document how different compilers generate DW_AT_data_member_location
    attributes differently.
  * Document the quirks about DW_FORM_data[48].

This is a slightly modified version, adapted to work with the old
libdwarf in stable/9 and stable/10.  It should fix DTrace on these
branches, when the kernel is compiled with clang 3.4.

Note that you have to build *and* install the CTF tools first, before
building the kernel.  Otherwise you can possibly still get error
messages similar to "failed to copy type of 'pr_uid': Type information
is in parent and unavailable", when attempting to run dtrace(1).

Submitted by: kaiw

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

10 years agoMFC r263774:
dim [Sat, 29 Mar 2014 11:33:52 +0000 (11:33 +0000)]
MFC r263774:

Revert r263694, and apply a better fix to squelch unnecessary warnings
from clang about possible keywords being treated as identifiers for the
remainder of the translation unit (a.k.a. -Wkeyword-compat), when using
libstdc++ in combination with -Wsystem-headers.  This will not only fix
devd, but any C++ program using libstdc++.

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

10 years agoMFC of 263901, tzdata2014b
edwin [Sat, 29 Mar 2014 04:44:24 +0000 (04:44 +0000)]
MFC of 263901, tzdata2014b

 - Update antartica.
 - Comments about historical data for Hawaii.
 - Update details for Crimea on 30 March
 - Move location data Simferopol.

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

10 years agoMFC: r263435
jkim [Fri, 28 Mar 2014 20:12:30 +0000 (20:12 +0000)]
MFC: r263435

Add new CPUTYPEs supported by Clang 3.4.

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

10 years agoMFC r262914
asomers [Fri, 28 Mar 2014 16:27:48 +0000 (16:27 +0000)]
MFC r262914

sbin/devd/devd.8
sbin/devd/devd.cc
Add a -q flag to devd that will suppress syslog logging at
LOG_NOTICE or below.

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

10 years agoMFC r263475:
kib [Fri, 28 Mar 2014 15:38:38 +0000 (15:38 +0000)]
MFC r263475:
Fix two issues with /dev/mem access on amd64, both causing kernel page
faults.

First, for accesses to direct map region should check for the limit by
which direct map is instantiated.

Second, for accesses to the kernel map, use a new thread private flag
TDP_DEVMEMIO, which instructs vm_fault() to return error when fault
happens on the MAP_ENTRY_NOFAULT entry, instead of panicing.

MFC r263498:
Add change forgotten in r263475.  Make dmaplimit accessible outside
amd64/pmap.c.

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

10 years agoMFC r262912
asomers [Fri, 28 Mar 2014 15:09:35 +0000 (15:09 +0000)]
MFC r262912

cddl/contrib/opensolaris/lib/libuutil/common/uu_avl.c
Fix a memory leak in uu_avl_pool_create: pthread_mutex_init without
a corresponding pthread_mutex_destroy.  It shows up, among other
places, when doing "zfs list".

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

10 years agoMFC: r263169
brueffer [Fri, 28 Mar 2014 08:55:34 +0000 (08:55 +0000)]
MFC: r263169

Add support for AMD Family 16h (Kabini) sensor devices.

PR: 186587
Submitted by: David Rufino <david.rufino at gmail.com>

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

10 years agoMFC r259180 (pjd) + r263123:
delphij [Fri, 28 Mar 2014 01:13:08 +0000 (01:13 +0000)]
MFC r259180 (pjd) + r263123:

Hide a few messages under bootverbose.

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

10 years agoMFC r263694:
dim [Thu, 27 Mar 2014 20:46:46 +0000 (20:46 +0000)]
MFC r263694:

Apply a temporary band-aid for building devd with clang 3.4, libstdc++
and -Wsystem-headers enabled (which is the default for any non-zero
WARNS level, crazily enough!).  This is primarily meant to be MFC'd as
soon as possible.

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

10 years agoMFC r263692:
dim [Thu, 27 Mar 2014 20:32:58 +0000 (20:32 +0000)]
MFC r263692:

Add a note to UPDATING about customized kernel configuration files now
requiring -gdwarf-2 for debug info, when using clang 3.4.

Suggested by: adrian

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

10 years agoMFC: r262484
brueffer [Thu, 27 Mar 2014 20:19:11 +0000 (20:19 +0000)]
MFC: r262484

In puthdr(), start the ELF .data section on a new page, as this is
what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S).

This makes resulting ELF binaries bootable with grub, gptboot and boot2.

PR: 153801
Submitted by: Gleb Kurtsou <gleb.kurtsou at gmail.com>
Tested by: Ruben Kerkhof <ruben at rubenkerkhof.com>
Glanced at by: jhb, peter

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

10 years agoMFC: r263121
brueffer [Thu, 27 Mar 2014 20:13:53 +0000 (20:13 +0000)]
MFC: r263121

Re-format the license to conform to our BSD license template as much
as possible.  This does not change the wording in any way.

Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.  While the
clause itself mentions Lawrence Berkeley Laboratory, UCB is the sole
copyright holder of this file.

Reviewed by: imp, emaste, eadler

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

10 years agoMFC r262867
asomers [Thu, 27 Mar 2014 16:47:35 +0000 (16:47 +0000)]
MFC r262867

Fix PR kern/185813 "SOCK_SEQPACKET AF_UNIX sockets with asymmetrical buffers
drop packets".  It was caused by a check for the space available in a
sockbuf, but it was checking the wrong sockbuf.

sys/sys/sockbuf.h
sys/kern/uipc_sockbuf.c
Add sbappendaddr_nospacecheck_locked(), which is just like
sbappendaddr_locked but doesn't validate the receiving socket's space.
Factor out common code into sbappendaddr_locked_internal().  We
shouldn't simply make sbappendaddr_locked check the space and then call
sbappendaddr_nospacecheck_locked, because that would cause the O(n)
function m_length to be called twice.

sys/kern/uipc_usrreq.c
Use sbappendaddr_nospacecheck_locked for SOCK_SEQPACKET sockets,
because the receiving sockbuf's size limit is irrelevant.

tests/sys/kern/unix_seqpacket_test.c
Now that 185813 is fixed, pipe_128k_8k fails intermittently due to
185812.  Make it fail every time by adding a usleep after starting the
writer thread and before starting the reader thread in test_pipe.  That
gives the writer time to fill up its send buffer.  Also, clear the
expected failure message due to 185813.  It actually said "185812", but
that was a typo.

PR: kern/185813

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

10 years agoMFC r263423:
hselasky [Thu, 27 Mar 2014 06:59:56 +0000 (06:59 +0000)]
MFC r263423:
Try to resolve a possible deadlock when detaching USB devices which
create character devices. The deadlock can happen if an application is
issuing IOCTLs which require USB refcounting, at the same time the USB
device is detaching.

There is already a counter in place in the USB device structure to
detect this situation, but it was not always checked ahead of invoking
functions that might destroy character devices, like detach, set
configuration, set alternate interface or detach active kernel driver.

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

10 years agoMFC r263291 and r263292:
hselasky [Thu, 27 Mar 2014 06:55:26 +0000 (06:55 +0000)]
MFC r263291 and r263292:
Update USB template manual page.

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

10 years agoMFC r262501:
delphij [Thu, 27 Mar 2014 00:23:44 +0000 (00:23 +0000)]
MFC r262501:

Refresh our implementation of OpenBSD's Blowfish password format.

Notable changes:

 - Support of $2b$ password format to address a problem where very
   long passwords (more than 256 characters, when an integer
   overflow would happen and cause the length to wrap at 256).
 - Updated pseudo code in comments to reflect the reality.
 - Removed our local shortcut of processing magic string and rely
   on the centralized and tigntened validation.
 - Diff reduction from upstream.

For now we are still generating the older $2a$ format of password
but we will migrate to the new format once the format is formally
finalized.

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

10 years agoMFC r262991:
delphij [Wed, 26 Mar 2014 23:57:09 +0000 (23:57 +0000)]
MFC r262991:

Correct a typo in nlm_find_host_by_addr(): the intention of the
code is to give "<unknown>" rather than comparing the buffer
against it.

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

10 years agoMFC r262657:
dim [Wed, 26 Mar 2014 20:10:07 +0000 (20:10 +0000)]
MFC r262657:

Apply fix for lldb not linking after the sparc backend import.

Reported by: se
Pointy hat to: dim

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

10 years agoMFC r263349:
kib [Wed, 26 Mar 2014 16:59:28 +0000 (16:59 +0000)]
MFC r263349:
Make the array pointed to by AT_PAGESIZES auxv properly aligned.

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

10 years agoMFC r263312:
dim [Wed, 26 Mar 2014 07:42:43 +0000 (07:42 +0000)]
MFC r263312:

Pull in r196939 from upstream llvm trunk (by Reid Kleckner):

  Reland "Fix miscompile of MS inline assembly with stack realignment"

  This re-lands commit r196876, which was reverted in r196879.

  The tests have been fixed to pass on platforms with a stack alignment
  larger than 4.

  Update to clang side tests will land shortly.

Pull in r196986 from upstream llvm trunk (by Reid Kleckner):

  Revert the backend fatal error from r196939

  The combination of inline asm, stack realignment, and dynamic allocas
  turns out to be too common to reject out of hand.

  ASan inserts empy inline asm fragments and uses aligned allocas.
  Compiling any trivial function containing a dynamic alloca with ASan is
  enough to trigger the check.

  XFAIL the test cases that would be miscompiled and add one that uses the
  relevant functionality.

Pull in r202930 from upstream llvm trunk (by Hans Wennborg):

  Check for dynamic allocas and inline asm that clobbers sp before building
  selection dag (PR19012)

  In X86SelectionDagInfo::EmitTargetCodeForMemcpy we check with MachineFrameInfo
  to make sure that ESI isn't used as a base pointer register before we choose to
  emit rep movs (which clobbers esi).

  The problem is that MachineFrameInfo wouldn't know about dynamic allocas or
  inline asm that clobbers the stack pointer until SelectionDAGBuilder has
  encountered them.

  This patch fixes the problem by checking for such things when building the
  FunctionLoweringInfo.

  Differential Revision: http://llvm-reviews.chandlerc.com/D2954

Together, these commits fix the problem encountered in the devel/emacs
port on the i386 architecture, where a combination of stack realignment,
alloca() and memcpy() could incidentally clobber the %esi register,
leading to segfaults in the temacs build-time utility.

See also: http://llvm.org/PR18171 and http://llvm.org/PR19012

Reported by: ashish
PR: ports/183064

MFC r263313:

Pull in r203311 from upstream llvm trunk (by Arnold Schwaighofer):

  ISel: Make VSELECT selection terminate in cases where the condition type has to
  be split and the result type widened.

  When the condition of a vselect has to be split it makes no sense widening the
  vselect and thereby widening the condition. We end up in an endless loop of
  widening (vselect result type) and splitting (condition mask type) doing this.
  Instead, split both the condition and the vselect and widen the result.

  I ran this over the test suite with i686 and mattr=+sse and saw no regressions.

  Fixes PR18036.

With this fix the original problem case from the graphics/rawtherapee
port (posted in http://llvm.org/PR18036 ) now compiles within ~97MB RSS.

Reported by: mandree

MFC r263320:

Add separate patch files for all the customizations we have currently
applied to our copy of llvm/clang.  These can be applied in alphabetical
order to a pristine llvm/clang 3.4 release source tree, to result in the
same version used in FreeBSD.

This is intended to clearly document all the changes until now, which
mostly consist of cherry pickings from the respective upstream trunks,
plus a number of hand-written FreeBSD-specific ones.  Hopefully those
can eventually be cleaned up and sent upstream too.

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

10 years agoMFC r262613:
dim [Wed, 26 Mar 2014 07:31:57 +0000 (07:31 +0000)]
MFC r262613:

Merge the projects/clang-sparc64 branch back to head.  This brings in
several updates from the llvm and clang trunks to make the sparc64
backend fully functional.

Apart from one patch to sys/sparc64/include/pcpu.h which is still under
discussion, this makes it possible to let clang fully build world and
kernel for sparc64.

Any assistance with testing this on actual sparc64 hardware is greatly
appreciated, as there will unavoidably be bugs left.

Many thanks go to Roman Divacky for his upstream work on getting the
sparc64 backend into shape.

MFC r262985:

Repair a few minor mismerges from r262261 in the clang-sparc64 project
branch.  This is also to minimize differences with upstream.

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

10 years agoMFC r263306:
kib [Tue, 25 Mar 2014 20:17:57 +0000 (20:17 +0000)]
MFC r263306:
Add some support for the PCI(e)-PCI bridges to the Intel VT-d driver.

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

10 years agoMFC r263305:
kib [Tue, 25 Mar 2014 20:16:28 +0000 (20:16 +0000)]
MFC r263305:
Provide a workaround by identity mapping the 32 pages after the bogus
entry start, which seems to be enough for the reported BIOS.

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

10 years agoMFC 262782:
trasz [Tue, 25 Mar 2014 13:18:09 +0000 (13:18 +0000)]
MFC 262782:

Fix missing unlock in persistent reservations code, which resulted in panics
with Hyper-V Failover Cluster.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263356:
trasz [Tue, 25 Mar 2014 12:38:43 +0000 (12:38 +0000)]
MFC r263356:

Make the error message more clear.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261752:
trasz [Tue, 25 Mar 2014 12:33:16 +0000 (12:33 +0000)]
MFC r261752:

Empty data segment during Login Phase is rather unlikely, but it's
not, by itself, a protocol error.  This fixes interoperability with
OpenBSD initiator.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261751:
trasz [Tue, 25 Mar 2014 12:31:08 +0000 (12:31 +0000)]
MFC r261751:

The log_whatever() routines don't accept NULL for format strings,
so mark them as __printflike instead of__printf0like.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261962:
trasz [Tue, 25 Mar 2014 12:26:00 +0000 (12:26 +0000)]
MFC r261962:

Mention that rctl(8) was sponsored by the Foundation.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261764:
trasz [Tue, 25 Mar 2014 12:24:18 +0000 (12:24 +0000)]
MFC r261764:

So, it turns out SIGCHLD is discarded by default, so we have to set up
a dummy handler to make it interrupt an ioctl(2) or select(2).

This makes those short-lived ctld(8) zombies disappear.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261763:
trasz [Tue, 25 Mar 2014 12:22:30 +0000 (12:22 +0000)]
MFC r261763:

Use new auth-type "deny" instead of using "chap" with no chap entries;
it's cleaner this way, and gives better feedback to the user.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261762:
trasz [Tue, 25 Mar 2014 12:20:29 +0000 (12:20 +0000)]
MFC r261762:

Use "default" as default discovery-auth-group, instead of "no-access".
It doesn't change visible behaviour, as previously auth-group "default"
wasn't redefinable, so by default access was always denied.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261761:
trasz [Tue, 25 Mar 2014 12:18:37 +0000 (12:18 +0000)]
MFC r261761:

Update manual page to match recent auth-group "default" changes.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261760:
trasz [Tue, 25 Mar 2014 12:16:52 +0000 (12:16 +0000)]
MFC r261760:

Add a new auth-group "default", defaulting to deny, and make it possible
to redefine it.  From now on, assigning auth-group to a target is no longer
mandatory.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261759:
trasz [Tue, 25 Mar 2014 12:14:48 +0000 (12:14 +0000)]
MFC r261759:

Make it possible to redefine portal-group "default".

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261758:
trasz [Tue, 25 Mar 2014 12:12:37 +0000 (12:12 +0000)]
MFC r261758:

Add auth-type.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261757:
trasz [Tue, 25 Mar 2014 12:10:30 +0000 (12:10 +0000)]
MFC r261757:

Rename a variable, no functional changes.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261756:
trasz [Tue, 25 Mar 2014 12:08:35 +0000 (12:08 +0000)]
MFC r261756:

Yacc cleanup; no functional changes.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261755:
trasz [Tue, 25 Mar 2014 12:06:42 +0000 (12:06 +0000)]
MFC r261755:

Make function ordering slightly more logical; no functional changes.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261754:
trasz [Tue, 25 Mar 2014 12:01:55 +0000 (12:01 +0000)]
MFC r261754:

Implement initiator-name and initiator-portal restrictions.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261753:
trasz [Tue, 25 Mar 2014 12:00:05 +0000 (12:00 +0000)]
MFC r261753:

Daemonize after applying configuration, not before, so that
any problems - including "daemon already running" - are visible
on the terminal and not just in logs.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261750:
trasz [Tue, 25 Mar 2014 11:58:24 +0000 (11:58 +0000)]
MFC r261750:

Improve check for duplicated paths.  It shows the warning twice for every
path (once for each duplicate found), but it should do for now.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261749:
trasz [Tue, 25 Mar 2014 11:53:47 +0000 (11:53 +0000)]
MFC r261749:

Refactor.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261768:
trasz [Tue, 25 Mar 2014 11:46:46 +0000 (11:46 +0000)]
MFC r261768:

Make the debug messages during ctld(8) shutdown less confusing.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261767:
trasz [Tue, 25 Mar 2014 11:45:03 +0000 (11:45 +0000)]
MFC r261767:

Show proper configuration file line numbers in error messages.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261766:
trasz [Tue, 25 Mar 2014 11:43:09 +0000 (11:43 +0000)]
MFC r261766:

Make ctld error out on invalid characters in ctl.conf.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r261765:
trasz [Tue, 25 Mar 2014 11:41:10 +0000 (11:41 +0000)]
MFC r261765:

Improve error reporting.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263289: Update NetBSD Foundation copyrights to 2-clause BSD
emaste [Mon, 24 Mar 2014 13:48:04 +0000 (13:48 +0000)]
MFC r263289: Update NetBSD Foundation copyrights to 2-clause BSD

  The NetBSD Foundation states "Third parties are encouraged to change the
  license on any files which have a 4-clause license contributed to the
  NetBSD Foundation to a 2-clause license."

  This change removes clauses 3 and 4 from copyright / license blocks that
  list The NetBSD Foundation as the only copyright holder.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263471:
kib [Mon, 24 Mar 2014 12:40:53 +0000 (12:40 +0000)]
MFC r263471:
Initialize vm_map_entry member wiring_thread on the map entry creation.

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

10 years agoMerge r263497: fix ipfw + VIMAGE sysctls.
glebius [Mon, 24 Mar 2014 10:19:07 +0000 (10:19 +0000)]
Merge r263497: fix ipfw + VIMAGE sysctls.

PR: kern/187665

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

10 years agoMFC: r263441:
pfg [Sun, 23 Mar 2014 19:48:30 +0000 (19:48 +0000)]
MFC: r263441:

msdosfs: minor format fix - spaces vs tab

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

10 years agoMerge r263658 from head: remove unneeded fake _KERNEL definition.
glebius [Sun, 23 Mar 2014 19:07:14 +0000 (19:07 +0000)]
Merge r263658 from head: remove unneeded fake _KERNEL definition.
Should fix broken builds.

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

10 years agoTurn off warnings for building aicasm. Various versions of yacc exist,
dim [Sun, 23 Mar 2014 14:18:40 +0000 (14:18 +0000)]
Turn off warnings for building aicasm.  Various versions of yacc exist,
which can result in different warnings-as-errors in this tool, but these
are all completely harmless.

This is a direct commit to stable/7, stable/8, stable/9 and stable/10,
since this kernel build tool has already been removed in head.

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

10 years agoFurther refine the auth fail regex to catch more auth failures and
brueffer [Sun, 23 Mar 2014 12:58:48 +0000 (12:58 +0000)]
Further refine the auth fail regex to catch more auth failures and
reduce false positives.

The committed patch was provided by Christian Marg.

PR: 91732
Submitted by: Daniel O'Connor <doconnor at gsoft.com.au>
   Skye Poier <spoier at gmail.com>
   Alan Amesbury <amesbury at umn.edu>
   Christian Marg <marg at rz.tu-clausthal.de>

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

10 years agoMerge missed r262819, that fixes broken build.
glebius [Sun, 23 Mar 2014 06:05:58 +0000 (06:05 +0000)]
Merge missed r262819, that fixes broken build.

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

10 years agoMFC r263434:
gjb [Sun, 23 Mar 2014 02:29:28 +0000 (02:29 +0000)]
MFC r263434:
  Update commit template to include 'Relnotes:' tag, to
  help re@ track release notes candidates.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r263159:
hselasky [Sat, 22 Mar 2014 17:18:44 +0000 (17:18 +0000)]
MFC r263159:
Workaround for USB MIDI adapters which use non-supported values of
wMaxPacketSize for BULK endpoints.

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

10 years agoMFC r263155:
hselasky [Sat, 22 Mar 2014 17:16:40 +0000 (17:16 +0000)]
MFC r263155:
Add support for more sample rates to USB audio driver.

PR: usb/171254

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

10 years agoMFC of 263062:
mckusick [Sat, 22 Mar 2014 11:43:35 +0000 (11:43 +0000)]
MFC of 263062:

Avoid segment fault when attempting to clean up cylinder group
buffer cache.

PR:             187221
Submitted by:   Petr Lampa <lampa@fit.vutbr.cz>
Obtained from:  Petr Lampa <lampa@fit.vutbr.cz>
MFC after:      1 week

MFC of 262488:

Arguments for malloc and calloc should be size_t, not int.
Use proper bounds check when trying to free cached memory.

Spotted by: Xin Li
Tested by:  Dmitry Sivachenko
MFC after:  2 weeks

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

10 years agoMFC r263181:
bdrewery [Sat, 22 Mar 2014 10:47:49 +0000 (10:47 +0000)]
MFC r263181:

  Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.

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

10 years agoMFC r263180:
bdrewery [Sat, 22 Mar 2014 10:40:04 +0000 (10:40 +0000)]
MFC r263180:

  Fix ABI from /usr/local/etc/pkg.conf not being respected.

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

10 years agoMFC 262999
edavis [Fri, 21 Mar 2014 23:04:23 +0000 (23:04 +0000)]
MFC 262999
Fixed MSI interrupt allocation and handling.
Fixed a DMA mapping leak that occurs when defragmenting packet chains.

Approved by: davidch (mentor)

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

10 years agoMFC r262868
asomers [Fri, 21 Mar 2014 22:43:00 +0000 (22:43 +0000)]
MFC r262868

Only use -lpthread for unix_seqpacket_test, not for all test programs.

MFC r262894

kern/Makefile
        Set WARNS=5 for all files in this directory
kern/unix_seqpacket_test.c
Fix compiler warnings.  Most were benign, but rcvbuf_oversized
wasn't working as intended because I forgot to set the buffer sizes.

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

10 years agoMFC 261991:
dim [Fri, 21 Mar 2014 17:53:59 +0000 (17:53 +0000)]
MFC 261991:

Upgrade our copy of llvm/clang to 3.4 release.  This version supports
all of the features in the current working draft of the upcoming C++
standard, provisionally named C++1y.

The code generator's performance is greatly increased, and the loop
auto-vectorizer is now enabled at -Os and -O2 in addition to -O3.  The
PowerPC backend has made several major improvements to code generation
quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ
backends have all seen major feature work.

Release notes for llvm and clang can be found here:
<http://llvm.org/releases/3.4/docs/ReleaseNotes.html>
<http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html>

MFC 262121 (by emaste):

Update lldb for clang/llvm 3.4 import

This commit largely restores the lldb source to the upstream r196259
snapshot with the addition of threaded inferior support and a few bug
fixes.

Specific upstream lldb revisions restored include:
   SVN      git
  181387  779e6ac
  181703  7bef4e2
  182099  b31044e
  182650  f2dcf35
  182683  0d91b80
  183862  15c1774
  183929  99447a6
  184177  0b2934b
  184948  4dc3761
  184954  007e7bc
  186990  eebd175

Sponsored by: DARPA, AFRL

MFC 262186 (by emaste):

Fix mismerge in r262121

A break statement was lost in the merge.  The error had no functional
impact, but restore it to reduce the diff against upstream.

MFC 262303:

Pull in r197521 from upstream clang trunk (by rdivacky):

  Use the integrated assembler by default on FreeBSD/ppc and ppc64.

Requested by: jhibbits

MFC 262611:

Pull in r196874 from upstream llvm trunk:

  Fix a crash that occurs when PWD is invalid.

  MCJIT needs to be able to run in hostile environments, even when PWD
  is invalid. There's no need to crash MCJIT in this case.

  The obvious fix is to simply leave MCContext's CompilationDir empty
  when PWD can't be determined. This way, MCJIT clients,
  and other clients that link with LLVM don't need a valid working directory.

  If we do want to guarantee valid CompilationDir, that should be done
  only for clients of getCompilationDir(). This is as simple as checking
  for an empty string.

  The only current use of getCompilationDir is EmitGenDwarfInfo, which
  won't conceivably run with an invalid working dir. However, in the
  purely hypothetically and untestable case that this happens, the
  AT_comp_dir will be omitted from the compilation_unit DIE.

This should help fix assertions occurring with ports-mgmt/tinderbox,
when it is using jails, and sometimes invalidates clang's current
working directory.

Reported by: decke

MFC 262809:

Pull in r203007 from upstream clang trunk:

  Don't produce an alias between destructors with different calling conventions.

  Fixes pr19007.

(Please note that is an LLVM PR identifier, not a FreeBSD one.)

This should fix Firefox and/or libxul crashes (due to problems with
regparm/stdcall calling conventions) on i386.

Reported by: multiple users on freebsd-current
PR: bin/187103

MFC 263048:

Repair recognition of "CC" as an alias for the C++ compiler, since it
was silently broken by upstream for a Windows-specific use-case.

Apparently some versions of CMake still rely on this archaic feature...

Reported by: rakuco

MFC 263049:

Garbage collect the old way of adding the libstdc++ include directories
in clang's InitHeaderSearch.cpp.  This has been superseded by David
Chisnall's commit in r255321.

Moreover, if libc++ is used, the libstdc++ include directories should
not be in the search path at all.  These directories are now only used
if you pass -stdlib=libstdc++.

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

10 years agoMerge r262763, r262767, r262771, r262806 from head:
glebius [Fri, 21 Mar 2014 15:15:30 +0000 (15:15 +0000)]
Merge r262763, r262767, r262771, r262806 from head:
  - Remove rt_metrics_lite and simply put its members into rtentry.
  - Use counter(9) for rt_pksent (former rt_rmx.rmx_pksent). This
    removes another cache trashing ++ from packet forwarding path.
  - Create zini/fini methods for the rtentry UMA zone. Via initialize
    mutex and counter in them.
  - Fix reporting of rmx_pksent to routing socket.
  - Fix netstat(1) to report "Use" both in kvm(3) and sysctl(3) mode.

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

10 years agoMFC r263304:
kib [Fri, 21 Mar 2014 13:31:56 +0000 (13:31 +0000)]
MFC r263304:
Trim at EOL.

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

10 years agoMFC r262408 (by ian):
dim [Fri, 21 Mar 2014 00:19:20 +0000 (00:19 +0000)]
MFC r262408 (by ian):

Eliminate an unused-var warning by wrapping #if 0 around some tables of
values that were probably entered "for completeness" from a datasheet, and
for all I know may be useful/necessary some day.

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

10 years agoMFC r262393 (by ian):
dim [Thu, 20 Mar 2014 23:48:18 +0000 (23:48 +0000)]
MFC r262393 (by ian):

Fix a typo _IMX51_TZICRREG_H_ -> _IMX51_TZICREG_H_ (extra R)

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

10 years agoMFC r260183: MFV r260154 + 260182:
delphij [Thu, 20 Mar 2014 00:28:53 +0000 (00:28 +0000)]
MFC r260183: MFV r260154 + 260182:

4369 implement zfs bookmarks
4368 zfs send filesystems from readonly pools

Illumos/illumos-gate@78f171005391b928aaf1642b3206c534ed644332

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

10 years agoMFC r259850: MFV r258384:
delphij [Thu, 20 Mar 2014 00:24:35 +0000 (00:24 +0000)]
MFC r259850: MFV r258384:

2583 Add -p (parsable) option to zfs list

illumos/illumos-gate@43d68d68c1ce08fb35026bebfb141af422e7082e

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

10 years agoMFC r256999 (smh):
delphij [Thu, 20 Mar 2014 00:10:58 +0000 (00:10 +0000)]
MFC r256999 (smh):

Added support for the 'zfs list -t snap' and 'zfs snap' aliases which are
available under Oracle Solaris 11.

This includes an update to the ZFS(8) man page to reflect all the
available alias (snap, umount, and recv).

Initial changes obtained from ZFS On Linux + fixes for man page and cmd
help:
https://github.com/zfsonlinux/zfs/commit/10b75496bb0cb7a7b8146c263164adc37f1d176a
https://github.com/zfsonlinux/zfs/commit/cf81b00a73fe47fdb21586ac1cc179b734540973

Obtained from:  https://github.com/zfsonlinux/zfs

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

10 years agoMFC r260181:
delphij [Thu, 20 Mar 2014 00:05:23 +0000 (00:05 +0000)]
MFC r260181:

Fix build on platforms where atomic_swap_64 is not available.

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

10 years agoMFC r260157: MFV r260153:
delphij [Thu, 20 Mar 2014 00:01:19 +0000 (00:01 +0000)]
MFC r260157: MFV r260153:

4121 vdev_label_init should treat request as succeeded when pool
     is read only

illumos/illumos-gate@973c78e94bf9634782164382c9e291bf81161fa5

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

10 years agoMFC r260150: MFV r259170:
delphij [Wed, 19 Mar 2014 23:55:03 +0000 (23:55 +0000)]
MFC r260150: MFV r259170:

4370 avoid transmitting holes during zfs send

4371 DMU code clean up

illumos/illumos-gate@43466aae47bfcd2ad9bf501faec8e75c08095e4f

NOTE: Make sure the boot code is updated if a zpool upgrade is
done on boot zpool.

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

10 years agoMFC r260141: MFV r258385:
delphij [Wed, 19 Mar 2014 23:50:13 +0000 (23:50 +0000)]
MFC r260141: MFV r258385:

(Note: this change is not applicable to FreeBSD and the file
is not included in build.  It's integrated for completeness).

4128 disks in zpools never go away when pulled

illumos/illumos-gate@39cddb10a31c1c2e66aed69e6871d09caa4c8147

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

10 years agoMFC r260138: MFV r242733:
delphij [Wed, 19 Mar 2014 23:44:03 +0000 (23:44 +0000)]
MFC r260138: MFV r242733:

3306 zdb should be able to issue reads in parallel
3321 'zpool reopen' command should be documented in the man page
and help message

illumos/illumos-gate@31d7e8fa33fae995f558673adb22641b5aa8b6e1

FreeBSD porting notes: the kernel part of this changeset depends
on Solaris buf(9S) interfaces and are not really applicable for
our use.  vdev_disk.c is patched as-is to reduce diverge from
upstream, but vdev_file.c is left intact.

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

10 years agoMFC r259813 + r259813: MFV r258374:
delphij [Wed, 19 Mar 2014 23:36:12 +0000 (23:36 +0000)]
MFC r259813 + r259813: MFV r258374:

4171 clean up spa_feature_*() interfaces

4172 implement extensible_dataset feature for use by other zpool
features

illumos/illumos-gate@2acef22db7808606888f8f92715629ff3ba555b9

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

10 years agoMFC r259860 (by mjacob):
dim [Wed, 19 Mar 2014 22:50:14 +0000 (22:50 +0000)]
MFC r259860 (by mjacob):

Harvest one no longer used constant string.

Remove another and place it into play in the
normally ifdef protected zone it would be used
int.

Noticed by: dim

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

10 years agoMFC r258005: Merge upstream LLVM r192118:
emaste [Wed, 19 Mar 2014 20:46:02 +0000 (20:46 +0000)]
MFC r258005: Merge upstream LLVM r192118:

  Formally added an explicit enum for DWARF TLS support. No functionality
  change.

Sponsored by: DARPA, AFRL

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

10 years agoMFC r258003: Merge upstream LLVM r182803:
emaste [Wed, 19 Mar 2014 19:31:21 +0000 (19:31 +0000)]
MFC r258003: Merge upstream LLVM r182803:

  [Mips] Add Mips specific dynamic table entry tags.

Sponsored by: DARPA, AFRL

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

10 years agoMerge r257485: install netpfil/pf includes.
glebius [Wed, 19 Mar 2014 13:37:51 +0000 (13:37 +0000)]
Merge r257485: install netpfil/pf includes.

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

10 years agoMFC r258897: Update LLDB to upstream r196322 snapshot
emaste [Wed, 19 Mar 2014 13:24:47 +0000 (13:24 +0000)]
MFC r258897: Update LLDB to upstream r196322 snapshot

  Upstream revisions of note:
  r196298 - Fix use of std::lower_bound
  r196322 - Fix log message for new invalidation checks

Sponsored by: DARPA, AFRL

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

10 years agoMFC r258892: lldb: Threaded inferior support for FreeBSD
emaste [Wed, 19 Mar 2014 13:19:56 +0000 (13:19 +0000)]
MFC r258892: lldb: Threaded inferior support for FreeBSD

  This is in the process of being submitted to the upstream LLDB
  repository.  The thread list functionality is modelled in part on
  GDBRemoteCommunicationClient.

  LLDB bug pr16696 and code review D2267

Sponsored by: DARPA, AFRL

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