]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoadd dates along with revision numbers in UPDATING entry for 20101022
avg [Mon, 25 Oct 2010 07:36:39 +0000 (07:36 +0000)]
add dates along with revision numbers in UPDATING entry for 20101022

This is a direct commit.

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

13 years agoMFC r214097: catch up manual pages with rename of vm_page_sleep_busy to
avg [Mon, 25 Oct 2010 07:30:14 +0000 (07:30 +0000)]
MFC r214097: catch up manual pages with rename of vm_page_sleep_busy to
vm_page_sleep_if_busy

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

13 years agoMFC r214096: VOP_GETPAGES.9: clarify and correct description of parameters
avg [Mon, 25 Oct 2010 07:11:37 +0000 (07:11 +0000)]
MFC r214096: VOP_GETPAGES.9: clarify and correct description of parameters
and requirements

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

13 years agoMFC r214095: PG_BUSY -> VPO_BUSY, PG_WANTED -> VPO_WANTED in manual
avg [Mon, 25 Oct 2010 07:06:24 +0000 (07:06 +0000)]
MFC r214095: PG_BUSY -> VPO_BUSY, PG_WANTED -> VPO_WANTED in manual
pages and comments

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

13 years agoMFC of 196811
julian [Mon, 25 Oct 2010 06:33:19 +0000 (06:33 +0000)]
MFC of 196811
Slight cleanup to pcpu macros to better match amd64 and to improve readability
of the output.

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

13 years agoMFC of 199812
julian [Mon, 25 Oct 2010 06:28:19 +0000 (06:28 +0000)]
MFC of 199812
allow tinybsd to abort of a step fails.

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

13 years agoMFC r214001:
kevlo [Mon, 25 Oct 2010 06:16:27 +0000 (06:16 +0000)]
MFC r214001:
Fix a possible, but very unlikely race where the directory dirent is
moved to the location that was used by ".." entry.

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

13 years agoMFC of 200614
julian [Mon, 25 Oct 2010 05:37:12 +0000 (05:37 +0000)]
MFC of 200614
make man page match the output of lock profiling.

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

13 years agoMFC of 206632
julian [Mon, 25 Oct 2010 01:22:36 +0000 (01:22 +0000)]
MFC of 206632
If both ALQ and KTR are defined, allow KTR buffer to be used when
ALQ is disabled by sysctl.

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

13 years agoMFC of svn change 206639.
julian [Mon, 25 Oct 2010 01:02:34 +0000 (01:02 +0000)]
MFC of svn change 206639.
replace a couple of instances of the same definitions with one in
an include file

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

13 years agoMFC r213696:
yongari [Sun, 24 Oct 2010 21:28:58 +0000 (21:28 +0000)]
MFC r213696:
  Do not setup interrupt endpoint for axe(4).
  It seems axe(4) controllers support interrupt endpoint such that
  enabling interrupt endpoint generates about 1000 interrupts/sec.
  Controllers transfer 8 bytes data through interrupt endpoint and
  the data include link UP/DOWN state as well as some PHY related
  information. Previously axe(4) didn't use the transferred data and
  didn't even try to read the data. Because axe(4) counts on mii(4)
  to detect link state changes there is no need to use interrupt
  endpoint here.

  This change fixes generation of unnecessary interrupts which was
  seen when interface is brought to UP.

  No objections from: hselasky

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

13 years agoMFC r213438:
yongari [Sun, 24 Oct 2010 21:26:41 +0000 (21:26 +0000)]
MFC r213438:
  RX buffer allocation failure is not an input error. Controller
  successfully received a frame but we failed to pass it to upper
  stack due to lack of resources. So update if_iqdrops counter
  instead of updating if_ierrors counter.

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

13 years agoMFC r213436:
yongari [Sun, 24 Oct 2010 21:25:15 +0000 (21:25 +0000)]
MFC r213436:
  Don't count input error twice. uether_rxbuf() already updated that
  counter.

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

13 years agoMFC r213424:
yongari [Sun, 24 Oct 2010 21:23:27 +0000 (21:23 +0000)]
MFC r213424:
  Make upper stack know driver's output status. This change increased
  TX performance from 221kpps to 231kpps.

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

13 years agoMFC r213423:
yongari [Sun, 24 Oct 2010 21:22:00 +0000 (21:22 +0000)]
MFC r213423:
  Move updating TX packet counter to the inside of send loop. axe(4)
  controllers combine multiple TX requests into single one if there
  is room in TX buffer of controller. Updating TX packet counter at
  the end of TX completion resulted in incorrect TX packet counter as
  axe(4) thought it sent 1 packet. There is no easy way to know how
  many combined TX were completed in the callback.
  Because this change updates TX packet counter before actual
  transmission, it may not be ideal one. But I believe it's better
  than showing fake 8kpps under high TX load. With this change, TX
  shows 221kpps on Linksus USB200M.

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

13 years agoMFC r213844:
yongari [Sun, 24 Oct 2010 21:14:01 +0000 (21:14 +0000)]
MFC r213844:
  Make sure to not use stale ip/tcp header pointers. The ip/tcp
  header parser uses m_pullup(9) to get access to mbuf chain.
  m_pullup(9) can allocate new mbuf chain and free old one if the
  space left in the mbuf chain is not enough to hold requested
  contiguous bytes. Previously drivers can use stale ip/tcp header
  pointer if m_pullup(9) returned new mbuf chain.

  Reported by: Andrew Boyer (aboyer <> averesystems dot com)

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

13 years agoMFC r213842:
yongari [Sun, 24 Oct 2010 21:07:13 +0000 (21:07 +0000)]
MFC r213842:
  Backout r204230. TX mbuf parser for VLAN is still required to
  enable TX checksum offloading if VLAN hardware tagging is disabled.

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

13 years agoMFC r213567:
ed [Sun, 24 Oct 2010 18:12:11 +0000 (18:12 +0000)]
MFC r213567:

  Import ee 1.5.2 into HEAD.

PR: bin/145921

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

13 years agoMFC r213509:
mav [Sun, 24 Oct 2010 17:42:41 +0000 (17:42 +0000)]
MFC r213509:
Add ID for Vodafone (ZTE) Mobile Broadband K3565-Z modem.

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

13 years agoMFC r212991:
mav [Sun, 24 Oct 2010 17:40:19 +0000 (17:40 +0000)]
MFC r212991:
Decrease poll interval from 1000 to 100us. This significantly reduces
kernel dump time, especially with minidump.

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

13 years agoMFC: r213385
marius [Sun, 24 Oct 2010 13:43:45 +0000 (13:43 +0000)]
MFC: r213385

Remove a header that apart from the license is empty.

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

13 years agoMFC: r213384
marius [Sun, 24 Oct 2010 13:41:38 +0000 (13:41 +0000)]
MFC: r213384

Consistently always explicitly set IFM_HDX for half-duplex.

Obtained from: OpenBSD (mostly)

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

13 years agoMFC: r213364
marius [Sun, 24 Oct 2010 13:39:19 +0000 (13:39 +0000)]
MFC: r213364

- In the spirit of previous simplifications factor out the checks for a
  different PHY instance being selected and isolation out into the wrappers
  around the service methods rather than duplicating them over and over
  again (besides, a PHY driver shouldn't need to care about which instance
  it actually is).
- Centralize the check for the need to isolate a non-zero PHY instance not
  supporting isolation in mii_mediachg() and just ignore it rather than
  panicing, which should sufficient given that a) things are likely to
  just work anyway if one doesn't plug in more than one port at a time and
  b) refusing to attach in this case just leaves us in a unknown but most
  likely also not exactly correct configuration (besides several drivers
  setting MIIF_NOISOLATE didn't care about these anyway, probably due to
  setting this flag for no real reason).
- Minor fixes like removing unnecessary setting of sc->mii_anegticks,
  using sc->mii_anegticks instead of hardcoded values etc.

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

13 years agoMFC r213065,r213068:
pjd [Sat, 23 Oct 2010 22:11:30 +0000 (22:11 +0000)]
MFC r213065,r213068:

r213065:

Remove redundant space.

r213068:

Add support for AES-XTS.

Obtained from: OpenBSD

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

13 years agoConstify go_val field.
pjd [Sat, 23 Oct 2010 22:04:37 +0000 (22:04 +0000)]
Constify go_val field.

(Should've been MFC of r212547.)

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

13 years agoImplement G_TYPE_MULTI and G_VAL_OPTIONAL for stable/8.
pjd [Sat, 23 Oct 2010 21:56:50 +0000 (21:56 +0000)]
Implement G_TYPE_MULTI and G_VAL_OPTIONAL for stable/8.

This should have been MFC, but I've no green light from marcel to remove
G_TYPE_ASCNUM and gc_argname and to modify geom_part in stable/8, so this is
reimplementation that doesn't touch gpart and hopefully doesn't break anything.

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

13 years agoMFC r213926: sh(1): Clarify subshells/processes for pipelines.
jilles [Sat, 23 Oct 2010 13:36:09 +0000 (13:36 +0000)]
MFC r213926: sh(1): Clarify subshells/processes for pipelines.

For multi-command pipelines,
1. all commands are direct children of the shell (unlike the original
   Bourne shell)
2. all commands are executed in a subshell (unlike the real Korn shell)

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

13 years agoMFC r214089:
yongari [Sat, 23 Oct 2010 00:41:26 +0000 (00:41 +0000)]
MFC r214089:
  Correct handling of shared interrupt in sis_intr(). r212116 incorrectly
  released a drver lock for shared interrupt case such that it caused
  panic. While I'm here check whether driver is still running before
  serving TX/RX handler.

  Reported by: Jerahmy Pocott < QUAKENET1 <> optusnet dot com dot au >
  Tested by: Jerahmy Pocott < QUAKENET1 <> optusnet dot com dot au >

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

13 years agoMFC r214062:
mdf [Fri, 22 Oct 2010 16:00:00 +0000 (16:00 +0000)]
MFC r214062:

uma_zfree(zone, NULL) should do nothing, to match free(9).

Noticed by: Ron Steinke <rsteinke at isilon dot com>

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

13 years agoMFC r213528: opensolaris_kmem kmem_size(): report lesser of vm_kmem_size
avg [Fri, 22 Oct 2010 08:57:25 +0000 (08:57 +0000)]
MFC r213528: opensolaris_kmem kmem_size(): report lesser of vm_kmem_size
and available physical memory

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

13 years agoadd UPDATING entry for r214198: removed ld bug workaround
avg [Fri, 22 Oct 2010 08:46:22 +0000 (08:46 +0000)]
add UPDATING entry for r214198: removed ld bug workaround

This is a direct commit to the branch.

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

13 years agoMFC r212647: sys/pcpu.h: remove a workaround for a fixed ld bug
avg [Fri, 22 Oct 2010 08:42:44 +0000 (08:42 +0000)]
MFC r212647: sys/pcpu.h: remove a workaround for a fixed ld bug

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

13 years agoMFC r204955,205885: Various and sundry style, whitespace, and comment
avg [Fri, 22 Oct 2010 08:36:26 +0000 (08:36 +0000)]
MFC r204955,205885: Various and sundry style, whitespace, and comment
fixes.

On behalf of: jhb

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

13 years agoReduce diff to 9-CURRENT.
obrien [Fri, 22 Oct 2010 06:56:11 +0000 (06:56 +0000)]
Reduce diff to 9-CURRENT.

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

13 years agoMFC r213814: Do not assume in growstackstr() that a "precious" character
obrien [Thu, 21 Oct 2010 23:45:57 +0000 (23:45 +0000)]
MFC r213814: Do not assume in growstackstr() that a "precious" character
will be immediately written into the stack after the call.  Instead let
the caller manage the "space left".

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

13 years agoFix typo: Offlaod -> Offload.
pluknet [Thu, 21 Oct 2010 10:11:39 +0000 (10:11 +0000)]
Fix typo: Offlaod -> Offload.

PR: docs/150756
Approved by: avg (mentor)

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

13 years agoMFC
obrien [Thu, 21 Oct 2010 01:13:41 +0000 (01:13 +0000)]
MFC
  r211281: don't shadow sigset
  r212243: improve comments in expand.c
  r213925: use <stddef.h> rather than <sys/stddef.h>

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

13 years agoMFC r213811: c89 linkage and storage class (also covers r213744, r213760)
obrien [Wed, 20 Oct 2010 18:25:00 +0000 (18:25 +0000)]
MFC r213811: c89 linkage and storage class (also covers r213744, r213760)

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

13 years agoMFC r212100 (emaste),213632,214066:
delphij [Wed, 20 Oct 2010 17:42:10 +0000 (17:42 +0000)]
MFC r212100 (emaste),213632,214066:

Add a new syslog knob, net.link.lagg.failover_rx_all, to control
whether to accept input packets on any link in a failover lagg,
and add the corresponding documentation.

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

13 years agoMFC r211992: some programs could send broadcast/multicast traffic to
maxim [Wed, 20 Oct 2010 12:38:05 +0000 (12:38 +0000)]
MFC r211992: some programs could send broadcast/multicast traffic to
ipfw pseudo-interface.  This leads to a panic due to uninitialized
if_broadcastaddr address.  Initialize it and implement ip_output()
method to prevent mbuf leak later.

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

13 years agoMFC:
obrien [Wed, 20 Oct 2010 07:54:43 +0000 (07:54 +0000)]
MFC:
  r213774: DEBUG_FLAGS should be used to enable extra debugging rather than
           frobbing CFLAGS directly.
  r213798: do not inline static functions if debugging

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

13 years agoMFC r212138: csup(1) does not have -g flag.
maxim [Wed, 20 Oct 2010 07:54:27 +0000 (07:54 +0000)]
MFC r212138: csup(1) does not have -g flag.

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

13 years agoMFC r212094: sync the man page with the reality: nfs/ includes
maxim [Wed, 20 Oct 2010 07:40:23 +0000 (07:40 +0000)]
MFC r212094: sync the man page with the reality: nfs/ includes
are under include/ and include/fs/.

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

13 years agoMFC r213815: only need to look as far as '..' to find 'test/'
obrien [Wed, 20 Oct 2010 07:32:25 +0000 (07:32 +0000)]
MFC r213815: only need to look as far as '..' to find 'test/'

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

13 years agoMFC r213929:
bz [Wed, 20 Oct 2010 01:22:04 +0000 (01:22 +0000)]
MFC r213929:
  lltable_drain() has never been used so far, thus #if 0 it for now.
  While touching it add the missing locking to the now disabled code
  for the time when we'll resurrect it.

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

13 years agoMFC: r213903: default to 'sh' from PATH if 'SH' env is not set.
obrien [Wed, 20 Oct 2010 00:24:30 +0000 (00:24 +0000)]
MFC: r213903: default to 'sh' from PATH if 'SH' env is not set.

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

13 years agoMFC r213738: allow one to regression test 'sh' changes without having to
obrien [Tue, 19 Oct 2010 23:57:34 +0000 (23:57 +0000)]
MFC r213738: allow one to regression test 'sh' changes without having to
             install a potentially bad /bin/sh first.

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

13 years agoMFC r213326: libc: Remove the i386 assembler version of strlen(3).
jilles [Tue, 19 Oct 2010 22:11:50 +0000 (22:11 +0000)]
MFC r213326: libc: Remove the i386 assembler version of strlen(3).

On anything modern, the C version, which processes a word at a time, is much
faster. The Intel optimization manual explicitly warns against using REP
prefixes with SCAS or CMPS, which is exactly what the assembler version
does.

A simple test on a Phenom II showed the C version, compiled with -O2, to be
about twice as fast determining the length of 100000 strings between 0 and
255 bytes long.

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

13 years agoMFC of r207830
edwin [Tue, 19 Oct 2010 21:04:45 +0000 (21:04 +0000)]
MFC of r207830

strptime(3) confused July with June with the fr_FR locale.

When parsing the month "juillet" (abbr "jul"), %B recognized it as
"juin" (abbr "jui") because the full name of the month names is
checked at the same time as the abbrevation.

The new behaviour checks the full names first before checking the
abbrevation names.

PR:             kern/141939
Submitted by:   Denis Chatelain <denis@tikuts.com>

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

13 years agoMFC r213574:
pluknet [Tue, 19 Oct 2010 14:09:17 +0000 (14:09 +0000)]
MFC r213574:
- tcpconnect incorrectly uses err() in usage() with errx() semantics [1]
- 64-bit aware fixes in printf() usage [2]
o   netrate/juggle: time_t has arch-dependent size
o   netrate/tcpconnect: don't assume %ll has always 64bit.

PR: 146088 [1], 146086 [2] (modified)
Approved by: kib (mentor)

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

13 years agoMFC r213451:
emaste [Tue, 19 Oct 2010 13:06:26 +0000 (13:06 +0000)]
MFC r213451:

  Handle null return from XML_ParserCreate and fix a few memory leaks on
  error conditions.

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

13 years agoMFC r213514:
pluknet [Tue, 19 Oct 2010 10:51:18 +0000 (10:51 +0000)]
MFC r213514:
Wrap lines for SiS and Promise entries to 80 columns.

PR: docs/146195
Approved by: avg (mentor)

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

13 years agoMFC r212723 (by des):
kib [Tue, 19 Oct 2010 09:25:58 +0000 (09:25 +0000)]
MFC r212723 (by des):
Implement proc/$$/environment.

MFC r213246:
Rework linprocfs_doprocenviron() and linprocfs_doproccmdline().

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

13 years agoMFC:
obrien [Mon, 18 Oct 2010 23:10:32 +0000 (23:10 +0000)]
MFC:
  r199955: disable job control when running 'sh -i' in the testsuite
  r204801: make sure to popredir() even if a special builtin caused an error
  r204802: make sure to popredir() even if a function caused an error
  r211399: get rid of unnecessary non-standard empty lists.
  r211609: add a test for breaking from a loop outside the current function
  r211622: test that all bytes from 128 to 255 can be used in IFS
  r211973: weaken builtins/command4 test to only require a non-0 exit status

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

13 years agoMFC r212407:
pjd [Mon, 18 Oct 2010 12:12:38 +0000 (12:12 +0000)]
MFC r212407:

Forgot to commit this file. Add ZPOOL_CONFIG_IS_LOG.

Reported by: keramida, dhw

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

13 years agoMFC r212382,r212383,r212384,r212387:
pjd [Mon, 18 Oct 2010 09:26:39 +0000 (09:26 +0000)]
MFC r212382,r212383,r212384,r212387:

r212382:

Remove duplicated code.

r212383:

Allow to boot from a pool within which replacing is in progress.
Before the change it wasn't possible and the following error was printed:

ZFS: can only boot from disk, mirror or raidz vdevs

Now if the original vdev (the one we are replacing) is still present we will
read from it, but if it is not present we won't read from the new vdev, as it
might not have enough valid data yet.

r212384:

Ignore log vdevs.

r212387:

Remove empty lines committed by accident.

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

13 years agoMFC r213197, r213198:
mm [Mon, 18 Oct 2010 08:54:33 +0000 (08:54 +0000)]
MFC r213197, r213198:

MFC r213197:
Enable offlining of log devices.

OpenSolaris revision and Bug IDs:

9701:cc5b64682e64
6803605 should be able to offline log devices
6726045 vdev_deflate_ratio is not set when offlining a log device
6599442 zpool import has faults in the display

MFC r213198:
Properly handle IO with B_FAILFAST
Retry IO once with ZIO_FLAG_TRYHARD before declaring a pool faulted

OpenSolaris revision and Bug IDs:

9725:0bf7402e8022
6843014 ZFS B_FAILFAST handling is broken

As FreeBSD does not support B_FAILFAST and we don't use vdev_disk.c,
MFC of r213198 is a no-op with the purpose of diff reduction against
latest ZFS code and making future updates easier.

Approved by: delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6803605672604565994426843014)

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

13 years agoMFC r213133,r213135,r213136,r213137,r213245:
pjd [Sun, 17 Oct 2010 20:10:00 +0000 (20:10 +0000)]
MFC r213133,r213135,r213136,r213137,r213245:

r213133:

Add three GPT attributes:

GPT_ENT_ATTR_BOOTME - this is bootable partition

GPT_ENT_ATTR_BOOTONCE - try to boot only once from this partition

GPT_ENT_ATTR_BOOTFAILED - set this flag if we cannot boot from partition
containing GPT_ENT_ATTR_BOOTONCE flag; note that if we cannot
boot from partition that contains only GPT_ENT_ATTR_BOOTME flag,
the GPT_ENT_ATTR_BOOTFAILED flag won't be set

According to wikipedia Microsoft TechNet says that attributes are divided into
two halves: the lower 4 bytes representing partition independent attributes,
and the upper 4 bytes are partition type dependent. Microsoft is already using
bits 60 (read-only), 62 (hidden) and 63 (do not automount) and I'd like to not
collide with those, so we are using bit 59 (bootme), 58 (bootonce) and 57
(bootfailed).

Reviewed by: arch (Message-ID: <20100917234542.GE1902@garage.freebsd.pl>)

r213135:

Allow to configure GPT attributes. It shouldn't be allowed to set bootfailed
attribute (it should be allowed only to unset it), but for test purposes it
might be useful, so the current code allows it.

Reviewed by: arch@ (Message-ID: <20100917234542.GE1902@garage.freebsd.pl>)

r213136:

- Split code shared by almost any boot loader into separate files and
  clean up most layering violations:

sys/boot/i386/common/rbx.h:

RBX_* defines
OPT_SET()
OPT_CHECK()

sys/boot/common/util.[ch]:

memcpy()
memset()
memcmp()
bcpy()
bzero()
bcmp()
strcmp()
strncmp() [new]
strcpy()
strcat()
strchr()
strlen()
printf()

sys/boot/i386/common/cons.[ch]:

ioctrl
putc()
xputc()
putchar()
getc()
xgetc()
keyhit() [now takes number of seconds as an argument]
getstr()

sys/boot/i386/common/drv.[ch]:

struct dsk
drvread()
drvwrite() [new]
drvsize() [new]

sys/boot/common/crc32.[ch] [new]

sys/boot/common/gpt.[ch] [new]

- Teach gptboot and gptzfsboot about new files. I haven't touched the
  rest, but there is still a lot of code duplication to be removed.

- Implement full GPT support. Currently we just read primary header and
  partition table and don't care about checksums, etc. After this change we
  verify checksums of primary header and primary partition table and if
  there is a problem we fall back to backup header and backup partition
  table.

- Clean up most messages to use prefix of boot program, so in case of an
  error we know where the error comes from, eg.:

gptboot: unable to read primary GPT header

- If we can't boot, print boot prompt only once and not every five
  seconds.

- Honour newly added GPT attributes:

bootme - this is bootable partition
bootonce - try to boot from this partition only once
bootfailed - we failed to boot from this partition

- Change boot order of gptboot to the following:

1. Try to boot from all the partitions that have both 'bootme'
   and 'bootonce' attributes one by one.
2. Try to boot from all the partitions that have only 'bootme'
   attribute one by one.
3. If there are no partitions with 'bootme' attribute, boot from
   the first UFS partition.

- The 'bootonce' functionality is implemented in the following way:

1. Walk through all the partitions and when 'bootonce'
   attribute is found without 'bootme' attribute, remove
   'bootonce' attribute and set 'bootfailed' attribute.
   'bootonce' attribute alone means that we tried to boot from
   this partition, but boot failed after leaving gptboot and
   machine was restarted.
2. Find partition with both 'bootme' and 'bootonce' attributes.
3. Remove 'bootme' attribute.
4. Try to execute /boot/loader or /boot/kernel/kernel from that
   partition. If succeeded we stop here.
5. If execution failed, remove 'bootonce' and set 'bootfailed'.
6. Go to 2.

   If whole boot succeeded there is new /etc/rc.d/gptboot script coming
   that will log all partitions that we failed to boot from (the ones with
   'bootfailed' attribute) and will remove this attribute. It will also
   find partition with 'bootonce' attribute - this is the partition we
   booted from successfully. The script will log success and remove the
   attribute.

   All the GPT updates we do here goes to both primary and backup GPT if
   they are valid. We don't touch headers or partition tables when
   checksum doesn't match.

Reviewed by: arch (Message-ID: <20100917234542.GE1902@garage.freebsd.pl>)
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com

r213137:

Add gptboot script that is responsible for:
- looking for partition with 'bootonce' attribute alone (without 'bootme'
  attribute), removing it and logging that we successfully booted from this
  partition.
- looking for partitions with 'bootfailed' attribute, removing it and
  logging that we failed to boot from this partition.

Reviewed by: arch (Message-ID: <20100917234542.GE1902@garage.freebsd.pl>)
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com

r213245:

Document recently added GPT attributes (bootme, bootonce, bootfailed) and
list other schemes attributes.

Reviewed by: simon, rpaulo

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

13 years agoMerge from head 213480,213481,213717:
glebius [Sun, 17 Oct 2010 17:39:54 +0000 (17:39 +0000)]
Merge from head 213480,213481,213717:

  Add support to Alcatel/TCTMobile X080S USB 3G modem. The device needs
  special eject command to reappear as modem. It also requires DIR_IN flag
  in the command message, so we supply some dummy data along with the command.

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

13 years agoMFC r213183,r213428,r213429,r213430,r213529,r213530,r213531,r213533,r213579,
pjd [Sun, 17 Oct 2010 16:43:20 +0000 (16:43 +0000)]
MFC r213183,r213428,r213429,r213430,r213529,r213530,r213531,r213533,r213579,
  r213580,r213938,r213939,r213981:

r213183:

Plug memory leak on fork(2) failure.

Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>

r213428:

We can't mask ignored signal, so install dummy signal hander for SIGCHLD before
masking it.

This fixes bogus reports about hooks running for too long and other problems
related to garbage-collecting child processes.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>

r213429:

hook_check() is now only used to report about long-running hooks, so the
argument is redundant, remove it.

r213430:

Decrease report interval to 5 seconds, as this also means we will check for
signals every 5 seconds and not every 10 seconds as before.

r213529:

Don't close local component on exit as we can hang waiting on g_waitidle.
I'm unable to reproduce the race described in comment anymore and also the
comment is incorrect - localfd represents local component from configuration
file, eg. /dev/da0 and not HAST provider.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>

r213530:

Start the guard thread first, so we can handle signals from the very begining.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>

r213531:

Log error message when we fail to destroy ggate provider.

r213533:

Clear ggate structures before using them. We don't initialize all the field
and there can be some garbage from the stack.

r213579:

We close the event socketpair early in the mainloop to prevent spaming with
error messages, so when we clean up after child process, we have to check if
the event socketpair is still there.

Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>

r213580:

We can't zero out ggio request, as we have some fields in there we initialize
once during start-up.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>

r213938:

Clear signal mask before executing a hook.

Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>

r213939:

Use one fprintf() instead of two.

r213981:

Log correct connection when canceling half-open connection.

Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>

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

13 years agoMFC r213360:
nwhitehorn [Sun, 17 Oct 2010 15:55:46 +0000 (15:55 +0000)]
MFC r213360:

Missed some changes in the last commit required to build LINT.

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

13 years agoMerge 213831:
glebius [Sun, 17 Oct 2010 15:25:33 +0000 (15:25 +0000)]
Merge 213831:
  Enable the shared memory reference clock driver. The GPS devices are
  getting more and more popular, as source of precise time, and the gpsd
  daemon from ports is using the shared memory to synchronize with ntpd.

  Reviewed by:  roberto

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

13 years agoMFC r213307,213335:
nwhitehorn [Sun, 17 Oct 2010 15:22:59 +0000 (15:22 +0000)]
MFC r213307,213335:

Add support for memory attributes (pmap_mapdev_attr() and friends) on
PowerPC/AIM. This is currently stubbed out on Book-E, since I have no
idea how to implement it there.

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

13 years agoMFC r213298:
jh [Sun, 17 Oct 2010 14:48:53 +0000 (14:48 +0000)]
MFC r213298:

Fix printing of the "rw" mount option in fstab(5) format (-p option).
fstab(5) format requires that one of "rw", "rq" or "ro" is always
specified.

PR: bin/123021

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

13 years agoMFC: r213868
marius [Sun, 17 Oct 2010 14:25:55 +0000 (14:25 +0000)]
MFC: r213868

- In the spirit of r212559 add a comment describing what will eventually
  lower the PIL.
- Just as with the AP ensure that the (S)TICK timer(s) are in a known
  state when starting BSPs.

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

13 years agoMFC r213846:
kib [Sun, 17 Oct 2010 13:47:03 +0000 (13:47 +0000)]
MFC r213846:
Remove stale comment.

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

13 years agoMFC: r213578
marius [Sun, 17 Oct 2010 13:41:09 +0000 (13:41 +0000)]
MFC: r213578

In the replacement text of the __bswapN_const() macros cast the argument
to the expected type so they work like the corresponding __bswapN_var()
functions and the compiler doesn't complain when arguments of different
width are passed.

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

13 years agoMFC: r213575
marius [Sun, 17 Oct 2010 13:13:13 +0000 (13:13 +0000)]
MFC: r213575

Just use the sparc64 version of this header rather than duplicating it.

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

13 years agoMFC: r213361
marius [Sun, 17 Oct 2010 12:33:15 +0000 (12:33 +0000)]
MFC: r213361

Try to adhere to style(9) and be consistent within this file.

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

13 years agoMFC: r213229
marius [Sun, 17 Oct 2010 12:29:57 +0000 (12:29 +0000)]
MFC: r213229

Use the mii_data provided via mii_attach_args and mii_pdata respectively
instead of reaching out for the softc of the parent.

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

13 years agoMFC: r213188
marius [Sun, 17 Oct 2010 12:16:36 +0000 (12:16 +0000)]
MFC: r213188

- Remove clause 3 and 4 from TNF licenses.
- Remove closes 3 & 4 from Manuel Bouyer's license.

Obtained from: NetBSD

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

13 years agoMFC: r204646
marius [Sun, 17 Oct 2010 12:11:42 +0000 (12:11 +0000)]
MFC: r204646

The NetBSD Foundation has granted permission to remove clause 3 and 4 from
the software.

Obtained from: NetBSD

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

13 years agoMFC: r213104
marius [Sun, 17 Oct 2010 12:05:37 +0000 (12:05 +0000)]
MFC: r213104

minor simplifications and cosmetics

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

13 years agoMFC: r213873
marius [Sun, 17 Oct 2010 11:51:55 +0000 (11:51 +0000)]
MFC: r213873

Explicitly lower the PIL to 0 as part of enabling interrupts, similar to
what is done on other platforms. Unlike as with the sched_throw(NULL)
called on BSPs during their startup apparently there's nothing which will
reliably lower it on APs. I'm unsure why this only came up on V215 though,
breaking these with r207248. My best guess is that these are the only
supported ones so far fast enough to lose some race.

PR: 151404

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

13 years agoMFC r213835: Add FreeBSD 8.2.
jh [Sun, 17 Oct 2010 11:40:29 +0000 (11:40 +0000)]
MFC r213835: Add FreeBSD 8.2.

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

13 years agoMFC r213837:
bz [Sun, 17 Oct 2010 09:13:47 +0000 (09:13 +0000)]
MFC r213837:

  Remove dead code:
  assignment to a local variable not used anywhere after that.

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

13 years agoMFC r213836:
bz [Sun, 17 Oct 2010 08:59:02 +0000 (08:59 +0000)]
MFC r213836:

  Style: make the asterisk go with the variable name, not the type.

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

13 years agoMFC r213832:
bz [Sun, 17 Oct 2010 08:46:34 +0000 (08:46 +0000)]
MFC r213832:

  Use ifa_ifwithaddr_check() rather than ifa_ifwithaddr() as we are not
  interested in the result and would leak a reference otherwise.

PR: kern/151435
Submitted by: Andrew Boyer (aboyer averesystems.com)

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

13 years agoRevert r213261 (MFC of r212652): vm_page_sleep change has not been MFCed yet
avg [Sat, 16 Oct 2010 20:13:15 +0000 (20:13 +0000)]
Revert r213261 (MFC of r212652): vm_page_sleep change has not been MFCed yet

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

13 years agoMFC r213648: panic_cpu variable should be volatile
avg [Sat, 16 Oct 2010 19:58:49 +0000 (19:58 +0000)]
MFC r213648: panic_cpu variable should be volatile

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

13 years agoMFC r213735: tmpfs + sendfile: do not produce partially valid pages for
avg [Sat, 16 Oct 2010 19:56:46 +0000 (19:56 +0000)]
MFC r213735: tmpfs + sendfile: do not produce partially valid pages for
vnode's tail

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

13 years agoMFC r213730: zfs + sendfile: do not produce partially valid pages for
avg [Sat, 16 Oct 2010 11:52:43 +0000 (11:52 +0000)]
MFC r213730: zfs + sendfile: do not produce partially valid pages for
vnode's tail

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

13 years agoMFC r213651: add kmem_map_free sysctl: query largest contiguous free range in kmem_map
avg [Sat, 16 Oct 2010 11:24:27 +0000 (11:24 +0000)]
MFC r213651: add kmem_map_free sysctl: query largest contiguous free range in kmem_map

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

13 years agoMFC r213527: vm.kmem_map_size: a sysctl to query current kmem_map->size
avg [Sat, 16 Oct 2010 11:19:31 +0000 (11:19 +0000)]
MFC r213527: vm.kmem_map_size: a sysctl to query current kmem_map->size

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

13 years agoMFC r213359:
kib [Sat, 16 Oct 2010 08:43:23 +0000 (08:43 +0000)]
MFC r213359:
Release the vnode lock and close the linker file vnode earlier in the
linker_load_file methods. This prevents the LOR between kernel linker sx
xlock and vnode lock.

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

13 years agoMFC r213354:
kib [Sat, 16 Oct 2010 08:38:12 +0000 (08:38 +0000)]
MFC r213354:
Cosmetic: make it less confusing when displaying RAID 1 level, that might
be 1+0 as well.

PR: kern/150936

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

13 years agoMFC r209866:
kib [Fri, 15 Oct 2010 18:07:45 +0000 (18:07 +0000)]
MFC r209866:
Fix spacing.

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

13 years agoMFC r209862:
kib [Fri, 15 Oct 2010 17:56:51 +0000 (17:56 +0000)]
MFC r209862:
For both i386 and amd64 pmap,
- change the type of pm_active to cpumask_t, which it is;
- in pmap_remove_pages(), compare with PCPU(curpmap), instead of
  dereferencing the long chain of pointers [1].
For amd64 pmap, remove the unneeded checks for validity of curpmap
in pmap_activate(), since curpmap should be always valid after
r209789.

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

13 years agoMFC r213284: tr: Fix '[=]=]' equivalence class.
jilles [Fri, 15 Oct 2010 15:37:16 +0000 (15:37 +0000)]
MFC r213284: tr: Fix '[=]=]' equivalence class.

A closing bracket immediately after '[=' should not be treated as special.

Different from the submitted patch, a string ending with '[=' does not cause
access beyond the terminating '\0'.

PR: bin/150384
Submitted by: Richard Lowe

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

13 years agoMFC r209605
alc [Fri, 15 Oct 2010 05:42:35 +0000 (05:42 +0000)]
MFC r209605
  Improve bufdone_finish()'s handling of the bogus page.  Specifically, if
  one or more mappings to the bogus page must be replaced, call pmap_qenter()
  just once.  Previously, pmap_qenter() was called for each mapping to the
  bogus page.

MFC r209902
  Change the implementation of vm_hold_free_pages() so that it performs at
  most one call to pmap_qremove(), and thus one TLB shootdown, instead of one
  call and TLB shootdown per page.

  Simplify the interface to vm_hold_free_pages().

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

13 years agoMFC of r204697 r204706 r204849 r204908 r205071 r205427 r212032
edwin [Fri, 15 Oct 2010 05:17:48 +0000 (05:17 +0000)]
MFC of r204697 r204706 r204849 r204908 r205071 r205427 r212032

r212032:

    Use basename(3) to determine the name of the program.

    Submitted by:   Alexander Best <arundel@>

r205427:

    Replace -b with -C and -B (as proposed by Alexander).
    Add -3, -A and -B to the usage.
    Update regression test for the new parameters.

r205071:

    - With the introduction of -A, -B and -3, not all combinations of
      arguments makes sense anymore. For example, what would a combination
      of -3 (show three months) and -y (show the whole year) do?
      We will abort on these cases.
    - Move the debug option -d to -H (from highlight), while -d is now
      used for setting the day of "today" so that -y and friends can
      be tested.

r204908:

    - Fix the highlighting for non-terminals when the last week is not
      7 days long.
    - "-m <N> <YYYY>" now prints only the month, not the whole year.

r204849:

    - document the -3, -A and -B properly in Synopsis.
    - add highlight of current date for non-terminals.
    - fix -J option.
    - code cleanup.

r204706:

Remove no-op of WARNS?=

    Submitted by:   Ulrich Sp??rlein <uqs@spoerlein.net>

r204697:

    - Implement -3 option (show previous, this and next month) option.
    - Add -A option (months after this month).
    - Add -B option (months before this month).
    - Fix highlighting of today in year overview.
    - Fix aligning of "foreign" characters.

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

13 years agoMFC r210124
alc [Fri, 15 Oct 2010 04:02:07 +0000 (04:02 +0000)]
MFC r210124
  Optimize pmap_remove()'s handling of PG_G mappings.

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

13 years agoMFC r209789
alc [Fri, 15 Oct 2010 03:23:53 +0000 (03:23 +0000)]
MFC r209789
  Correctly maintain the per-cpu field "curpmap" on amd64 just like we
  do on i386.  The consequences of not doing so on amd64 became apparent
  with the introduction of the COUNT_IPIS and COUNT_XINVLTLB_HITS
  options.  Specifically, single-threaded applications were generating
  unnecessary IPIs to shoot-down the TLB on other processors.

MFC r209887
  Reduce the number of global TLB shootdowns generated by pmap_qenter().
  Specifically, teach pmap_qenter() to recognize the case when it is being
  asked to replace a mapping with the very same mapping and not generate
  a shootdown.

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

13 years agoMFC r212873
alc [Fri, 15 Oct 2010 02:58:49 +0000 (02:58 +0000)]
MFC r212873
  Allow a POSIX shared memory object that is opened for read but not for
  write to nonetheless be mapped PROT_WRITE and MAP_PRIVATE, i.e.,
  copy-on-write.

PR: 150260

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

13 years agoMFC of r213875
edwin [Thu, 14 Oct 2010 21:58:51 +0000 (21:58 +0000)]
MFC of r213875

Update manual with regarding to the status of calendars/calendar.judaic.

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

13 years agoMFC of r211517 r212035
edwin [Thu, 14 Oct 2010 21:38:20 +0000 (21:38 +0000)]
MFC of r211517 r212035

r211517:
'\0' -> 0

Fix silly mistake by being overly zeaolous[sp] of applying the style rules.

r212035:
For calendars which don't match the solar-based Gregorian calendar,
be able to specify a year string in an entry.

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

13 years agoMFC of r213032 r213033
edwin [Thu, 14 Oct 2010 21:16:14 +0000 (21:16 +0000)]
MFC of r213032 r213033

Fix location and year of the Battle of the Plains of Abraham

PR:             150504
Submitted by:   Douglas Berry <bitnix@bitnix.ca>

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

13 years agoMFC r213406:
nwhitehorn [Thu, 14 Oct 2010 13:56:26 +0000 (13:56 +0000)]
MFC r213406:

Fix two subtle problems in PPC32 RTLD. The first is a concurrency issue
where long PLT calls in multi-threaded environments could end up with
incorrect jmptab values. The second is that, after the addition of extended
PLT support, I forgot to update the PLT icache synchronization code to cover
the extended PLT instead of just the basic PLT.

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

13 years agoMFC r213508:
kib [Thu, 14 Oct 2010 09:29:59 +0000 (09:29 +0000)]
MFC r213508:
Explicitely call cache_purge(fvp) when msdosfs_rename() succeeded, to flush
aliases created due to msdosfs being case-insensitive.

MFC r213543:
Add a comment describing the reason for calling cache_purge(fvp).

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

13 years agoMFC r212832: update manpage
obrien [Thu, 14 Oct 2010 03:11:41 +0000 (03:11 +0000)]
MFC r212832: update manpage

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