]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years ago MFC 231106:
davidxu [Tue, 14 Feb 2012 04:20:02 +0000 (04:20 +0000)]
 MFC 231106:
 Plug a memory leak. When a cached thread is reused, don't clear sleep
 queue pointers, just reuse it.

 MFC 231503:
 Make code more stable by checking NULL pointers.

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

12 years agoMFC: r230801
rmacklem [Tue, 14 Feb 2012 04:07:35 +0000 (04:07 +0000)]
MFC: r230801
jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011
under the subject "F_RDLCK lock to FreeBSD NFS fails to R/O target file".
This occurred because the server side NLM always checked for VWRITE
access, irrespective of the type of lock request. This patch
replaces VOP_ACCESS(..VWRITE..) with one appropriate to
the lock operation. It allows unlock and lock cancellation
to be done without a check of VOP_ACCESS(), so that files
can't be left locked indefinitely after the file permissions
have been changed.

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

12 years agoMFC: r231228
marius [Tue, 14 Feb 2012 01:15:01 +0000 (01:15 +0000)]
MFC: r231228

Remove extra newlines from panic messages.

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

12 years agoForced commit to denote that the commit message of r231623 actually
marius [Tue, 14 Feb 2012 01:05:37 +0000 (01:05 +0000)]
Forced commit to denote that the commit message of r231623 actually
should have read:
MFC: r231518

Flesh out support for SAS1078 and SAS1078DE (which are said to actually
be the same chip):
- The I/O port resource may not be available with these. However, given
  that we actually only need this resource for some controllers that
  require their firmware to be up- and downloaded (which excludes the
  SAS1078{,DE}) just handle failure to allocate this resource gracefully
  when possible. While at it, generally put non-fatal resource allocation
  failures under bootverbose.
- SAS1078{,DE} use a different hard reset protocol.
- Add workarounds for the 36GB physical address limitation of scatter/
  gather elements of these controllers.

Tested by: Slawa Olhovchenkov

PR: 149220 (remaining part)

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

12 years agoMFC: r231518
marius [Tue, 14 Feb 2012 00:54:50 +0000 (00:54 +0000)]
MFC: r231518

Remove extra newlines from panic messages.

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

12 years agoMFC r231079:
dim [Mon, 13 Feb 2012 20:59:20 +0000 (20:59 +0000)]
MFC r231079:

  Let rpcgen(1) support an environment variable RPCGEN_CPP to find the C
  preprocessor to run.  Previously, it always ran /usr/bin/cpp, unless you
  used the -Y option, and even then you could not set the basename.  It
  also attempted to run /usr/ccs/lib/cpp for SVR4 compatibility, but this
  is obsolete, and has been removed.

  Note that setting RPCGEN_CPP to a command with arguments is supported,
  though the command line parsing is simplistic.  However, setting it to
  e.g. "gcc46 -E" or "clang -E" will lead to problems, because both gcc
  and clang in -E mode will consider files with unknown extensions (such
  as .x) as object files, and attempt to link them.

  This could be worked around by also adding "-x c", but it is much safer
  to set RPCGEN_CPP to e.g. "cpp46" or "clang-cpp" instead.

MFC r231080:

  Amend r231079 by properly shifting up the existing arguments in
  rpc_main.c's insarg() function.  I had forgotten to put this in my patch
  queue, sorry.

  Pointy hat to: me

MFC r231101:

  In usr.bin/rpcgen/rpc_main.c, use execvp(3) instead of execv(3), so
  rpcgen will search the current PATH for the preprocessor.  This makes it
  possible to run a preprocessor built during the cross-tools stage of
  buildworld.

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

12 years agoMFC 230340:
jhb [Mon, 13 Feb 2012 19:51:59 +0000 (19:51 +0000)]
MFC 230340:
Properly return success once a matching VPD entry is found in
pci_get_vpd_readonly_method().  Previously the loop was always running
to completion and falling through to failing with ENXIO.

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

12 years agoMFC r231592:
np [Mon, 13 Feb 2012 19:41:01 +0000 (19:41 +0000)]
MFC r231592:
Use the non-sleeping variang of t4_wr_mbox in code that can be called
with locks held.

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

12 years agoMFC 230332:
jhb [Mon, 13 Feb 2012 19:36:09 +0000 (19:36 +0000)]
MFC 230332:
Add support for the Em command.  This restores a missing 'not' in the
description of snd_emu10kx(4).

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

12 years agoMFC r231175:
np [Mon, 13 Feb 2012 19:35:38 +0000 (19:35 +0000)]
MFC r231175:
Allocate the BAR for userspace doorbells after the is_offload check
is functional.

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

12 years agoMFC r231172:
np [Mon, 13 Feb 2012 19:31:16 +0000 (19:31 +0000)]
MFC r231172:
Program the MAC exact match table in batches of 7 addresses at
a time when possible.  This is more efficient than one at a time.

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

12 years agoMFC r231120:
np [Mon, 13 Feb 2012 19:25:37 +0000 (19:25 +0000)]
MFC r231120:
Acquire the adapter lock before updating fields of the filter structure.

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

12 years agoMFC r231116:
np [Mon, 13 Feb 2012 19:17:43 +0000 (19:17 +0000)]
MFC r231116:
Remove if_start from cxgb and cxgbe.

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

12 years agoMFC r230377:
jh [Mon, 13 Feb 2012 19:02:11 +0000 (19:02 +0000)]
MFC r230377:

Don't print the nmount(2) provided error message if it is empty.

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

12 years agoMFC r231115:
np [Mon, 13 Feb 2012 18:54:15 +0000 (18:54 +0000)]
MFC r231115:
cxgbe: reduce diffs with other branches.

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

12 years agoMFC r230373:
jh [Mon, 13 Feb 2012 18:26:58 +0000 (18:26 +0000)]
MFC r230373:

Change mount_fs() to not exit on error. The "failok" mount option
requires that errors are passed to the caller.

PR: 163668

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

12 years agoMerge from head 226829, 230213, 230480, 230486, 230487, 231585:
glebius [Mon, 13 Feb 2012 15:21:12 +0000 (15:21 +0000)]
Merge from head 226829, 230213, 230480, 230486, 230487, 231585:

r226829 in ng_base:
  - If KDB & NETGRAPH_DEBUG are on, print traces on discovered failed
    invariants.
  - Reduce tautology in NETGRAPH_DEBUG output.

r230213 in ng_socket:
  Remove some disabled NOTYET code. Probability of enabling it is low,
  if anyone wants, he/she can take it from svn.

r230480 in ng_base:
  Convert locks that protect name hash, ID hash and typelist from
  mutex(9) to rwlock(9) based locks.

  While here remove dropping lock when processing NGM_LISTNODES,
  and NGM_LISTTYPES generic commands. We don't need to drop it
  since memory allocation is done with M_NOWAIT.

r230486 in subr_hash.c:
  Convert panic()s to KASSERT()s. This is an optimisation for
  hashdestroy() since in absence of INVARIANTS a compiler
  will drop the entire for() cycle.

230487, 231585 in ng_socket:
  Provide a findhook method for ng_socket(4). The node stores a
  hash with names of its hooks. It starts with size of 16, and
  grows when number of hooks reaches twice the current size. A
  failure to grow (memory is allocated with M_NOWAIT) isn't
  fatal, however.

  I used standard hash(9) function for the hash. With 25000
  hooks named in the mpd (ports/net/mpd5) manner of "b%u", the
  distributions is the following: 72.1% entries consist of one
  element, 22.1% consist of two, 5.2% consist of three and
  0.6% of four.

  Speedup in a synthetic test that creates 25000 hooks and then
  runs through a long cyclce dereferencing them in a random order
  is over 25 times.

The last merge was done in an ABI preserving manner, the struct
ngsock is still exposed to userland (unlike in head), but its new
fields are at its end and under #ifdef _KERNEL.

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

12 years agoMFC r231091:
kib [Mon, 13 Feb 2012 10:48:43 +0000 (10:48 +0000)]
MFC r231091:
Add missing opt_quota.h include to activate #ifdef QUOTA blocks.

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

12 years agoMFC r231077:
kib [Mon, 13 Feb 2012 10:45:20 +0000 (10:45 +0000)]
MFC r231077:
JNEWBLK dependency may legitimately appear on the buf dependency list.

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

12 years agoMFC r230784:
kib [Mon, 13 Feb 2012 10:40:14 +0000 (10:40 +0000)]
MFC r230784:
Add support for GNU RELRO.

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

12 years agoMFC r229794:
tijl [Mon, 13 Feb 2012 10:24:49 +0000 (10:24 +0000)]
MFC r229794:

- Fix how hexdump parses escape strings
From the NetBSD bug:
The way how hexdump(1) parses escape sequences has some bugs.
It shows up when an escape sequence is used as the non-last character
of a format string.

MFC r230649:

Fix decoding of escape sequences in format strings:
- Zero-terminate the resulting string by letting the for-loop copy the
  terminating zero.
- Exit the for-loop after handling a backslash at the end of the format
  string to fix a buffer overrun.
- Remove some unnecessary comments and blank lines.

PR: bin/144722

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

12 years agoMFC r231102:
truckman [Mon, 13 Feb 2012 07:30:42 +0000 (07:30 +0000)]
MFC r231102:

Improve sparse file handling when printing the block list for an inode by
not bailing out early when a hole is encountered in the direct block list.
Print NULL block pointers in the direct block list.  Simplify the
code that prints the fragment count.

Match the style of the existing code.

Reviewed by: mckusick

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

12 years agoMFC 231196:
brooks [Sun, 12 Feb 2012 23:07:45 +0000 (23:07 +0000)]
MFC 231196:
  eui64_aton and eui64_ntoa are actually the equivalent of ether_aton_r and
  ether_nota_r and do not use static variables so remove the note copied
  from ethers.3 saying they do.

Reported by: bms

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

12 years agoMFC r231054:
dim [Sun, 12 Feb 2012 14:56:31 +0000 (14:56 +0000)]
MFC r231054:

In usr.bin/rpcgen/rpc_main.c, properly check the return value of
strlcpy(), in addition to checking that of strlcat().

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

12 years agoMFC r231015, r231016:
trociny [Sun, 12 Feb 2012 07:57:58 +0000 (07:57 +0000)]
MFC r231015, r231016:

r231015:

Fix the regression introduced in r226859: if the local component is
out of date BIO_READ requests got lost instead of being sent to the
remote component.

Reviewed by: pjd

r231016:

If a local write request is from the synchronization thread, when it
is synchronizing data that is out of date on the local component, we
should not send G_GATE_CMD_DONE acknowledge to the kernel.

This fixes the issue, observed in async mode, when on synchronization
from the remote component the worker terminated with "G_GATE_CMD_DONE
failed" error.

Reported by: Artem Kajalainen <artem kayalaynen ru>
Reviewed by: pjd

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

12 years agoMFC r230874:
trociny [Sun, 12 Feb 2012 07:55:33 +0000 (07:55 +0000)]
MFC r230874:

Try to avoid ambiguity when sysctl returns ENOMEM additionally
checking the returned oldlen: when ENOMEM is due to the supplied
buffer being too short the return oldlen is equal to buffer size.

Without this additional check sockstat gets stuck in loop leaking the
memory if the returned ENOMEM was due the exceeded memorylocked
limit. This is easily can be observed running `limits -l 1k sockstat'.

Submitted by: Andrey Zonov <andrey zonov org>

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

12 years agoMFC r230873:
trociny [Sun, 12 Feb 2012 07:52:14 +0000 (07:52 +0000)]
MFC r230873:

Try to avoid ambiguity when sysctl returns ENOMEM additionally
checking the returned oldlen: when ENOMEM is due to the supplied
buffer being too short the return oldlen is equal to buffer size.

Without this additional check kvm_getprocs() gets stuck in loop if the
returned ENOMEM was due the exceeded memorylocked limit. This is
easily can be observed running `limits -l 1k top'.

Submitted by: Andrey Zonov <andrey zonov org>

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

12 years agoMFC: r231133
rmacklem [Sun, 12 Feb 2012 06:01:49 +0000 (06:01 +0000)]
MFC: r231133
r228827 fixed a problem where copying of NFSv4 open credentials into
a credential structure would corrupt it. This happened when the
p argument was != NULL. However, I now realize that the copying of
open credentials should only happen for p == NULL, since that indicates
that it is a read-ahead or write-behind. This patch fixes this.
After this commit, r228827 could be reverted, but I think the code is
clearer and safer with the patch, so I am going to leave it in.
Without this patch, it was possible that a NFSv4 VOP_SETATTR() could have
changed the credentials of the caller. This would have happened if
the process doing the VOP_SETATTR() did not have the file open, but
some other process running as a different uid had the file open for writing
at the same time.

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

12 years agoMFC r230437: sh: Remove "kill" example function, which is superseded by the
jilles [Sat, 11 Feb 2012 20:44:16 +0000 (20:44 +0000)]
MFC r230437: sh: Remove "kill" example function, which is superseded by the
kill builtin.

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

12 years agoMFC r231001: sh: Fix swapped INTON/INTOFF.
jilles [Sat, 11 Feb 2012 20:08:46 +0000 (20:08 +0000)]
MFC r231001: sh: Fix swapped INTON/INTOFF.

A possible consequence of this bug was a memory leak if SIGINT arrived
during a 'set' command (listing variables).

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

12 years agoMFC: r231168
pfg [Sat, 11 Feb 2012 20:01:03 +0000 (20:01 +0000)]
MFC: r231168

Update the data structures with some fields reserved for
ext4 but that can be used in ext3 mode.

Also adjust the internal inode to carry the birthtime,
like in UFS, which is starting to get some use when
big inodes are available.

This is a prerequisite for new features that will be
coming in the future.

Approved by: jhb (mentor)

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

12 years agoMFC: r230635
pfg [Sat, 11 Feb 2012 19:41:56 +0000 (19:41 +0000)]
MFC: r230635

Set SVN text/plain property for some shell scripts that
happen to have a .exe extension.

While here fix the shebang of a shell script that
was looking for /bin/bash.

Reviewed by: gnn
Approved by: jhb (mentor)

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

12 years agoMFC r230157: dadump: don't leak the periph lock on i/o error
avg [Sat, 11 Feb 2012 14:55:05 +0000 (14:55 +0000)]
MFC r230157: dadump: don't leak the periph lock on i/o error

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

12 years agoMFC 231170
ken [Fri, 10 Feb 2012 18:14:25 +0000 (18:14 +0000)]
MFC 231170

Update the mps(4) man page for the changes in the new LSI-supported driver.

This should have been included in change 230592.

The supported hardware section still needs some updating to reflect
the current reality.

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

12 years agoMFC r230403.
brooks [Fri, 10 Feb 2012 15:54:17 +0000 (15:54 +0000)]
MFC r230403.

When creating the jails /dev/log symlink, do it by full path to avoid
creating stray "log" symlinks if the mount fails.  That apparently
happens in some ezjail configs.

PR: conf/143084
Submitted by: Dirk Engling <erdgeist at erdgeist.org>

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

12 years agoMFC r231144:
mm [Fri, 10 Feb 2012 13:35:49 +0000 (13:35 +0000)]
MFC r231144:
Merge illumos revision 13594:

uninitialized variables in zfs(8) may make snapshots undestroyable [1]

References:
https://www.illumos.org/issues/2067 [1]

Obtained from: illumos (issue #2067)
PR: bin/164802

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

12 years agoMFC r228191:
dougb [Fri, 10 Feb 2012 10:22:42 +0000 (10:22 +0000)]
MFC r228191:

Ensure kldxref is run first.

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

12 years agoPull up mergeinfo from r226345,226464,226879 to etc/ where it belongs
dougb [Fri, 10 Feb 2012 09:46:30 +0000 (09:46 +0000)]
Pull up mergeinfo from r226345,226464,226879 to etc/ where it belongs

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

12 years agoMFC r230861:
ae [Fri, 10 Feb 2012 06:38:03 +0000 (06:38 +0000)]
MFC r230861:
  The scheme code may not know about some inconsistency in the metadata.
  So, add an integrity check after recovery attempt.

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

12 years agoMFC r228061:
ae [Fri, 10 Feb 2012 06:34:21 +0000 (06:34 +0000)]
MFC r228061:
  The size of APM could be bigger than number of already allocated entries.
  And the first usable sector should not start from the inside of APM area.

MFC r228076:
  Add an ability to increase number of allocated APM entries when we
  have reserved free space in the APM area.
  Also instead of one write request per each APM entry, use MAXPHYS
  sized writes when we are updating APM.

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

12 years agoMFC r231111, r231331
eadler [Fri, 10 Feb 2012 04:08:22 +0000 (04:08 +0000)]
MFC r231111, r231331

PR: 159551
Approved by: gjb

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

12 years agoMFC: r230605
rmacklem [Fri, 10 Feb 2012 03:32:29 +0000 (03:32 +0000)]
MFC: r230605
A problem with respect to data read through the buffer cache for both
NFS clients was reported to freebsd-fs@ under the subject "NFS
corruption in recent HEAD" on Nov. 26, 2011. This problem occurred when
a TCP mounted root fs was changed to using UDP. I believe that this
problem was caused by the change in mnt_stat.f_iosize that occurred
because rsize was decreased to the maximum supported by UDP. This
patch fixes the problem by using v_bufobj.bo_bsize instead of f_iosize,
since the latter is set to f_iosize when the vnode is allocated, but
does not change for a given vnode when f_iosize changes.

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

12 years agoMFC r230510:
bz [Fri, 10 Feb 2012 00:51:23 +0000 (00:51 +0000)]
MFC r230510:

 Replace random ARIN direct assignment legacy IPs with proper RFC 5735
 TEST-NET1 block for use in documentation and example code addresses.

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

12 years agoMFC r230506:
bz [Fri, 10 Feb 2012 00:24:39 +0000 (00:24 +0000)]
MFC r230506:

 Plug a possible ifa_ref leak in case of premature return from in6_purgeaddr().

 Reviewed by: rwatson

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

12 years agoMFC r228344:
eadler [Fri, 10 Feb 2012 00:08:53 +0000 (00:08 +0000)]
MFC r228344:
 - Add support for Support SEAGATE DAT Scopion 130

PR: kern/141934
Approved by: cperciva

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

12 years agoMFC r230494:
bz [Fri, 10 Feb 2012 00:02:03 +0000 (00:02 +0000)]
MFC r230494:

 Remove unnecessary line break.

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

12 years agoMFC r230387:
bz [Thu, 9 Feb 2012 22:54:16 +0000 (22:54 +0000)]
MFC r230387:

 Remove a superfluous INET6 check (no opt_inet6.h included anyway).

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

12 years agoMFC r231074:
tuexen [Thu, 9 Feb 2012 22:05:51 +0000 (22:05 +0000)]
MFC r231074:
Fix a typo which was already fixed by eadler in r227489. We missed
to integrate this fix in our code base, so it was removed in r227755.

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

12 years agoMFC r229546:
bz [Thu, 9 Feb 2012 22:01:59 +0000 (22:01 +0000)]
MFC r229546:

 Convert an #ifdef DIAGNOSTIC if/panic to a KASSERT.

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

12 years agoMFC r229795:
bz [Thu, 9 Feb 2012 20:57:25 +0000 (20:57 +0000)]
MFC r229795:

 Correct comment for the IPv6 case to say "traffic class" not "TOS"
 as pointed out back in 2009.

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

12 years agoMFC r229276:
bz [Thu, 9 Feb 2012 20:54:04 +0000 (20:54 +0000)]
MFC r229276:

 Remove an uneeded inpcb forward declaration and align the function
 declaration following to match the style in the rest of the file.

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

12 years agoMFC r230330:
ed [Thu, 9 Feb 2012 16:58:06 +0000 (16:58 +0000)]
MFC r230330:

  Remove remnants of dev_t.

  These functions take a `struct cdev *' -- not a dev_t. Inside the
  kernel, dev_t has the same use as in userspace, namely to store a device
  identifier.

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

12 years agoMFH r226119: Mention tdsignal(9)
bapt [Thu, 9 Feb 2012 16:57:21 +0000 (16:57 +0000)]
MFH r226119: Mention tdsignal(9)

Approved by: des (mentor)

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

12 years agoMFH r226166: Document some not-so-recently added trace points
bapt [Thu, 9 Feb 2012 16:55:41 +0000 (16:55 +0000)]
MFH r226166: Document some not-so-recently added trace points

Approved by: des (mentor)

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

12 years agoMFC r228474:
ed [Thu, 9 Feb 2012 16:55:20 +0000 (16:55 +0000)]
MFC r228474:

  Add support for __COUNTER__.

  __COUNTER__ allows one to obtain incrementing (read: unique) numbers
  from the C preprocesor. This is useful when implementing things like a
  robust implementation of CTASSERT(), which currently fails when using
  it more than once on a single line of code. Probably not likely to cause
  any breakage, but still.

  __COUNTER__ was also added to GCC 4.3, but since that implementation is
  GPLv3 licensed, I took the liberty of implementing it without looking at
  any upstream sources. Therefore, this version is licensed under the same
  license as the rest of the code; GPLv2.

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

12 years agoMFH r226506: Look for /boot/config in addition to /boot.config
bapt [Thu, 9 Feb 2012 16:53:51 +0000 (16:53 +0000)]
MFH r226506: Look for /boot/config in addition to /boot.config

Approved by: des (mentor)

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

12 years agoMFC r229127:
bz [Thu, 9 Feb 2012 16:11:57 +0000 (16:11 +0000)]
MFC r229127:

 Remove a declaration to a non-existent function.

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

12 years agoMFC r229590 manually:
ed [Thu, 9 Feb 2012 15:28:28 +0000 (15:28 +0000)]
MFC r229590 manually:

  It turns out our GCC has quite an interesting bug:

        typeof(1.0fi) != float _Complex
        typeof((float _Complex)1.0fi) != float _Complex
        typeof((float _Complex)1.0i) == float _Complex

  In other words: if casting to an equal size, GCC seems to take a
  shortcut. By casting down from a double to a float, GCC doesn't take
  this shortcut, yielding the proper type.

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

12 years agoMFC r229385
ed [Thu, 9 Feb 2012 15:26:47 +0000 (15:26 +0000)]
MFC r229385

  Fix subtle typo: compare against idx -- not index.

  In this context, index refers to the index(3) function. In this case it
  doesn't really harm, as this function is never called with idx == NULL.

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

12 years agoMFC r226424:
ed [Thu, 9 Feb 2012 15:23:39 +0000 (15:23 +0000)]
MFC r226424:

  Use integer to store the result of getch().

  We need to use an integer to make the comparison against ERR work.

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

12 years agoMFC r226396:
ed [Thu, 9 Feb 2012 15:21:54 +0000 (15:21 +0000)]
MFC r226396:

  Fix whitespace inconsistencies in systat(1).

  According to md5(1), the resulting binary is the same.

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

12 years agoMFH r226345, r226464, r226879:
bapt [Thu, 9 Feb 2012 14:16:00 +0000 (14:16 +0000)]
MFH r226345, r226464, r226879:
Make dhclient use a pid file. Modify the rc script accordingly, fix some bugs

Approved by: des (mentor)

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

12 years agoMFH r227531: Add netcat (nc) to /rescue.
bapt [Thu, 9 Feb 2012 13:23:33 +0000 (13:23 +0000)]
MFH r227531: Add netcat (nc) to /rescue.

Approved by: des (mentor)

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

12 years agoMFC r230341:
kib [Thu, 9 Feb 2012 10:30:45 +0000 (10:30 +0000)]
MFC r230341:
Use shared lock for the executable vnode in the exec path after the
VV_TEXT changes are handled. Assert that vnode is exclusively locked at
the places that modify VV_TEXT.

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

12 years agoMFH r226504: Make ktrace(1) build cleanly at WARNS level 6
bapt [Thu, 9 Feb 2012 09:24:33 +0000 (09:24 +0000)]
MFH r226504: Make ktrace(1) build cleanly at WARNS level 6

Approved by: des (mentor)

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

12 years agoMFH r226502,r226503: factor out the common code and fix two display bugs
bapt [Thu, 9 Feb 2012 09:20:34 +0000 (09:20 +0000)]
MFH r226502,r226503: factor out the common code and fix two display bugs

Approved by: des (mentor)

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

12 years agoMFC r230921:
mav [Thu, 9 Feb 2012 07:43:38 +0000 (07:43 +0000)]
MFC r230921:
Insert ordered command every 1/4 of the current command timeout, not 1/4
of the default one.

Without this change setting kern.cam.ada.default_timeout to 1 instead of 30
allowed me to trigger several false positive command timeouts under heavy
ZFS load on a SiI3132 siis(4) controller with 5 HDDs on a port multiplier.

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

12 years agoMFC r230912:
mav [Thu, 9 Feb 2012 07:38:56 +0000 (07:38 +0000)]
MFC r230912:
Make CAM ATA honor old hw.ata.ata_dma and hw.ata.atapi_dma tunables.

Even having more specific hint.ata.X.mode controls, global ones are
still could be useful from some points, including compatibility.

PR: kern/164651

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

12 years agoMFH r230307: fix SIGINFO-related data corruption bug
bapt [Thu, 9 Feb 2012 06:48:04 +0000 (06:48 +0000)]
MFH r230307: fix SIGINFO-related data corruption bug

Approved by: des (mentor)

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

12 years agoMerge from head to stable/9:
scf [Thu, 9 Feb 2012 01:18:35 +0000 (01:18 +0000)]
Merge from head to stable/9:

r230656:
msdos was renamed to msdosfs in 2001 by r77577.

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

12 years agoMerge from head to stable/9:
scf [Wed, 8 Feb 2012 23:14:26 +0000 (23:14 +0000)]
Merge from head to stable/9:

r230655:
Since April 2, 2006, Indiana has observed DST.

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

12 years agoMFC r228641:
bz [Wed, 8 Feb 2012 18:51:10 +0000 (18:51 +0000)]
MFC r228641:

 Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksum
 offloading on vlans and document the new option.

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

12 years agoMFC r230866:
kib [Wed, 8 Feb 2012 14:21:20 +0000 (14:21 +0000)]
MFC r230866:
Add kqueue support to /dev/klog.

PR: kern/156423

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

12 years agoMFC r230553:
kib [Wed, 8 Feb 2012 14:09:08 +0000 (14:09 +0000)]
MFC r230553:
When doing vflush(WRITECLOSE), clean vnode pages.

Unmounts do vfs_msync() before calling VFS_UNMOUNT(), but there is
still a race allowing a process to dirty pages after msync
finished. Remounts rw->ro just left dirty pages in system.

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

12 years agoMFC 230877:
mav [Wed, 8 Feb 2012 07:30:48 +0000 (07:30 +0000)]
MFC 230877:
Fix NULL dereference panic on attempt to turn off (on system shutdown)
disconnected swap device.

This is quick and imperfect solution, as swap device will still be opened
and GEOM will not be able to destroy it. Proper solution would be to
automatically turn off and close disconnected swap device, but with existing
code it will cause panic if there is at least one page on device, even if
it is unimportant page of the user-level process. It needs some work.

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

12 years agoMFC r231177:
marcel [Wed, 8 Feb 2012 04:40:14 +0000 (04:40 +0000)]
MFC r231177:
Rev. 228360 moved the call to cpu_set_upcall() to happen before
td_proc gets initialized in td (=newtd). Use td0 instead.

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

12 years agoMFC 229465: Use correct locking when traversing interface address list.
jhb [Tue, 7 Feb 2012 22:13:38 +0000 (22:13 +0000)]
MFC 229465: Use correct locking when traversing interface address list.

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

12 years agoMFC r226274,r226416:
delphij [Tue, 7 Feb 2012 22:13:33 +0000 (22:13 +0000)]
MFC r226274,r226416:

Fix the error message when setgid() failed.

PR: bin/161509
Submitted by: Jeremy Huddleston <jeremyhu apple com>

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

12 years agoMFC r227454:
delphij [Tue, 7 Feb 2012 21:56:58 +0000 (21:56 +0000)]
MFC r227454:

Use __packed to prevent alignment from taking place, which otherwise may
change the on-disk format in an incompatible way. Without this change,
msdosfs created on FreeBSD/arm would not be mountable.

PR: bin/162486
Submitted by: Ian Lepore <freebsd damnhippie dyndns org>
Reported by: Mattia Rossi <mrossi at swin.edu.au>

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

12 years agoMFC 229614:
jhb [Tue, 7 Feb 2012 19:55:58 +0000 (19:55 +0000)]
MFC 229614:
Add new variants of the IF_ADDR_*LOCK*() macros used for protecting
interface address lists that distinguish read locks from write locks.
To preserve the KPI, the previous operations are mapped to the write
lock macros.  The lock is still kept as a mutex for now.

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

12 years agoMFC 229613:
jhb [Tue, 7 Feb 2012 19:53:02 +0000 (19:53 +0000)]
MFC 229613:
Update recently added drivers to use the if_*addr_r*lock() wrapper
functions instead of using the IF_ADDR_LOCK directly.  The wrapper
functions are the supported interface for device drivers.

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

12 years agoMFC 229598:
jhb [Tue, 7 Feb 2012 19:40:52 +0000 (19:40 +0000)]
MFC 229598:
Remove use of explicit bus space tags and handles and use methods that
operate on resource objects instead.

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

12 years agoHoist mergeinfo for modules/sound/driver/* up to sys/.
jhb [Tue, 7 Feb 2012 19:32:20 +0000 (19:32 +0000)]
Hoist mergeinfo for modules/sound/driver/* up to sys/.

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

12 years agoMFC 228962:
jhb [Tue, 7 Feb 2012 19:23:08 +0000 (19:23 +0000)]
MFC 228962:
Use curthread rather than PCPU_GET(curthread).  'curthread' uses
special-case optimizations on several platforms and is preferred.

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

12 years agoRegen.
jhb [Tue, 7 Feb 2012 19:13:34 +0000 (19:13 +0000)]
Regen.

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

12 years agoMFC 228957:
jhb [Tue, 7 Feb 2012 19:11:54 +0000 (19:11 +0000)]
MFC 228957:
Implement linux_fadvise64() and linux_fadvise64_64() using
kern_posix_fadvise().

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

12 years agoMFC r230620:
bschmidt [Tue, 7 Feb 2012 18:05:10 +0000 (18:05 +0000)]
MFC r230620:
On state changes from RUN to anything else the AGGR sessions are
cleared/dropped leading to qid2tap[n] being NULL as there no longer
is a tap. Now, if there have been lots of frames queued the firmware
processes and returns those after the tap is gone.

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

12 years agoMFC r230514:
mm [Tue, 7 Feb 2012 17:57:33 +0000 (17:57 +0000)]
MFC r230514:
Merge illumos revisions 13572, 13573, 13574:

Rev. 13572:
disk sync write perf regression when slog is used post oi_148 [1]

Rev. 13573:
crash during reguid causes stale config [2]
allow and unallow missing from zpool history since removal of pyzfs [5]

Rev. 13574:
leaking a vdev when removing an l2cache device [3]
memory leak when adding a file-based l2arc device [4]
leak in ZFS from metaslab_group_create and zfs_ereport_checksum [6]

References:
https://www.illumos.org/issues/1909 [1]
https://www.illumos.org/issues/1949 [2]
https://www.illumos.org/issues/1951 [3]
https://www.illumos.org/issues/1952 [4]
https://www.illumos.org/issues/1953 [5]
https://www.illumos.org/issues/1954 [6]

Obtained from: illumos (issues #1909, #1949, #1951, #1952, #1953, #1954)

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

12 years agoMFC r227755:
tuexen [Tue, 7 Feb 2012 17:52:32 +0000 (17:52 +0000)]
MFC r227755:
Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.
Retire the the now unused sctp_udp_tunneling_for_client_enable
sysctl variable.

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

12 years agoMFC r230495:
mm [Tue, 7 Feb 2012 17:46:02 +0000 (17:46 +0000)]
MFC r230495:
Try resolving jail path with realpath(3).

jail(8) does a chdir(2) to the given path argument. Kernel evaluates the
jail path from the new cwd and not from the original cwd, which leads to
undesired behavior if given a relative path.

Reviewed by: jamie

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

12 years agoMFC r230141 (eadler):
gabor [Tue, 7 Feb 2012 17:42:10 +0000 (17:42 +0000)]
MFC r230141 (eadler):
- Remove duplicate line from usage()

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

12 years agoMFC r226441 and r226443
cognet [Tue, 7 Feb 2012 16:07:29 +0000 (16:07 +0000)]
MFC r226441 and r226443
r226441:
Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or the
page has been allocated, or we could end up using random values, and bad things
could happen.

 PR: arm/161492
 Submitted by: Ian Lepore <freebsd AT damnhippie dot dyndns DOT org>

r226443:
Fix 2 bugs :

- A race condition could happen if two threads were using RAS at the same time
  as the code didn't reset RAS_END, the RAS code could believe we were not in
   a RAS, when we were in fact.
- Using signed value logic to compare addresses wasn't such a good idea.

Many thanks to Ian to investigate on these issues.

  Pointy hat to:  cognet
  PR: arm/161498
  Submitted by: Ian Lepore <freebsd At damnhippie DOT dyndns dot org

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

12 years agoMFC r230978:
kib [Tue, 7 Feb 2012 09:37:30 +0000 (09:37 +0000)]
MFC r230978:
Be as explicit as possible when describing relation between the -m mask
argument and slices. Adjust example for the same reason.

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

12 years agoMFC r227893 and r228119:
emaste [Tue, 7 Feb 2012 04:03:39 +0000 (04:03 +0000)]
MFC r227893 and r228119:

  Avoid double free creating a new RAID with invalid command line
  arguments.

  In build_volume(), check if arrays is allocated before traversing its
  items.  While parsing the arrays input, it's possible that we reach the
  error path before initializing the 'arrays' pointer, which in turn leads
  to a NULL deference.

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

12 years agoMFC r226697 and r226708:
emaste [Tue, 7 Feb 2012 03:34:57 +0000 (03:34 +0000)]
MFC r226697 and r226708:

  Avoid printing // for packages that install to /

  I have some packages that install to / (for whatever reason).  Right now we
  print entries of the form //path/to/file when listing files (pkg_info -L,
  pkg_info -g etc.)  This change avoids printing the redundant / .

  Staticify elide_root() for now to fix build.

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

12 years agoMFC r228825:
np [Tue, 7 Feb 2012 02:21:17 +0000 (02:21 +0000)]
MFC r228825:
Fix return value of function.

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

12 years agoMFC r229714
np [Mon, 6 Feb 2012 18:46:49 +0000 (18:46 +0000)]
MFC r229714

Always release the inp lock before returning from tcp_detach.

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

12 years agoMFC r228491, r228561, r228594.
np [Mon, 6 Feb 2012 18:11:01 +0000 (18:11 +0000)]
MFC r228491, r228561, r228594.

r228491:
Do not clobber the ingress queue's congestion setting.

r228561:
Many updates to cxgbe(4)

- Device configuration via plain text config file.  Also able to operate
  when not attached to the chip as the master driver.

- Generic "work request" queue that serves as the base for both ctrl and
  ofld tx queues.

- Generic interrupt handler routine that can process any event on any
  kind of ingress queue (via a dispatch table).

- A couple of new driver ioctls.  cxgbetool can now install a firmware
  to the card ("loadfw" command) and can read the card's memory
  ("memdump" and "tcb" commands).

- Lots of assorted information within dev.t4nex.X.misc.*  This is
  primarily for debugging and won't show up in sysctl -a.

- Code to manage the L2 tables on the chip.

- Updates to cxgbe(4) man page to go with the tunables that have changed.

- Updates to the shared code in common/

- Updates to the driver-firmware interface (now at fw 1.4.16.0)

r228594:
Catch up with new driver ioctls in cxgbe.

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

12 years agoMFC r230212:
dumbbell [Mon, 6 Feb 2012 13:29:50 +0000 (13:29 +0000)]
MFC r230212:
sh: Fix execution of multiple statements in a trap when evalskip is set

Before this fix, only the first statement of the trap was executed if
evalskip was set. This is for example the case when:
    o  "-e" is set for this shell
    o  a trap is set on EXIT
    o  a function returns 1 and causes the script to abort

Reviewed by: jilles
Sponsored by: Yakaz (http://www.yakaz.com)

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

12 years agoMFC r230211:
dumbbell [Mon, 6 Feb 2012 13:14:26 +0000 (13:14 +0000)]
MFC r230211:
sh: Test EXIT trap with multiple statements in it

Reviewed by: jilles

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