]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoPredict the date we'll be ready to announce 8.1-RELEASE. While here
kensmith [Sat, 17 Jul 2010 04:35:02 +0000 (04:35 +0000)]
Predict the date we'll be ready to announce 8.1-RELEASE.  While here
add the entry for 8.0-RELEASE which was added to releng/8.0/UPDATING
during the 8.0-RELEASE cycle but not to stable/8/UPDATING at that time.

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

13 years agoMFC r208982,r208983,r210117 : cosmetic changes to kern.sched.topology_spec XML
ivoras [Fri, 16 Jul 2010 14:31:24 +0000 (14:31 +0000)]
MFC r208982,r208983,r210117 : cosmetic changes to kern.sched.topology_spec XML

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

13 years agoMFC r209664:
mav [Fri, 16 Jul 2010 09:12:47 +0000 (09:12 +0000)]
MFC r209664:
Add ata(4) ability to limit initial ATA mode for devices via device hints.
After boot this mode can be changed with atacontrol/camcontrol as usual.
It works for both legacy and ATA_CAM wrapper mode.

PR:             kern/123980

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

13 years agoMFC r208822:
mav [Fri, 16 Jul 2010 09:10:11 +0000 (09:10 +0000)]
MFC r208822:
Fix possible use after free.

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

13 years agoMFC r208820:
mav [Fri, 16 Jul 2010 09:08:16 +0000 (09:08 +0000)]
MFC r208820:
Fix use after free on error.

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

13 years agoMFC r201227: record the fact
imp [Thu, 15 Jul 2010 22:52:36 +0000 (22:52 +0000)]
MFC r201227: record the fact

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

13 years agoMFC: r209969
imp [Thu, 15 Jul 2010 22:35:50 +0000 (22:35 +0000)]
MFC: r209969

r209969 | nwhitehorn | 2010-07-12 22:08:08 -0600 (Mon, 12 Jul 2010) | 13 lines

Enhance config to handle MACHINEs with multiple architectures:

- Passing -m to config will now print the MACHINE and MACHINE_ARCH
  given in the passed kernel configuration file and then exit.
- If an option is defined in options.MACHINE with the same name as the
  architecture of the kernel being configured, that option will be
  considered set. This allows conditional compilation based on CPU
  architecture.

Config version is now 600010.

Reviewed by:    imp

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

13 years agoMFC: r209135
imp [Thu, 15 Jul 2010 22:34:30 +0000 (22:34 +0000)]
MFC: r209135
r209135 | imp | 2010-06-13 10:54:11 -0600 (Sun, 13 Jun 2010) | 9 lines

style(9) fixes:

o make cmd scoped to the whole do_rules function, since it really is
  scoped to the whole fucnion.  Making it static was the wrong way to
  fix referencing it outside of the block in which it was declared
  (and conforms to the style of the rest of the file).
o remove a couple of meaningless blank lines
o properly wrap one line.

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

13 years agoMFC part of 209483:
jhb [Thu, 15 Jul 2010 12:17:17 +0000 (12:17 +0000)]
MFC part of 209483:
Clear DF bit in cmcint interrupt handler.

Submitted by: kib

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

13 years agoMFC r209924; Add -l to the synopsis
brian [Thu, 15 Jul 2010 07:14:57 +0000 (07:14 +0000)]
MFC r209924; Add -l to the synopsis

Submitted by: jhell at dataix dot net

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

13 years agoMFC 209595:
jhb [Wed, 14 Jul 2010 21:52:02 +0000 (21:52 +0000)]
MFC 209595:
Send SIGPIPE to the thread that issued the offending system call
rather than to the entire process.

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

13 years agoPartially MFC 209592:
jhb [Wed, 14 Jul 2010 21:48:16 +0000 (21:48 +0000)]
Partially MFC 209592:
Add a tdksignal() routine that mirrors pksignal() except that it accepts a
thread instead of a process.  As an extension, if a NULL ksiginfo_t is
passed in, setup a ksiginfo_t on the stack similar to psignal().  This
provides semantics matching the new tdsignal() function in 9 while
preserving the existing ABI.

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

13 years agoMFC 208507,208556,208621:
jhb [Wed, 14 Jul 2010 21:10:14 +0000 (21:10 +0000)]
MFC 208507,208556,208621:
Add support for corrected machine check interrupts.  CMCI is a new local
APIC interrupt that fires when a threshold of corrected machine check
events is reached.  CMCI also includes a count of events when reporting
corrected errors in the bank's status register.  Note that individual
banks may or may not support CMCI.  If they do, each bank includes its own
threshold register that determines when the interrupt fires.  Currently
the code uses a very simple strategy where it doubles the threshold on
each interrupt until it succeeds in throttling the interrupt to occur
only once a minute (this interval can be tuned via sysctl).  The threshold
is also adjusted on each hourly poll which will lower the threshold once
events stop occurring.

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

13 years agoMFC 208787:
jhb [Wed, 14 Jul 2010 19:00:44 +0000 (19:00 +0000)]
MFC 208787:
Assert that the thread lock is held in sched_pctcpu() instead of
recursively acquiring it.  All of the current callers already hold the
lock.

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

13 years agoMFC 209588:
jhb [Wed, 14 Jul 2010 18:55:34 +0000 (18:55 +0000)]
MFC 209588:
- The ETIMEDOUT error applies to pthread_timedjoin_np(), not pthread_join().
- Tweak wording in history section for pthread_timedjoin_np().

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

13 years agoMFC r209718:
ed [Tue, 13 Jul 2010 11:04:46 +0000 (11:04 +0000)]
MFC r209718:

  Fix a race condition, where a TTY could be destroyed twice.

  There are special cases where tty_rel_free() can be called twice in a
  row, namely when closing and revoking the TTY at the same moment. Only
  call destroy_dev_sched_cb() once.

Reported by:  Jeremie Le Hen

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

13 years agoMFC r209743:
kib [Tue, 13 Jul 2010 08:45:50 +0000 (08:45 +0000)]
MFC r209743:
Calculate nshift only once.

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

13 years agoMFC r209742:
kib [Tue, 13 Jul 2010 08:43:28 +0000 (08:43 +0000)]
MFC r209742:
In revoke(), verify that VCHR vnode indeed belongs to devfs.

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

13 years agoMFC r209715: addr2ascii(3) was removed ages ago. Fix the comment.
maxim [Tue, 13 Jul 2010 05:12:14 +0000 (05:12 +0000)]
MFC r209715: addr2ascii(3) was removed ages ago.  Fix the comment.

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

13 years agoCorrectly copy the M_RDONLY flag when duplicating a reference
cperciva [Tue, 13 Jul 2010 02:45:17 +0000 (02:45 +0000)]
Correctly copy the M_RDONLY flag when duplicating a reference
to an mbuf external buffer.

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-10:07.mbuf

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

13 years agoMFC r202917
remko [Mon, 12 Jul 2010 17:46:19 +0000 (17:46 +0000)]
MFC r202917

 Add support for the NM10 chipset.

 PR: kern/143118
 Submitted by: Koshin sumitani <ksumitani at mui dot biglobe dot ne dot jp>
 Approved by: imp (mentor, implicit)
 MFC after: 3 days

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

13 years agoMFC r209853:
nwhitehorn [Mon, 12 Jul 2010 14:24:20 +0000 (14:24 +0000)]
MFC r209853:

The number after 2 is 3, not 4.

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

13 years agoMFC r209577, r209761:
attilio [Mon, 12 Jul 2010 10:11:10 +0000 (10:11 +0000)]
MFC r209577, r209761:
- Fix a lock leak in case the ticks wrapped up
- Simplify the logic for handling ticks wrap-ups
- Fix a bug where a thread may be in sleepign state but not on a
  sleepqueue chain still.

Sponsored by: Sandvine Incorporated

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

13 years agoMFC r209364: Fix some (not all) style(9) and casting errors.
brian [Sun, 11 Jul 2010 22:00:40 +0000 (22:00 +0000)]
MFC r209364: Fix some (not all) style(9) and casting errors.

PR: 209364
Submitted by: giffunip at tutopia dot com
Obtained from: NetBSD

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

13 years agoMFC r209363: Recognise the -l switch in pkill.
brian [Sun, 11 Jul 2010 21:50:05 +0000 (21:50 +0000)]
MFC r209363: Recognise the -l switch in pkill.

PR: 143558
Submitted by: eitanadlerlist at gmail dot com

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

13 years agoMFC r209362: Add a -t switch for masking output based on size.
brian [Sun, 11 Jul 2010 21:47:38 +0000 (21:47 +0000)]
MFC r209362: Add a -t switch for masking output based on size.

PR: 144192
Submitted by: gk

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

13 years agoMFC r209820:
jamie [Sun, 11 Jul 2010 15:32:20 +0000 (15:32 +0000)]
MFC r209820:

  Properly recognize a number followed by non-digits as a jail name.
  Call "0" a name because zero is used to indicate no specified jid.

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

13 years agoMFC r209214:
mav [Sun, 11 Jul 2010 12:06:42 +0000 (12:06 +0000)]
MFC r209214:
When Emulate3Button is active, do not set select() timeout in states when
it is not needed. No need to kick CPU every 20ms without a purpose.

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

13 years agoMFC r209328,r209330:
mav [Sun, 11 Jul 2010 11:58:46 +0000 (11:58 +0000)]
MFC r209328,r209330:
While we indeed can't precisely measure time spent in C1, we can consider
measured interval as upper bound. It should be more precise then just
assuming 1/(2*hz). For idle CPU it should be quite precise, for busy - not
worse then before.

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

13 years agoMFC r209685:
kib [Sun, 11 Jul 2010 09:37:34 +0000 (09:37 +0000)]
MFC r209685:
Introduce a helper function vm_page_find_least(). Use it in several places,
which inline the function.

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

13 years agoMFC r209793:
kib [Sun, 11 Jul 2010 08:43:30 +0000 (08:43 +0000)]
MFC r209793:
Do not mention VM_ALLOC_RETRY in comment, and normalize the terminology
(blocking -> sleeping).

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

13 years agoMFC r209687:
kib [Sun, 11 Jul 2010 08:41:30 +0000 (08:41 +0000)]
MFC r209687:
Constify source argument for siginfo_to_siginfo32().

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

13 years agoMFC r209757:
mm [Sat, 10 Jul 2010 09:29:48 +0000 (09:29 +0000)]
MFC r209757:

- Add support for the "sec" option to "zfs set sharenfs"

Submitted by: Dmitry Morozovsky <marck@FreeBSD.org>
Approved by: delphij (mentor)

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

13 years agoMFC r209860:
delphij [Fri, 9 Jul 2010 20:44:14 +0000 (20:44 +0000)]
MFC r209860:

Don't use pack() for structures that is used purely for software state.
Otherwise the resulting, unaligned mutex structure would trigger panic.

Submitted by: Tom Cough <tom.couch lsi.com>
Reported/Tested by: jhb

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

13 years agoMFC r208946:
ae [Fri, 9 Jul 2010 08:48:51 +0000 (08:48 +0000)]
MFC r208946:
  New netgraph node ng_patch(4). It performs data modification of packets
  passing through. Modifications are restricted to a subset of C language
  operations on unsigned integers of 8, 16, 32 or 64 bit size.
  These are: set to new value (=), addition (+=), subtraction (-=),
  multiplication (*=), division (/=), negation (= -), bitwise AND (&=),
  bitwise OR (|=), bitwise eXclusive OR (^=), shift left (<<=),
  shift right (>>=). Several operations are all applied to a packet
  sequentially in order they were specified by user.

  Submitted by: Maxim Ignatenko <gelraen.ua at gmail.com>
   Vadim Goncharov <vadimnuclight at tpu.ru>
  Discussed with: net@

MFC r208947:
  Fix typo.

MFC r208989:
  Style(9) fixes:
  * Sort includes
  * Replace #define<SPACE> to #define<TAB>
  * Split declarations and initializations
  * Split long lines

  Requested by: kib

MFC r209194:
  * Include sys/systm.h for KASSERT()
  * Remove unneeded includes and comment
  * Replace home made OFFSETOF() macro with standard offsetof()

  Pointed out by: bde

Approved by: kib (mentor)

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

13 years agoMFC r208587:
attilio [Thu, 8 Jul 2010 23:25:33 +0000 (23:25 +0000)]
MFC r208587:
Add the support for reporting the NOCOREDUMP flag from
sysctl_kern_proc_vmmap().

Sponsored by: Sandvine Incorporated

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

13 years agoMFC 208742:
jhb [Thu, 8 Jul 2010 21:56:05 +0000 (21:56 +0000)]
MFC 208742:
MFamd64: Add a new macro PCPU_XEN_FIELDS to hold XEN-specific per-CPU
fields that is always included in PCPU_MD_FIELDS.  The macro is empty for
non-XEN kernels.  This avoids duplicating non-XEN per-CPU fields in two
places.  While here, remove several unused fields from the XEN-specific
structure.

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

13 years agoMFC r209413: readelf.1: remove duplicate -u/--unwind option description
avg [Thu, 8 Jul 2010 21:34:18 +0000 (21:34 +0000)]
MFC r209413: readelf.1: remove duplicate -u/--unwind option description

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

13 years agoMFC r209247: lock_profile_release_lock: do not compare unsigned with zero
avg [Thu, 8 Jul 2010 21:02:31 +0000 (21:02 +0000)]
MFC r209247: lock_profile_release_lock: do not compare unsigned with zero

Note: no MFC to stable/7

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

13 years agoMFC r209228: device.hints: do install when WITHOUT_BOOT is set
avg [Thu, 8 Jul 2010 20:57:07 +0000 (20:57 +0000)]
MFC r209228: device.hints: do install when WITHOUT_BOOT is set

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

13 years agoMFC r209193: sound/pcm: use non-const string with SYSCTL_STRING
avg [Thu, 8 Jul 2010 20:46:55 +0000 (20:46 +0000)]
MFC r209193: sound/pcm: use non-const string with SYSCTL_STRING

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

13 years agoMFC r209425: udf_vnops: cosmetic followup to r208671
avg [Thu, 8 Jul 2010 20:40:57 +0000 (20:40 +0000)]
MFC r209425: udf_vnops: cosmetic followup to r208671

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

13 years agoMFC r209062: fix a few cases where a string is passed via format
avg [Thu, 8 Jul 2010 20:38:48 +0000 (20:38 +0000)]
MFC r209062: fix a few cases where a string is passed via format
argument instead of via %s

Note: no MFC to stable/7

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

13 years agoMFC r209056: vnode.h: expand debug macros to non-empty void statements
avg [Thu, 8 Jul 2010 20:17:56 +0000 (20:17 +0000)]
MFC r209056: vnode.h: expand debug macros to non-empty void statements
when DEBUG_VFS_LOCKS is disabled

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

13 years agoMFC r209598:
weongyo [Thu, 8 Jul 2010 19:40:09 +0000 (19:40 +0000)]
MFC r209598:
  Initializes the ratectl for a node when the state is changed to RUN.
  This prevents a kernel fault by dividing with zero because the initial
  rate was 0 and didn't be initialized.

  Tested by:    Warren Block <wblock at wonkity.com>

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

13 years agoMFC r209597:
weongyo [Thu, 8 Jul 2010 19:36:38 +0000 (19:36 +0000)]
MFC r209597:
  Fixes NULL pointer reference that it's occurred when the state is
  changed to RUN because ic->ic_newassoc isn't set anywhere now.  In the
  previous bwi_newassoc() is used to initialize AMRR rate routines.

  Tested by:    Warren Block <wblock at wonkity.com>

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

13 years agoMerge 209633, 209722 from head:
glebius [Thu, 8 Jul 2010 12:21:25 +0000 (12:21 +0000)]
Merge 209633, 209722 from head:

  The struct ipfw_rule_ref follows the struct m_tag. Deal with this
  correctly. This fixes breakage of ng_ipfw(4) in r201527.

Submitted by: Alexander Zagrebin <alexz visp.ru>

  Avoid double-free. In error cases ipfw(4) frees the mbuf(4), we don't
  need to.

PR: kern/145462

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

13 years agoMerge 209589 from head:
glebius [Thu, 8 Jul 2010 12:20:15 +0000 (12:20 +0000)]
Merge 209589 from head:
  After processing the O_SKIPTO opcode our cmd points to the next rule, and
  "match" processing at the end of inner loop would look ahead into the next
  rule, which is incorrect. Particularly, in the case when the next rule
  started with F_NOT opcode it was skipped blindly.

  To fix this, exit the inner loop with the continue operator forcibly and
  explicitly.

PR: kern/147798

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

13 years agoMFC r209119,209325:
lstewart [Thu, 8 Jul 2010 03:41:57 +0000 (03:41 +0000)]
MFC r209119,209325:

- Add a utility macro to simplify calculating an aggregate sum from a DPCPU
  counter variable.

- Rename the internal for loop iterator to "_i" to avoid potential shadowing of
  external variables named "i". The "_" prefix is reserved for infrastructure
  type code and is therefore not expected to be used by normal code likely to
  call DPCPU_SUM(). [1]

- Change DPCPU_SUM to return the sum rather than calculate and assign it
  internally. Usage is now: "sum = DPCPU_SUM(dpcpu_var, member_to_sum);" [2]

- Fix some style nits. [3]

Sponsored by: FreeBSD Foundation
Suggested by: bde [3], mdf [1], kib [1,2], pjd [1,3]
Reviewed by: jhb, rpaulo, rwatson (old version of r209119), kib (r209325)

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

13 years agoMFC r207223:
lstewart [Thu, 8 Jul 2010 03:28:25 +0000 (03:28 +0000)]
MFC r207223:

- Rework the underlying ALQ storage to be a circular buffer, which amongst other
  things allows variable length messages to be easily supported.

- Extend KPI with alq_writen() and alq_getn() to support variable length
  messages, which is enabled at ALQ creation time depending on the arguments
  passed to alq_open(). Also add variants of alq_open() and alq_post() that
  accept a flags argument. The KPI is still fully backwards compatible and
  shouldn't require any change in ALQ consumers unless they wish to utilise
  the new features.

- Introduce the ALQ_NOACTIVATE and ALQ_ORDERED flags to allow ALQ consumers
  to have more control over IO scheduling and resource acquisition
  respectively.

- Strengthen invariants checking.

- Document ALQ changes in ALQ(9) man page.

Sponsored by: FreeBSD Foundation
Reviewed by: gnn, jeff, rpaulo, rwatson

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

13 years agoMFC r206028:
lstewart [Thu, 8 Jul 2010 02:46:42 +0000 (02:46 +0000)]
MFC r206028:

The ALQ should not be considered drained until it has been made inactive.

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)

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

13 years agoMFC r206027:
lstewart [Thu, 8 Jul 2010 02:43:52 +0000 (02:43 +0000)]
MFC r206027:

According to SLEEP(9), msleep() is deprecated in favour of mtx_sleep().

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)

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

13 years agoMFC r206026:
lstewart [Thu, 8 Jul 2010 02:41:55 +0000 (02:41 +0000)]
MFC r206026:

- Factor code to destroy an ALQ out of alq_close() into a private alq_destroy().

- Use the new alq_destroy() to properly handle a failure case in alq_open().

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)

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

13 years agoMFC r205959:
lstewart [Thu, 8 Jul 2010 02:35:37 +0000 (02:35 +0000)]
MFC r205959:

Add support for ALQ(9) to be compiled and loaded as a kernel module.

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson

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

13 years agoMFC: r209695
marius [Wed, 7 Jul 2010 19:52:50 +0000 (19:52 +0000)]
MFC: r209695

- Pin the IPI cache and TLB demap functions in order to prevent migration
  between determining the other CPUs and calling cpu_ipi_selected(), which
  apart from generally doing the wrong thing can lead to a panic when a
  CPU is told to IPI itself (which sun4u doesn't support).
  Reported and tested by: Nathaniel W Filardo
- Add __unused where appropriate.

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

13 years agoPackage set for 8.1-RELEASE. We still have a 2Gb maximum file size
kensmith [Wed, 7 Jul 2010 17:05:32 +0000 (17:05 +0000)]
Package set for 8.1-RELEASE.  We still have a 2Gb maximum file size
limit caused by cvsup still being used for some of our mirror system.
That is being worked on.

Reviewed by: re@, portmgr@

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

13 years agoMFC r209114:
nwhitehorn [Wed, 7 Jul 2010 14:21:40 +0000 (14:21 +0000)]
MFC r209114:
Make SMP work on MPC7400-based Apple desktops like the PowerMac3,3.

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

13 years agoMFC r209222:
nwhitehorn [Wed, 7 Jul 2010 14:19:58 +0000 (14:19 +0000)]
MFC r209222:

Modify the console mouse pointer drawing routine to use single-byte writes
instead of 4-byte ones. Because the mouse pointer can start part way
through a character cell, 4-byte memory operations are not necessarily
aligned, triggering a fatal alignment exception when the console pointer
was moved on PowerPC G5 systems.

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

13 years agoMFC r209490,209492:
nwhitehorn [Wed, 7 Jul 2010 14:15:51 +0000 (14:15 +0000)]
MFC r209490,209492:

Move default HZ from 100 to 1000 on powerpc, and rearrange the logic
slightly, so that it is set to 100 on ARM and MIPS and defaults to 1000,
instead of defaulting to 100, and setting it to 1000 on everything but
ARM and MIPS.

Reviewed by: marcel

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

13 years agoMFC r207303 (originally by kmacy):
bz [Tue, 6 Jul 2010 16:58:24 +0000 (16:58 +0000)]
MFC r207303 (originally by kmacy):

  need to initialize the lock before it is used

Reported on: stable@ (MFC missing)

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

13 years agoMFC: r207948
brueffer [Sun, 4 Jul 2010 18:48:43 +0000 (18:48 +0000)]
MFC: r207948

- Missing full stops
- Upper case the first character of an description
- Section headings do not need to be quoted. From OpenBSD's make.1, revision 1.81
- Plural of suffix is suffixes. From OpenBSD's make.1, revision 1.61
- s/seperating/separating/

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

13 years agoMFC: r207946
brueffer [Sun, 4 Jul 2010 18:41:00 +0000 (18:41 +0000)]
MFC: r207946

The previous revision actually removed the bug being hinted at, so
go ahead and remove the hint.

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

13 years agoMFC r209169:
bschmidt [Sun, 4 Jul 2010 12:30:55 +0000 (12:30 +0000)]
MFC r209169:
Fix TX retry rate handling. tx->linkq is an index to a rate table
beginning with the highest available rate. Currently we always use
54m for the first retry no matter what AMRR has choosen. Fix this
by setting the index to the next lower rate.

Approved by: rpaulo (mentor)
Tested by: Brandon Gooch <jamesbrandongooch at gmail.com>

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

13 years agoMFC r208509:
bz [Sun, 4 Jul 2010 12:27:18 +0000 (12:27 +0000)]
MFC r208509:

  MFp4 @178364:

  Implement an optional delay to the ddb reset/reboot command.

  This allows textdumps to be run automatically with unattended reboots
  after a resonable timeout, while still permitting an administrator to
  break into debugger if attached to the console at the time of the
  event for further debugging.  Cap the maximum delay at 1 week to avoid
  highly accidental results, and default to 15s in case of problems
  parsing the timeout value.

  Move hex2dec helper function from db_thread.c to db_command.c to make
  it generally available and prefix it with a "db_" to avoid namespace
  collisions.

  Reviewed by:  rwatson

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

13 years agoMFC r208508:
bz [Sun, 4 Jul 2010 12:22:17 +0000 (12:22 +0000)]
MFC r208508:

  MFp4 @178283:

  Improve IPsec flow distribution for better netisr parallelism.
  Instead of using the pointer that would have the last bits masked in a %
  statement in netisr_select_cpuid() to select the queue, use the SPI.

  Reviewed by:  rwatson

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

13 years agoMFC r209337: sh: Fix compilation with -DNO_HISTORY.
jilles [Sat, 3 Jul 2010 21:31:05 +0000 (21:31 +0000)]
MFC r209337: sh: Fix compilation with -DNO_HISTORY.

The LINENO code uses snprintf() and relied on "myhistedit.h" to pull in the
necessary <stdio.h>.

Compiling with -DNO_HISTORY disables all editing and history support and
allows linking without -ledit -ltermcap. This may be useful for embedded
systems.

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

13 years agoMFC r209106:
kib [Sat, 3 Jul 2010 18:19:59 +0000 (18:19 +0000)]
MFC r209106:
Add another variation of make_dev(9), make_dev_p(9), that is allowed
to fail and can return useful error code.

MFC r209237 (by jh):
Correct the function name in a KASSERT.

MFC r209244 (by ed):
Remove the unit argument from the recently added make_dev_p().

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

13 years agoMFC r209105:
kib [Sat, 3 Jul 2010 18:09:11 +0000 (18:09 +0000)]
MFC r209105:
When make_dev_credf(MAKEDEV_WAITOK) is called, use
devctl_notify_f(M_WAITOK) for devfs notifications.

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

13 years agoMFC r209104:
kib [Sat, 3 Jul 2010 17:57:59 +0000 (17:57 +0000)]
MFC r209104:
Add modifications of devctl_notify(9) functions that take flags. Use
flags to specify M_WAITOK/M_NOWAIT. M_WAITOK allows devctl to sleep for
the memory allocation.

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

13 years agoMFC: r207923
brueffer [Sat, 3 Jul 2010 12:14:01 +0000 (12:14 +0000)]
MFC: r207923

Document FIONREAD, FIONWRITE and FIONSPACE.

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

13 years agoMFC: r207964
brueffer [Sat, 3 Jul 2010 12:09:45 +0000 (12:09 +0000)]
MFC: r207964

Casting size_t to uintmax_t is not necessary anymore. This also
removes the need for stdint.h inclusion.

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

13 years agoMFC: r207975
brueffer [Sat, 3 Jul 2010 09:53:35 +0000 (09:53 +0000)]
MFC: r207975

IBM ServeRAID M5015 SAS/SATA works.

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

13 years agoMFC: r207947
brueffer [Sat, 3 Jul 2010 09:50:48 +0000 (09:50 +0000)]
MFC: r207947

The -d flag is non-optional.

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

13 years agoMFC: r207945
brueffer [Sat, 3 Jul 2010 09:42:15 +0000 (09:42 +0000)]
MFC: r207945

Comment in the BUGS section header. Matches what's in ipfilter 5.10.

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

13 years agoMFC r209360: add C message catalogue entries for newer errnos.
maxim [Fri, 2 Jul 2010 09:23:06 +0000 (09:23 +0000)]
MFC r209360: add C message catalogue entries for newer errnos.

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

13 years agoMFC r209295:
kib [Fri, 2 Jul 2010 09:19:27 +0000 (09:19 +0000)]
MFC r209295:
Add unwind annotations to the asm part of crt1 on i386. Terminate the
process with SIGTRAP if _start1() unexpectedly returns.

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

13 years agoMFC r209294:
kib [Fri, 2 Jul 2010 09:17:18 +0000 (09:17 +0000)]
MFC r209294:
Add -fno-asynchronous-unwind-tables to disable unwind table generation
for crtbegin/crtend. While there, disable omitting the frame pointer.

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

13 years agoMFC r209540
tuexen [Thu, 1 Jul 2010 12:55:34 +0000 (12:55 +0000)]
MFC r209540
 * Do not dereference a NULL pointer when calling an SCTP send syscall
   not providing a destination address and using ktrace.
 * Do not copy out kernel memory when providing sinfo for sctp_recvmsg().
 Both bug where reported by Valentin Nechayev.
 The first bug results in a kernel panic.

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

13 years agoMFC r209483:
kib [Wed, 30 Jun 2010 11:47:03 +0000 (11:47 +0000)]
MFC r209483:
Clear DF bit in eflags/rflags on the kernel entry.

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

13 years agoMFC r203584,r203711,r203733,r204379:
delphij [Tue, 29 Jun 2010 23:08:33 +0000 (23:08 +0000)]
MFC r203584,r203711,r203733,r204379:

Teach obsolete NO_MAIL* friends.

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

13 years agoMFC r205942:
delphij [Mon, 28 Jun 2010 17:06:19 +0000 (17:06 +0000)]
MFC r205942:

Merge OpenBSD revisions 1.4 through 1.9, mostly style cleanups.

Obtained from: OpenBSD

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

13 years agoMFC r209013:
rpaulo [Mon, 28 Jun 2010 12:20:36 +0000 (12:20 +0000)]
MFC r209013:
Add missing braces.

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

13 years agoMFC r209541, r209548:
rpaulo [Mon, 28 Jun 2010 11:53:22 +0000 (11:53 +0000)]
MFC r209541, r209548:
Fix the AR_SREV_MERLIN_20_OR_LATER() check.

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

13 years agoMFC r209470,r209499
tuexen [Mon, 28 Jun 2010 10:50:14 +0000 (10:50 +0000)]
MFC r209470,r209499
 * Implement sctp_does_stcb_own_this_addr() correclty. It was taking the
   wrong side into account.
 * sctp_findassociation_ep_addr() must check the local address if available.
 This fixes a bug where ABORT chunks were accepted even in the case where
 the local was not owned by the endpoint.
 Thanks to brucec for pointing out a bug in my first version of the fix.

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

13 years agoMFC r208729:
mav [Mon, 28 Jun 2010 08:10:55 +0000 (08:10 +0000)]
MFC r208729:
Recommend disabling LAPIC timer instead whole APIC for fixing C3 state.

PR:             docs/147180
Submitted by:   Tobias Rehbein

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

13 years agoMFC r204918 (jkim):
mav [Mon, 28 Jun 2010 08:09:33 +0000 (08:09 +0000)]
MFC r204918 (jkim):
Document a new sysctl variable and a loader tunable.

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

13 years agoMFC r209361; Add a missing prototype
brian [Mon, 28 Jun 2010 07:15:30 +0000 (07:15 +0000)]
MFC r209361; Add a missing prototype

PR: 145232
Submitted by: gcooper

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

13 years agoMFC r209332: Shoot a stray cat!
brian [Mon, 28 Jun 2010 07:03:18 +0000 (07:03 +0000)]
MFC r209332: Shoot a stray cat!

PR: 145447
Submitted by: u at netbeisser dot de

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

13 years agoMFC r209331 at stable/8/etc and stable/8/tools; Remove vestiges of 'slip'.
brian [Mon, 28 Jun 2010 06:59:57 +0000 (06:59 +0000)]
MFC r209331 at stable/8/etc and stable/8/tools; Remove vestiges of 'slip'.

PR: 145648
Submitted by: alexbestms at wwu dot de and spam at rm-rf dot kiev dot ua

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

13 years agoMFC r209329; add a missing linefeed
brian [Mon, 28 Jun 2010 04:54:16 +0000 (04:54 +0000)]
MFC r209329; add a missing linefeed

PR: 147337
Submitted by: cyberleo at cyberleo dot net

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

13 years agoMFC r209367:
kib [Mon, 28 Jun 2010 01:36:22 +0000 (01:36 +0000)]
MFC r209367:
Ensure that VOP_ACCESSX is called with exclusively locked vnode for
the kernel compiled with QUOTA option.

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

13 years agoMFC r209120:
kib [Mon, 28 Jun 2010 01:16:34 +0000 (01:16 +0000)]
MFC r209120:
In NFS clients, instead of inconsistently using #ifdef
DIAGNOSTIC and #ifndef DIAGNOSTIC for debug assertions, prefer
KASSERT(). Also change one #ifdef DIAGNOSTIC in the new nfs server.

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

13 years agoMFC 196750,196751,196818,196819 (ache@):
delphij [Sun, 27 Jun 2010 03:06:20 +0000 (03:06 +0000)]
MFC 196750,196751,196818,196819 (ache@):

196750:

1) Use isprint() instead of hardcoded values to detect non-printable.
2) Use (unsigned char) cast in waddch() calls.
It fix highlighting bug: sign extension of 8bit to the attributes area.
3) Use setlocale() in any case.

196751:

Move <locale.h> out of NO_CATGETS define too (as setlocale() in prev.
commit)

196818:

1) Remove single occurance of HAS_CTYPE ifdef, ctype functions
used here for a long time and needs their header in anycase.
2) Add (unsigned char) casts to more ctype macros.
3) Simplify menu input handling using ctype instead of range unguarded
hardcoded tricks.

196819:
Remove single occurance of HAS_CTYPE ifdef, ctype functions
used here for a long time and needs their header in anycase.

Requested by: Patrick Lamaiziere <patfbsd davenulle org>
Ok'ed by: ache

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

13 years agoMFC r200539 (by rpaulo):
ae [Fri, 25 Jun 2010 08:53:51 +0000 (08:53 +0000)]
MFC r200539 (by rpaulo):
Add Microsoft and NetBSD partition types handling.

Approved by: kib (mentor)

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

13 years agoMFC 208915,208991:
jhb [Thu, 24 Jun 2010 13:17:45 +0000 (13:17 +0000)]
MFC 208915,208991:
- Use a bit more care when moving I/O APIC interrupts between CPUs.  Mask
  the interrupt followed by a brief delay if it is not currently masked
  before moving the interrupt.
- Move the icu_lock out of ioapic_program_intpin() and into callers.  This
  closes a race where ioapic_program_intpin() could use a stale value of
  the masked state to compute the masked bit in the register.

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

13 years agoMFC 208392:
jhb [Thu, 24 Jun 2010 13:11:12 +0000 (13:11 +0000)]
MFC 208392:
- Adjust the whitespace for the lines that output fields in 'show pcpu' in
  DDB so that all the fields line up.
- Print out the tid of the per-CPU idlethread instead of the pid since
  the idle process is now shared across all idle threads.

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

13 years agoMFC 208391:
jhb [Thu, 24 Jun 2010 12:08:50 +0000 (12:08 +0000)]
MFC 208391:
Assert that the thread passed to sched_bind() and sched_unbind() is
curthread as those routines are only supported for curthread currently.

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

13 years agoMFC r207096 (by marcel):
ae [Thu, 24 Jun 2010 06:31:23 +0000 (06:31 +0000)]
MFC r207096 (by marcel):
Add and describe GEOM_PART_EBR.

Approved by: mav (mentor)

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

13 years agoMFC r207094 (by marcel):
ae [Thu, 24 Jun 2010 05:52:44 +0000 (05:52 +0000)]
MFC r207094 (by marcel):
Implement the resize verb and add support for resizing partitions
for all schemes but EBR.

MFC r207095 (by marcel):
Implement the resize command for resizing partitions. Without new
size, the partition in question is resized to fill all available
space.

Approved by: kib (mentor)

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

13 years agoMFC r208647,r208654: Clarify devfs manpages slightly.
jilles [Wed, 23 Jun 2010 20:59:00 +0000 (20:59 +0000)]
MFC r208647,r208654: Clarify devfs manpages slightly.

mount(8): add xref to devfs(5)
devfs(5): change example to something more likely to be useful (it is not
necessary to mount a devfs on /dev manually, but for chroots/jails it is
often needed), mention since when devfs is preferred to device nodes on ufs
and when device nodes on ufs stopped working

PR: 146600

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