]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoGuess when all the bits will be in place for announcing 8.2-RELEASE.
kensmith [Wed, 16 Feb 2011 14:25:26 +0000 (14:25 +0000)]
Guess when all the bits will be in place for announcing 8.2-RELEASE.

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

13 years agoMFC: 217336
zack [Tue, 15 Feb 2011 20:53:01 +0000 (20:53 +0000)]
MFC: 217336
In the experimental NFS server, when converting an open-owner to a lock-owner,
start at sequence id 1 instead of 0, to match up with both Solaris and Linux.

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

13 years agoMFC: 217335
zack [Tue, 15 Feb 2011 20:46:51 +0000 (20:46 +0000)]
MFC: 217335
Clean up the experimental NFS server replay cache when the module is unloaded.

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

13 years agoMFC 216698 by maxim from /head
keramida [Tue, 15 Feb 2011 07:12:41 +0000 (07:12 +0000)]
MFC 216698 by maxim from /head

Fix -u flag description: it takes a username as an argument.

PR:             docs/153416
Submitted by:   Eitan Adler

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

13 years agoMFC 217746 from /head/usr.bin/top
keramida [Tue, 15 Feb 2011 06:33:35 +0000 (06:33 +0000)]
MFC 217746 from /head/usr.bin/top

Touch up the sample memory usage numbers a bit, to avoid wrapping
on terminal boundary.  While here add definition for 'G' and fix
the indentation of 'K' units.

Submitted by:   plunket
PR:             docs/153614

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

13 years agoMFC 212438:
gjb [Tue, 15 Feb 2011 01:33:59 +0000 (01:33 +0000)]
MFC 212438:
Add EINVAL to list of possible return values for cpuset_getaffinity(2).

PR: 149978
Approved by: keramida (mentor)

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

13 years agoMFC r216466:
bz [Mon, 14 Feb 2011 16:54:03 +0000 (16:54 +0000)]
MFC r216466:

  Bring back (most of) NATM to avoid further bitrot after r186119.
  Keep three lines disabled which I am unsure if they had been used at all.
  This will allow us to seek testers and possibly bring it all back.

  Discussed with:       rwatson

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

13 years agoMFC r218114:
bz [Mon, 14 Feb 2011 16:38:32 +0000 (16:38 +0000)]
MFC r218114:

  Update interface stats counters to match the current format in linux and
  try to export as much information as we can match.

  Requested on: Debian GNU/kFreeBSD list (debian-bsd lists.debian.org) 2010-12
  Tested by:    Mats Erik Andersson (mats.andersson gisladisker.se)

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

13 years agoMFC r218078:
bz [Mon, 14 Feb 2011 16:36:02 +0000 (16:36 +0000)]
MFC r218078:

  Remove duplicate printing of TF_NOPUSH in db_print_tflags().

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

13 years agoAdd back soon-to-be-release FreeBSD 7.4 which got clobbered in the previous
uqs [Sun, 13 Feb 2011 22:17:49 +0000 (22:17 +0000)]
Add back soon-to-be-release FreeBSD 7.4 which got clobbered in the previous
merges.

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

13 years agoPartially merge a change made in r200166.
ed [Sun, 13 Feb 2011 19:37:05 +0000 (19:37 +0000)]
Partially merge a change made in r200166.

It seems the utmpx fixes for who(1) also contained a small change to
make it work properly with the pts/%u naming. Unfortunately, this change
was never merged to FreeBSD 8. Properly remove the /dev/ part of the TTY
name instead of stripping until the last /.

Reported by: Eivind E <eivinde terraplane org>
Tested by: uqs@

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

13 years agoMFH r217595
uqs [Sun, 13 Feb 2011 19:15:42 +0000 (19:15 +0000)]
MFH r217595

Update groff manpage and symbols with what has been submitted upstream.
Also remove local overrides that are now in the contrib tree.

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

13 years agoMFH r217890
uqs [Sun, 13 Feb 2011 19:02:26 +0000 (19:02 +0000)]
MFH r217890

Fix typo in example getopt(1) script: $i vs $1 [1]
While here apply style hammer.

PR: docs/154289 [1]
Submitted by: Jamie Landeg Jones <jamie@bishopston.net>

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

13 years agoMFC r216156:
brucec [Sun, 13 Feb 2011 18:03:30 +0000 (18:03 +0000)]
MFC r216156:

Document the fact that passing in a count of zero to the bus_space functions
will result in undefined behaviour.
Taken from NetBSD's bus_space(9).

PR: kern/80980

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

13 years agoMFC 218523:
jpaetzel [Sun, 13 Feb 2011 15:15:47 +0000 (15:15 +0000)]
MFC 218523:

Netgear renamed the WG311 to the WG311v1 after they released a second
version of it.  There is also a WG311v3 which uses a chipset covered by
malo(4). Along the way add the WG311T to the list which is also an
atheros chipset.

Approved by: kib (mentor)

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

13 years agoMFC 218625:
simon [Sun, 13 Feb 2011 10:22:43 +0000 (10:22 +0000)]
MFC 218625:
 Fix Incorrectly formatted ClientHello SSL/TLS handshake messages could
 cause OpenSSL to parse past the end of the message.

 Note: Applications are only affected if they act as a server and call
 SSL_CTX_set_tlsext_status_cb on the server's SSL_CTX. This includes
 Apache httpd >= 2.3.3, if configured with "SSLUseStapling On".

The very quick MFC is done to get this fix into 7.4 / 8.2.

Discussed with: re
Approved by: so (simon, for "instant" MFC)
Obtained from: OpenSSL CVS
Security: http://www.openssl.org/news/secadv_20110208.txt
Security: CVE-2011-0014

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

13 years agoMFC 212827, 217717:
gjb [Sat, 12 Feb 2011 17:57:56 +0000 (17:57 +0000)]
MFC 212827, 217717:

Note that devfs(5) and fdescfs(5) both create /dev/fd file descriptors.

PR: 144534
Approved by: keramida (mentor)

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

13 years agoMFC: r218478
marius [Sat, 12 Feb 2011 13:41:00 +0000 (13:41 +0000)]
MFC: r218478

Correct signedness and off-by-one issues in parameters used for DMA tag
creation.

PR: 154259
Submitted by: Vladislav Movchan (partially)

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

13 years agoMFC 218271:
jhb [Fri, 11 Feb 2011 15:12:31 +0000 (15:12 +0000)]
MFC 218271:
When turning off TCP_NOPUSH, only call tcp_output() to immediately flush
any pending data if the connection is established.

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

13 years agoAdd release notes for xz update to 5.0.0.
mm [Fri, 11 Feb 2011 15:03:05 +0000 (15:03 +0000)]
Add release notes for xz update to 5.0.0.

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

13 years agoMFC 212440,212493,212500:
gjb [Fri, 11 Feb 2011 13:58:30 +0000 (13:58 +0000)]
MFC 212440,212493,212500:

Add RETURN VALUES section to devclass_get_maxunit(9).

PR: 149979
Approved by: keramida (mentor)

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

13 years agoMFC 218398:
gjb [Fri, 11 Feb 2011 13:55:27 +0000 (13:55 +0000)]
MFC 218398:

Fix typo in amdtemp(4).

Approved by: keramida (mentor)

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

13 years agoMFC 218421:
gjb [Fri, 11 Feb 2011 13:52:55 +0000 (13:52 +0000)]
MFC 218421:

Remove CRT reference from zmore(1).

PR: 154441
Approved by: keramida (mentor)

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

13 years agoMFC 218350:
dougb [Fri, 11 Feb 2011 05:56:48 +0000 (05:56 +0000)]
MFC 218350:

Catch up with reality and references from the latest RFCs
(especially 5735) for our default empty zones.

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

13 years agoMFC r218278:
ae [Fri, 11 Feb 2011 05:56:14 +0000 (05:56 +0000)]
MFC r218278:
  vdev's sectorsize should not be greater than 8 Kbytes and also
  it should be power of 2. This prevents non-aligned access while
  probing vdev's labels.

  PR: kern/147852

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

13 years agoMFC 218142:
dougb [Fri, 11 Feb 2011 05:53:46 +0000 (05:53 +0000)]
MFC 218142:

Let rpcbind clean up after itself

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

13 years agoMFC r217314:
ae [Fri, 11 Feb 2011 05:48:44 +0000 (05:48 +0000)]
MFC r217314:
  Fix up the grammar.

  PR: docs/153933

MFC r217342,217343,217344 by maxim:
  o Typo fixes.

  o Start each sentence on a new line.  No content changes.

  o Somehow I revert Dd macro in the previous commit.

MFC r218015:
  Document the "bios-boot" partition type.

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

13 years agoMFC r218014:
ae [Fri, 11 Feb 2011 05:37:05 +0000 (05:37 +0000)]
MFC r218014:
  Add new user-friendly aliases for partition types for the MBR and
  EBR schemes: fat32, ebr, linux-data, linux-raid, linux-swap and
  linux-lvm. Add bios-boot GUID and alias for the GPT scheme. It used by
  GRUB 2 loader. Also do sorting definitions of types in diskmbr.h
  and in g_part.c.

  PR: bin/120990, kern/147664

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

13 years agoMFC r217090:
jh [Wed, 9 Feb 2011 15:55:48 +0000 (15:55 +0000)]
MFC r217090:

Warn if rules could not be read from a ruleset file. Now at least
something gets logged if the file has syntax errors.

PR: conf/91342

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

13 years agoMFC r218189:
pluknet [Wed, 9 Feb 2011 15:32:04 +0000 (15:32 +0000)]
MFC r218189:

Remove OpenSolaris include path referring to a non-existing directory.

Reported by: arundel on freebsd-hackers@ via clang
Approved by: kib (mentor)

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

13 years agoMFC: r216961
marius [Tue, 8 Feb 2011 22:08:00 +0000 (22:08 +0000)]
MFC: r216961

Reserve INTR_MD[1-4] similarly to what BUS_DMA_BUS[1-4] are intended for
and switch sparc64 to use the first one for bus error filter handlers of
bridge drivers instead of (ab)using INTR_FAST for that so we eventually
can get rid of the latter.

Reviewed by: jhb

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

13 years agoMFC r206903 (by imp):
kib [Tue, 8 Feb 2011 20:28:36 +0000 (20:28 +0000)]
MFC r206903 (by imp):
Make this file more C++ friendly.

Approved by: imp
Found by: jkim

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

13 years agoMFC r216675:
delphij [Tue, 8 Feb 2011 11:48:37 +0000 (11:48 +0000)]
MFC r216675:

Allow overriding pidfile and dumpfile.

PR: bin/153362
Submitted by: Joe Holden <joe rewt org uk>

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

13 years agoMFC r217946:
kib [Tue, 8 Feb 2011 09:28:28 +0000 (09:28 +0000)]
MFC r217946:
Add support for BIO_DELETE on swap-backed md(4).

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

13 years agoMFC r218168:
kib [Tue, 8 Feb 2011 09:25:32 +0000 (09:25 +0000)]
MFC r218168:
Only process as much array elements as we find the sockets during
second phase of gc.  Take linkage lock and recheck the eligibility
of the socket for gc, as well as call fhold() under the linkage lock.

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

13 years agoMFC r218180 (= fixed r218169):
mm [Tue, 8 Feb 2011 08:44:08 +0000 (08:44 +0000)]
MFC r218180 (= fixed r218169):

For the ZFS kernel module, change the type of clock_t to int64_t.

The clock_t type in OpenSolaris is long (int64_t on amd64).
On FreeBSD clock_t is int32_t. The clock_t type is used in several places
in the ZFS code to store system uptime in milliseconds ("seconds * hz").

With hz=1000 we have a 32-bit integer overflow in 24 days, 20 hours,
31 minutes and 23.648 seconds. This has a user reported negative impact
on l2arc_feed_thread() and may cause unexpected results from other functions
using clock_t.

Reported by: Artem Belevich <fbsdlist@src.cx> on freebsd-fs@

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

13 years agoMFC 212610:
gjb [Mon, 7 Feb 2011 19:12:30 +0000 (19:12 +0000)]
MFC 212610:
Synchronize newfs(8) manual with code.

PR: 61716
Approved by: keramida (mentor)

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

13 years agoMFC 214374:
gjb [Mon, 7 Feb 2011 11:12:27 +0000 (11:12 +0000)]
MFC 214374:

Minor grammar fixes.

Approved by: keramida (mentor)

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

13 years agoMFC r215213:
brooks [Sun, 6 Feb 2011 13:59:03 +0000 (13:59 +0000)]
MFC r215213:

Add an (off by default) check for negative permissions (where the
group on a object has less permissions than everyone).  These
permissions will not work reliably over NFS if you have more than
14 supplemental groups and are usually not what you mean.

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

13 years agoMFC r218098:
kib [Sun, 6 Feb 2011 09:33:08 +0000 (09:33 +0000)]
MFC r218098:
Make ldd(1) work when versioned dependency file is cannot be loaded.

MFC r218099:
Fix grammar.

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

13 years agoMFC r218207:
emaste [Sun, 6 Feb 2011 01:13:10 +0000 (01:13 +0000)]
MFC r218207:

  Revert part of r173264.  Both aac_ioctl_sendfib and aac_ioctl_send_raw_srb
  make use of the aac_ioctl_event callback, if acc_alloc_command fails.
  This can end up in an infinite loop in the while loop in
  aac_release_command.

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

13 years agoMFC r217821:
kib [Sat, 5 Feb 2011 23:02:55 +0000 (23:02 +0000)]
MFC r217821:
Document P_FOLLOWFORK.

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

13 years agoMFC r217820:
kib [Sat, 5 Feb 2011 23:01:18 +0000 (23:01 +0000)]
MFC r217820:
Document PT_FLAG_FORKED, PT_FOLLOW_FORK, pl_tdname and pl_child_pid.

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

13 years agoMFC r217819:
kib [Sat, 5 Feb 2011 22:57:14 +0000 (22:57 +0000)]
MFC r217819:
Allow debugger to specify that children of the traced process should be
automatically traced. Extend the ptrace(PL_LWPINFO) to report that child
just forked.

To not change the struct thread layout, td_dbg_forked was placed at the
end of the structure.

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

13 years agoMFC r212999 (by jhb):
kib [Sat, 5 Feb 2011 22:04:20 +0000 (22:04 +0000)]
MFC r212999 (by jhb):
Copy td_rqindex during fork instead of zero'ing it to match the comments.

Approved by: jhb

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

13 years agoMFC r198854 (by attilio):
kib [Sat, 5 Feb 2011 21:50:23 +0000 (21:50 +0000)]
MFC r198854 (by attilio):
Split P_NOLOAD into a per-thread flag (TDF_NOLOAD)

Approved by: attilio

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

13 years agoMFC r216019: sh: Make the test for cd/pwd with long pathnames more useful:
jilles [Sat, 5 Feb 2011 21:47:04 +0000 (21:47 +0000)]
MFC r216019: sh: Make the test for cd/pwd with long pathnames more useful:
* Use $(getconf PATH_MAX /) to make sure we actually exercise the hard part
* Delete our test area even if the test fails

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

13 years agoMFC r215766: sh: Pass multiple bytes at a time to lex.
jilles [Sat, 5 Feb 2011 21:40:57 +0000 (21:40 +0000)]
MFC r215766: sh: Pass multiple bytes at a time to lex.

This speeds up the expansion/arith6.0 test considerably.

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

13 years agoMFC r215550: sh: Add a test that manipulates various long strings.
jilles [Sat, 5 Feb 2011 21:39:14 +0000 (21:39 +0000)]
MFC r215550: sh: Add a test that manipulates various long strings.

It is quite effective at detecting mistakes in memalloc.c and code using it.

It is somewhat slow, but some later changes improve it.

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

13 years agoMFC r217774:
mav [Sat, 5 Feb 2011 21:34:26 +0000 (21:34 +0000)]
MFC r217774:
ICH7 SATA controller in legacy mode can provide access to SATA registers
via AHCI-like memory resource at BAR(5). Use it if BIOS was so kind to
allocate memory for that BAR. This allows hot-plug support and connection
speed reporting.

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

13 years agoMFC r216496: sh: Fix corruption of command substitutions with special chars
jilles [Sat, 5 Feb 2011 21:24:37 +0000 (21:24 +0000)]
MFC r216496: sh: Fix corruption of command substitutions with special chars
after newline.

The CTLESC byte to protect a special character was output before instead of
after a newline directly preceding the special character.

The special handling of newlines is because command substitutions discard
all trailing newlines.

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

13 years agoMFC r216630: Explain why it is a bad idea to use aliases in scripts.
jilles [Sat, 5 Feb 2011 21:02:13 +0000 (21:02 +0000)]
MFC r216630: Explain why it is a bad idea to use aliases in scripts.

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

13 years agoMFC r216168: sh(1): Clean up documentation of built-in commands.
jilles [Sat, 5 Feb 2011 21:00:35 +0000 (21:00 +0000)]
MFC r216168: sh(1): Clean up documentation of built-in commands.

Make sure all built-in commands are in the subsection named such, except
exp, let and wordexp which are deliberately undocumented. The text said only
built-ins that really need to be a built-in were documented there but in
fact almost all of them were already documented.

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

13 years agoMFC r217875:
mav [Sat, 5 Feb 2011 20:57:01 +0000 (20:57 +0000)]
MFC r217875:
In addition to r217444, ignore also ATA status errors on DMA Auto-Activation
enabling request. Some HP disks reported to return ABORT error there while
declaring support for this feature.

PR: kern/152817

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

13 years agoMFC r217874:
mav [Sat, 5 Feb 2011 20:54:47 +0000 (20:54 +0000)]
MFC r217874:
Make device initialization sequence shorter when possible. Do not enable/
disable already enabled/disabled SATA features.

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

13 years agoMFC r217444:
mav [Sat, 5 Feb 2011 20:52:43 +0000 (20:52 +0000)]
MFC r217444:
Some old WD SATA disks report supported and enabled device-initiated
interface power management, but return ABORT error on attempt to disable
it. Make CAM SATA probe sequence ignore this error, as it is not fatal.

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

13 years agoMFC r208505: sh(1): Rework documentation of shell variables.
jilles [Sat, 5 Feb 2011 20:48:45 +0000 (20:48 +0000)]
MFC r208505: sh(1): Rework documentation of shell variables.

* Move the "environment variables" that do not need exporting to be
  effective or that are set by the shell without exporting to a new section
  "Special Variables".
* Add special variables LINENO and PPID.
* Add environment variables LANG, LC_* and PWD; also describe ENV under
  environment variables.

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

13 years agoMFC r208501: sh(1): Improve wording of 'Special Parameters' section.
jilles [Sat, 5 Feb 2011 20:37:33 +0000 (20:37 +0000)]
MFC r208501: sh(1): Improve wording of 'Special Parameters' section.

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

13 years agoMFC r217557: sh: Fix signal messages being sent to the wrong file sometimes.
jilles [Sat, 5 Feb 2011 20:25:17 +0000 (20:25 +0000)]
MFC r217557: sh: Fix signal messages being sent to the wrong file sometimes.

When a foreground job exits on a signal, a message is printed to stdout
about this. The buffer was not flushed after this which could result in the
message being written to the wrong file if the next command was a builtin
and had stdout redirected.

Example:
  sh -c 'kill -9 $$'; : > foo; echo FOO:; cat foo

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

13 years agoUpdate to BIND 9.6.3, the latest from ISC on the 9.6 branch.
dougb [Sat, 5 Feb 2011 19:13:34 +0000 (19:13 +0000)]
Update to BIND 9.6.3, the latest from ISC on the 9.6 branch.

All 9.6 users with DNSSEC validation enabled should upgrade to this
version, or the latest version in the 9.7 branch, prior to 2011-03-31
in order to avoid validation failures for names in .COM as described
here:

https://www.isc.org/announcement/bind-9-dnssec-validation-fails-new-ds-record

In addition the fixes for this and other bugs, there are also the
following:

  * Various fixes to kerberos support, including GSS-TSIG
  * Various fixes to avoid leaking memory, and to problems that could
    prevent a clean shutdown of named

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

13 years agoMFC r217847: sh: Clean up some old comments:
jilles [Sat, 5 Feb 2011 15:09:55 +0000 (15:09 +0000)]
MFC r217847: sh: Clean up some old comments:
* There is no plan for an alternative to the command "set".
* Attempting to unset a readonly variable has not raised an error for quite
  a while, so the order of unsetting a variable and a function with the same
  name does not matter.

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

13 years agoMFC r218166:
mm [Sat, 5 Feb 2011 11:32:53 +0000 (11:32 +0000)]
MFC r218166:

Reintroduce bugfix from r210103 and fix xz on strong-aligned architectures.
This fix was accidentially reverted with the 5.0.0 update in r215187.

PR: bin/154310
Submitted by: Michael Moll <kvedulv@kvedulv.de>

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

13 years agoMFC r217767:
gordon [Sat, 5 Feb 2011 06:25:21 +0000 (06:25 +0000)]
MFC r217767:
Honor $PAGER instead of always calling more.

Approved by: colin@

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

13 years agoMFC r216831,216858:
yongari [Fri, 4 Feb 2011 20:57:37 +0000 (20:57 +0000)]
MFC r216831,216858:
r216831:
  Add vte(4) man page and hook up vte(4) to the build.
  Also add Xr to appropriate man pages.

r216858:
  Remove duplicated "perfect"

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

13 years agoMFC r216830:
yongari [Fri, 4 Feb 2011 20:51:18 +0000 (20:51 +0000)]
MFC r216830:
  Add vte(4) to the list of supported network interface.

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

13 years agoMFC r216829,216833:
yongari [Fri, 4 Feb 2011 20:32:52 +0000 (20:32 +0000)]
MFC r216829,216833:
rr216829:
  Add driver for DM&P Vortex86 RDC R6040 Fast Ethernet.
  The controller is commonly found on DM&P Vortex86 x86 SoC.  The
  driver supports all hardware features except flow control.  The
  flow control was intentionally disabled due to silicon bug.

  DM&P Electronics, Inc. provided all necessary information including
  sample board to write driver and answered many questions I had.
  Many thanks for their support of FreeBSD.

  H/W donated by: DM&P Electronics, Inc.

r216833:
  Remove debugging leftovers.

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

13 years agoMFC r216828:
yongari [Fri, 4 Feb 2011 20:12:45 +0000 (20:12 +0000)]
MFC r216828:
  Add RDC Semiconductor R6040 10/100 PHY driver.

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

13 years agoMFC r217207:
ed [Fri, 4 Feb 2011 19:27:49 +0000 (19:27 +0000)]
MFC r217207:

  Add missing __dead2 to __assert().

  __assert() is called when an assertion fails. After printing an error
  message, it will call abort(). abort() never returns, hence it has the
  __dead2 attribute. Also add this attribute to __assert().

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

13 years agoMFC 217350:
jhb [Fri, 4 Feb 2011 17:26:44 +0000 (17:26 +0000)]
MFC 217350:
Use software interrupt priorities for USB kthreads instead of hardware
interrupt priorities.

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

13 years agoMFC 217351:
jhb [Fri, 4 Feb 2011 17:11:37 +0000 (17:11 +0000)]
MFC 217351:
Introduce two new helper macros to define the priority ranges used for
interactive timeshare threads (PRI_*_INTERACTIVE) and non-interactive
timeshare threads (PRI_*_BATCH) and use these instead of PRI_*_REALTIME
and PRI_*_TIMESHARE.  No functional change.

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

13 years agoMFC 217292:
jhb [Fri, 4 Feb 2011 16:30:13 +0000 (16:30 +0000)]
MFC 217292:
- Retire some unused ithread priorities: PI_TTYHIGH, PI_TAPE, and
  PI_DISKLOW.  While here, rename PI_TTYLOW to PI_TTY.
- Add a macro PI_SWI() that takes a SWI_* constant as an argument and
  returns the suitable thread priority.

To preserve the KBI, I did not renumber priorities but simply removed
unused ones.

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

13 years agoMFC 217075:
jhb [Fri, 4 Feb 2011 14:44:42 +0000 (14:44 +0000)]
MFC 217075:
Retire PCONFIG and leave the priority of thread0 alone when waiting for
interrupt config hooks to execute.

To preserve the KBI, I did not renumber priorities but simply removed
PCONFIG.

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

13 years agoMFC 218171:
jhb [Fri, 4 Feb 2011 14:29:05 +0000 (14:29 +0000)]
MFC 218171:
Output an appropriate amount of padding to line up per-CPU state columns
rather than using a terminal sequence to move the cursor when drawing the
initial screen.

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

13 years agoMFC 200605:
jhb [Fri, 4 Feb 2011 13:39:43 +0000 (13:39 +0000)]
MFC 200605:
Add entries to NOTES for the modular phy support so that these options are
documented.

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

13 years agoMFC r216873:
brucec [Fri, 4 Feb 2011 10:19:56 +0000 (10:19 +0000)]
MFC r216873:

There can be more than 0x20000000 swap meta blocks allocated if a swap-backed
md(4) device is used. Don't panic when deallocating such a device if swap
has been used.

PR: kern/133170

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

13 years agoMFC r218026:
kib [Fri, 4 Feb 2011 09:15:23 +0000 (09:15 +0000)]
MFC r218026:
If more than one thread allocated sf buffers for sendfile(2), and
each of the threads needs more while current pool of the buffers is
exhausted, then neither thread can make progress.

Switch to nowait allocations after we got first buffer already.

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

13 years agoMFC 217888
deischen [Fri, 4 Feb 2011 08:51:45 +0000 (08:51 +0000)]
MFC 217888

Prison check addresses set with multicast interface options.

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

13 years agoMFC r217924:
ae [Thu, 3 Feb 2011 11:09:27 +0000 (11:09 +0000)]
MFC r217924:
  While inspecting the disklabel check that start offset of partition is
  within provider's bounds. If not then reject this disklabel.
  Mark bbarea as NULL to do not free it again in destroy method.

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

13 years agoMFC r217991:
kib [Thu, 3 Feb 2011 08:55:45 +0000 (08:55 +0000)]
MFC r217991:
Use unsigned type for the registers in the linux sigcontext.

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

13 years agoMFC r216925,217331,217349,217542:
yongari [Wed, 2 Feb 2011 18:42:53 +0000 (18:42 +0000)]
MFC r216925,217331,217349,217542:
r216925:
  Add a 'locked' variant of the foo_start() routine and call it directly
  from interrupt handlers and watchdog routines instead of queueing a task
  to call foo_start().

r217331:
  Make sure to invoke unlocked foo_start since the taskqueue does not
  hold a driver lock. This should fix a regression introduced in
  r216925.

r217349:
  Forgot to remove unlock of the driver lock from age_start_locked() when
  converting it to a locked variant.

r217542:
  Fix some bugs in my last set of changes to ale(4):
  - Remove extra unlock from end of ale_start_locked().
  - Expand scope of locking in interrupt handler.
  - Move ether_ifdetach() earlier and retire now-unneeded DETACH flag.

  Tested by: Aryeh Friedman

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

13 years agoMFC r217187:
jh [Wed, 2 Feb 2011 17:31:01 +0000 (17:31 +0000)]
MFC r217187:

Replace nfs4 with newnfs in netfs_types. nfs4 was removed in r192578 and
mount(8) has supported newnfs since r192930.

PR: conf/153655

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

13 years agoMFC r217880:
kib [Wed, 2 Feb 2011 12:24:53 +0000 (12:24 +0000)]
MFC r217880:
Treat async buffer writes from the gjournal switcher thread the same as
from syncer. We shall not sleep on running buffer space when suspending.

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

13 years agoMFC r217578:
kib [Wed, 2 Feb 2011 12:22:44 +0000 (12:22 +0000)]
MFC r217578:
In linuxolator getdents_common(), do not loop if no records were returned
by VOP_READDIR().

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

13 years agoMFC r217826 (by sem):
kib [Tue, 1 Feb 2011 16:15:31 +0000 (16:15 +0000)]
MFC r217826 (by sem):

Remove DOS-style EOLs.

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

13 years agoMFC r216922:
jh [Tue, 1 Feb 2011 16:11:31 +0000 (16:11 +0000)]
MFC r216922:

Increase carried_error if we skip a file due to an error. This ensures
that setfacl(1) exits with proper exit status on failure.

PR: bin/149780

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

13 years agoMFC r217824:
kib [Tue, 1 Feb 2011 10:20:31 +0000 (10:20 +0000)]
MFC r217824:
When vtruncbuf() iterates over the vnode buffer list, lock buffer object
before checking the validity of the next buffer pointer. Otherwise, the
buffer might be reclaimed after the check, causing iteration to run into
wrong buffer.

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

13 years agoMFC r217823:
kib [Tue, 1 Feb 2011 10:18:36 +0000 (10:18 +0000)]
MFC r217823:
Bio shall not be accessed after g_io_deliver(9).

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

13 years agoMFC r217531:
ae [Tue, 1 Feb 2011 09:27:28 +0000 (09:27 +0000)]
MFC r217531:
  Limit maximum number of GPT entries to 4k. It is most realistic value
  and can prevent kernel memory exhausting when big value is specified
  from command line.

  Split reading and writing operation to several iterations to do not
  trigger KASSERT when data length is greater than MAXPHYS.

  PR:             kern/144962, kern/147851

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

13 years agoMFC r216409: Note with sadness Dan Moschuk's passing
imp [Mon, 31 Jan 2011 17:57:53 +0000 (17:57 +0000)]
MFC r216409: Note with sadness Dan Moschuk's passing

PR: misc/147479

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

13 years agoMFC r218025:
pluknet [Mon, 31 Jan 2011 10:18:42 +0000 (10:18 +0000)]
MFC r218025:

 Remove SuperH architecture from a comment.

Approved by: kib (mentor)

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

13 years agoMFC of 218122, tzdata2011a:
edwin [Mon, 31 Jan 2011 09:30:56 +0000 (09:30 +0000)]
MFC of 218122, tzdata2011a:

- Cleanup rules for Australia/South_Australia (nothing changed)
- Add historical information for Honolulu.

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

13 years ago MFC r218038:
yongari [Mon, 31 Jan 2011 00:27:34 +0000 (00:27 +0000)]
 MFC r218038:
  Fix logic error. Due to the bug, it incorrectly checked TXQ status
  which in turn can leave TXQ active.

  Submitted by: Brad ( brad <> comstyle dot com )

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

13 years agoMFC r216766:
yongari [Sun, 30 Jan 2011 23:23:05 +0000 (23:23 +0000)]
MFC r216766:
  Add device id for RDC M3010 which is found on Vortex86 SoC.

  Reviewed by: mav

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

13 years agoMFC r216596:
yongari [Sun, 30 Jan 2011 23:18:25 +0000 (23:18 +0000)]
MFC r216596:
  Document limitation of station address reprogramming.

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

13 years agoMFC r216576,216578-216581,217974:
yongari [Sun, 30 Jan 2011 23:15:45 +0000 (23:15 +0000)]
MFC r216576,216578-216581,217974:
r216576,217974:
  ae(4), igb(4) and ixgbe(4) supports altq(4).

r216578:
  Add .Xr to altq(4).

r216579,216581:
  igb(4), ixgbe(4), mxge(4) and nxge(4) support VLAN hardware tag
  insertion/stripping.
  et(4) and fwe(4) support VLAN oversized frames.

r216580:
  Add ae(4) to the list of drivers use the miibus interface.

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

13 years agoMFC r217704: getgroups(2): Remove <sys/types.h> and refer to sysconf(3).
jilles [Sun, 30 Jan 2011 20:37:42 +0000 (20:37 +0000)]
MFC r217704: getgroups(2): Remove <sys/types.h> and refer to sysconf(3).

Because {NGROUPS_MAX} may become variable, its value should be obtained
using sysconf(3).

In head, r217704 removed mention of <sys/param.h>; this was not mentioned in
stable/8.

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

13 years agoMFC r217756:
nwhitehorn [Sun, 30 Jan 2011 02:17:47 +0000 (02:17 +0000)]
MFC r217756:
Disable ATAPI DMA unconditionally on Apple Kauai ATA controllers, like it
is on the MacIO ones. It appears to be unreliable on all DBDMA-based
controllers for unknown reasons, which should be figured out eventually.

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

13 years agoMFC r216798:
kib [Sat, 29 Jan 2011 22:51:46 +0000 (22:51 +0000)]
MFC r216798:
Add support for FS_TRIM to user-mode UFS utilities.

Tested by: pho

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

13 years agoMFC r216796:
kib [Sat, 29 Jan 2011 22:51:27 +0000 (22:51 +0000)]
MFC r216796:
Add kernel side support for BIO_DELETE/TRIM on UFS.

Tested by: pho

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

13 years agoMFC: 'alfred' command.
alfred [Sat, 29 Jan 2011 08:14:47 +0000 (08:14 +0000)]
MFC: 'alfred' command.

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