]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC: r210272
rmacklem [Tue, 3 Aug 2010 03:19:57 +0000 (03:19 +0000)]
MFC: r210272
Fix handling of the "-l" argument for nfsdumpstate(8).

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

13 years agoMFC: r210268
rmacklem [Mon, 2 Aug 2010 23:57:50 +0000 (23:57 +0000)]
MFC: r210268
For the experimental NFSv4 server's dumplocks operation, add the
MPSAFE flag to cn_flags so that it doesn't panic. The panics weren't
seen since nfsdumpstate(8) is broken for the "-l" case, so this
was never done. I'll do a separate commit to fix nfsdumpstate(8).

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

13 years agoMFC: 210428
gnn [Mon, 2 Aug 2010 19:56:07 +0000 (19:56 +0000)]
MFC: 210428

Fix a bug in the statistics code for tracking the head and
tail pointers of the tx and rx queues.   We needed a SYSCTL_PROC
to correctly get the values at run time.

Submitted by: Andrew Boyer aboyer at averesystems.com

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

13 years agoMFC r210511:
bcr [Mon, 2 Aug 2010 15:54:59 +0000 (15:54 +0000)]
MFC r210511:

Use "printf" instead of "echo -n" in an example because it
should be more compatible for most shells that are out there.

I contacted Philip Guenther at OpenBSD about this PR and he
corrected the issue in their tree pretty fast.

PR:                 docs/142243
Submitted by:       Yasir (yasir27 at mail dot ru)
Obtained from:      OpenBSD
Discussed with:     delphij

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

13 years agoMFC r210662: Fix indention of attribution line for some recent additions.
uqs [Mon, 2 Aug 2010 11:48:05 +0000 (11:48 +0000)]
MFC r210662: Fix indention of attribution line for some recent additions.

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

13 years agoMFC r209350, r210645: mdoc fixes, HISTORY fixes
uqs [Mon, 2 Aug 2010 10:31:39 +0000 (10:31 +0000)]
MFC r209350, r210645: mdoc fixes, HISTORY fixes

- remove stray argument [1]
- remove stray whitespace
- use canonical wording for the HISTORY section
- gsched(8) was first released with FreeBSD 8.1

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

13 years agoMFC r204636:
jh [Mon, 2 Aug 2010 09:13:09 +0000 (09:13 +0000)]
MFC r204636:

In reallocf(3), free the memory only when size != 0. Otherwise, when the
System V compatibility option (malloc "V" flag) is in effect a zero sized
reallocf() could cause a double free.

PR: bin/141753

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

13 years agoMFC r209614:
jh [Mon, 2 Aug 2010 09:03:31 +0000 (09:03 +0000)]
MFC r209614:

- Don't assign the return value from read(2) to a variable of type
  int.
- Use errx(3) instead of err(3) to print the error message on short
  reads in readlabel(). errno won't be set on short reads which can
  easily occur here due to the fixed size read request.

PR: 144307

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

13 years agoMFC r210661:
delphij [Mon, 2 Aug 2010 08:35:16 +0000 (08:35 +0000)]
MFC r210661:

Change copyright holder to author.  We prefer using a real legal
entity for copyright holders.

Approved by: sephe

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

13 years agoMFC: r210227
rmacklem [Mon, 2 Aug 2010 00:37:33 +0000 (00:37 +0000)]
MFC: r210227
Add a call to nfscl_mustflush() in nfs_close() of the experimental
NFSv4 client, so that attributes are not acquired from the server
when a delegation for the file is held. This can reduce the number
of Getattr Ops significantly.

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

13 years agoMFC: r210201
rmacklem [Sun, 1 Aug 2010 23:58:26 +0000 (23:58 +0000)]
MFC: r210201
Change the nfscl_mustflush() function in the experimental NFSv4
client to return a boolean_t in order to make it more compatible
with style(9).

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

13 years agoMFC: r210178
rmacklem [Sun, 1 Aug 2010 23:36:39 +0000 (23:36 +0000)]
MFC: r210178
Patch the experimental NFSv4 server so that it acquires a reference
count on nfsv4rootfs_lock when dumping state, since these functions
are not called by nfsd threads. Without this reference count, it
is possible for an nfsd thread to acquire an exclusive lock on
nfsv4rootfs_lock while the dump is in progress and then change the
lists, potentially causing a crash.

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

13 years agoMFC: r210154
rmacklem [Sun, 1 Aug 2010 15:55:49 +0000 (15:55 +0000)]
MFC: r210154
Delete comments related to soft clock interrupts that don't apply
to the FreeBSD port of the experimental NFSv4 server.

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

13 years agoMFC: r210102
rmacklem [Sun, 1 Aug 2010 15:34:29 +0000 (15:34 +0000)]
MFC: r210102
This patch fixes a bug in the experimental NFSv4 server where it
released a reference count on nfsv4rootfs_lock erroneously when
administrative revocation of state was done.

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

13 years agoMFC r210221: sh: Allow a bg command consisting solely of redirections.
jilles [Sun, 1 Aug 2010 14:14:48 +0000 (14:14 +0000)]
MFC r210221: sh: Allow a bg command consisting solely of redirections.

Example:
  </dev/null &

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

13 years agoMFC r206426:
bschmidt [Sun, 1 Aug 2010 12:05:27 +0000 (12:05 +0000)]
MFC r206426:
Building wlan_amrr is now mandatory.

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

13 years agoMFC r210482:
bcr [Sun, 1 Aug 2010 11:12:42 +0000 (11:12 +0000)]
MFC r210482:

Add an example to encourage people to have a look at either
make(1) or /usr/ports/ports-mgmt/portconf for port-specific
variables/options to compile a port.

PR:                 docs/145655
Submitted by:       Armin Pirkovitsch (armin at frozen dash zone dot org)
Discussed with:     dougb

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

13 years agoMFC r210546:
bcr [Sun, 1 Aug 2010 11:09:14 +0000 (11:09 +0000)]
MFC r210546:

Typo fix: s/ommited/omitted

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

13 years agoMFC r210544:
bcr [Sun, 1 Aug 2010 11:06:13 +0000 (11:06 +0000)]
MFC r210544:

Small typo fix: s/ommited/omitted

PR:             docs/148977
Submitted by:   Warren Block (wblock at wonkity dot com)

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

13 years agoMFC of 210718, tzdata2010k:
edwin [Sun, 1 Aug 2010 09:08:33 +0000 (09:08 +0000)]
MFC of 210718, tzdata2010k:

- Daylight Saving Time will not be used in Egypt during Ramadan.
- Proper names for Pacific/Pohnpei and Pacific/Chuuk
- Fix historical information for Finland for 1981 and 1982
- No leap-second for December 2010.
- Fix historical information for Ontario (Canada)

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

13 years agoMFC r210457:
mm [Sun, 1 Aug 2010 08:47:33 +0000 (08:47 +0000)]
MFC r210457:

Consider snapshots as descendants via zfs allow -d

OpenSolaris onnv changeset: 9847:2f3ba86e857a

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6809340)

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

13 years agoMFC: r210034
rmacklem [Sun, 1 Aug 2010 02:11:12 +0000 (02:11 +0000)]
MFC: r210034
For the experimental NFSv4 client, make sure that attributes that
predate the issue of a delegation are not cached once the delegation
is held. This is necessary, since cached attributes remain valid
while the delegation is held.

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

13 years agoMFC: r210032
rmacklem [Sun, 1 Aug 2010 01:06:17 +0000 (01:06 +0000)]
MFC: r210032
For the experimental NFSv4 client, do not use cached attributes
that were invalidated even when a delegation for the file is held.

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

13 years agoMFC: r210030
rmacklem [Sat, 31 Jul 2010 15:36:54 +0000 (15:36 +0000)]
MFC: r210030
Fix a bogus comment that mentions lru lists that don't exist.

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

13 years agoMFC r210289:
bschmidt [Sat, 31 Jul 2010 10:24:10 +0000 (10:24 +0000)]
MFC r210289:
Update manpage to reflect changes regarding the 6050's firmware.

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

13 years agoMFC r210114:
bschmidt [Sat, 31 Jul 2010 10:20:09 +0000 (10:20 +0000)]
MFC r210114:
Handle RUN->ASSOC->RUN transition correctly, as in not trigger a
firmware error. Convert if statements to a switch statement while
I'm here.

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

13 years agoMFC r210113:
bschmidt [Sat, 31 Jul 2010 10:18:15 +0000 (10:18 +0000)]
MFC r210113:
- Update 6000 firmware to 9.221.4.1
- Add 6050 firmware

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

13 years agoMFC r210111:
bschmidt [Sat, 31 Jul 2010 10:16:41 +0000 (10:16 +0000)]
MFC r210111:
Add support for firmware images in "type-length-value" format.

Obtained from: OpenBSD

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

13 years agoMFC r210110:
bschmidt [Sat, 31 Jul 2010 10:15:18 +0000 (10:15 +0000)]
MFC r210110:
Detect active chains differently to work around a firmware bug which
would mark non-existing chains as active.

Obtained from: OpenBSD

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

13 years agoMFC r210209:
bschmidt [Sat, 31 Jul 2010 10:12:53 +0000 (10:12 +0000)]
MFC r210209:
- Add new IDs for 6000 series devices.
- The 6000 series WiMAX devices need a separate firmware.
- The b-gen devices are not hooked because the hardware revision type
  is not know.

Obtained from: OpenBSD

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

13 years agoMFC r210532:
bz [Fri, 30 Jul 2010 21:58:35 +0000 (21:58 +0000)]
MFC r210532:

  Return NULL rather than 0 for a pointer.

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

13 years agoMFC r210468:
bcr [Fri, 30 Jul 2010 16:27:41 +0000 (16:27 +0000)]
MFC r210468:

Apply a small grammar fix to {toupper,tolower}(3).

PR:             docs/140458
Submitted by:   Jeremy Huddleston (Jeremyhu at apple dot com)

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

13 years agoMFC r210463:
bcr [Fri, 30 Jul 2010 16:23:45 +0000 (16:23 +0000)]
MFC r210463:

Clarify that the "number of bytes per sector"-range in the
-S option is meant to be "inclusive".

The original issue of the PR was already fixed.

PR:                 docs/142418
Submitted by:       David Naylor (naylor dot b dot david at gmail dot com)
No objection from:  kib

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

13 years agoMFC r207671:
jh [Fri, 30 Jul 2010 13:23:21 +0000 (13:23 +0000)]
MFC r207671:

Fix deadlock between GEOM class unloading and withering. Withering can't
proceed while g_unload_class() blocks the event thread. Fix this by not
running g_unload_class() as a GEOM event and dropping the topology lock
when withering needs to proceed.

PR: kern/139847

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

13 years agoMFC r208730:
uqs [Fri, 30 Jul 2010 12:36:40 +0000 (12:36 +0000)]
MFC r208730:
Zero struct before reading from it

PR: 140384

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

13 years agoMFC r204761:
jh [Fri, 30 Jul 2010 12:04:29 +0000 (12:04 +0000)]
MFC r204761:

- Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.
  snprintf(3) doesn't set errno in the tested cases.
- If the same argument reference (for example %1) was specified more than
  once, the command didn't necessarily fit to the final command buffer. Fix
  this using a dynamic sbuf buffer. Add a few regression tests for the case.

PR: bin/95079

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

13 years agoMFC r208611:
jh [Fri, 30 Jul 2010 11:55:52 +0000 (11:55 +0000)]
MFC r208611:

Fix misspelling of "substitution".

PR: bin/130874

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

13 years agoMFC r210408:
ae [Fri, 30 Jul 2010 07:31:50 +0000 (07:31 +0000)]
MFC r210408:
  Document that SI unit suffixes are supported for -b and -s options
  of add verb. Mention about maximum size limit for "freebsd-boot"
  partition. It should be smaller than 545 KB (hardcoded in pmbr).
  Show usage of SI unit suffixes in example.

Approved by: mav (mentor)

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

13 years agoMFC r210401:
ae [Fri, 30 Jul 2010 07:30:57 +0000 (07:30 +0000)]
MFC r210401:
  Prevent access after free to table entry in case when
  user deletes partition that not yet created (changes doesn't
  committed to disk).

  PR: 148687

Approved by: mav (mentor)

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

13 years agoMFC r208881: sh: Pass through SIGINT if interactive and job control
jilles [Thu, 29 Jul 2010 16:55:27 +0000 (16:55 +0000)]
MFC r208881: sh: Pass through SIGINT if interactive and job control
is enabled.

This already worked if without job control.

In either case, this depends on it that a process that terminates due to
SIGINT exits on it (so not with status 1, or worse, 0).

Example:
  sleep 5; echo continued
This does not print "continued" any more if sleep is aborted via ctrl+c.

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

13 years agoMFC r200107,200109-200110,202364,202376,205678,207569:
netchild [Thu, 29 Jul 2010 14:23:58 +0000 (14:23 +0000)]
MFC r200107,200109-200110,202364,202376,205678,207569:

Merge linux emulation parts for video4linux support (requires
a native v4l device, e.g. something which works with
ports://multimedia/webcamd).

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

13 years agoMFC r210370:
kib [Thu, 29 Jul 2010 09:20:08 +0000 (09:20 +0000)]
MFC r210370:
Verify return value of the sigset manipulation functions to catch
invalid signal numbers.

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

13 years agoMFC r210063, r210065:
attilio [Wed, 28 Jul 2010 16:10:21 +0000 (16:10 +0000)]
MFC r210063, r210065:
Fix the way the segments are included in the gcore outputs (with the
default invokation):
- Right now if segments are not writable are not included. Remove this.
- Right now if a segment is mapped with NOCORE the check is not honoured.
   Change this by checking the newly added flag, from libutil,
   KVME_FLAG_NOCOREDUMP.

Besides that, add a new flag (-f) that forces a 'full' dump of all the
segments excluding just the malformed ones.

Sponsored by: Sandvine Incorporated

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

13 years agoMFC r203042, r203735:
attilio [Wed, 28 Jul 2010 15:55:14 +0000 (15:55 +0000)]
MFC r203042, r203735:
Allow -o as a synonym for -s, for compatibility with other systems.

Sponsored by: Sandvine Incorporated

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

13 years agoMFC r199969: add amdsbwd.4
avg [Wed, 28 Jul 2010 09:12:20 +0000 (09:12 +0000)]
MFC r199969: add amdsbwd.4

This part of r199969 was left during original MFC, only merge to sys was
done at that time.

Reported by: hrs
Pointyhat to: avg

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

13 years agoMFC r210282:
mm [Tue, 27 Jul 2010 14:35:17 +0000 (14:35 +0000)]
MFC r210282:

To improve latency, lower default vfs.zfs.vdev.max_pending from 35 to 10

OpenSolaris onnv changeset (partial): 10801:e0bf032e8673

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6891731)

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

13 years agoMFC: r210383
jkim [Tue, 27 Jul 2010 14:32:51 +0000 (14:32 +0000)]
MFC: r210383

Fix an obvious typo.  We were acquiring an exclusive writer lock regardless
of the given flags.

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

13 years agoMFC r210294:
tijl [Tue, 27 Jul 2010 13:06:18 +0000 (13:06 +0000)]
MFC r210294:

Store fsbase and gsbase in the right fields of the mcontext. They were
switched.

PR: i386/148344
Approved by: kib (mentor)

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

13 years agoMFC r210296:
roberto [Tue, 27 Jul 2010 09:12:11 +0000 (09:12 +0000)]
MFC r210296:

Week days are all lowercase in French.
cf.  http://www.academie-francaise.fr/langue/questions.html#jourdelasemaine (FR)

PR:           misc/148792
Submitted by: Mathieu <freebsd@breatheless.net>

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

13 years agoMFC r210446:
kib [Tue, 27 Jul 2010 09:01:03 +0000 (09:01 +0000)]
MFC r210446:
Reword the comment, fixing typo.

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

13 years agoMFC r210443:
mav [Tue, 27 Jul 2010 07:19:17 +0000 (07:19 +0000)]
MFC r210443:
Remove extra commas from KTR_EVENT4() macro to match number of CTR6() args.
Comparing to other macros there should be strings concatenation, not a
separate arguments.

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

13 years agoMFC 209948:
jhb [Mon, 26 Jul 2010 18:54:56 +0000 (18:54 +0000)]
MFC 209948:
A previous change moved the GETATTR RPC for open() calls that hit in the
name cache up into nfs_lookup() instead of nfs_open().  Continue this
trend by flushing the attribute cache for leaf nodes in nfs_lookup() during
an open() if we do a LOOKUP RPC.  For NFSv3 this should generally be a NOP
as the attributes are flushed before fetching the post-op attributes from
the LOOKUP RPC which most (all?) NFSv3 servers provide, so the post-op
attributes should populate the cache.

Now all NFS open() calls will always clear the cached attributes during the
nfs_lookup() prior to nfs_open() in the !NMODIFIED case to provide CTOC.
As a result, we can remove the conditional flushing of the attribute
cache from nfs_open().

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

13 years agoMFC 209212:
jhb [Mon, 26 Jul 2010 18:22:46 +0000 (18:22 +0000)]
MFC 209212:
Restore the machine check register banks on resume.  For banks being
monitored via CMCI, reset the interrupt threshold to 1 on resume.

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

13 years agoMFC 208633 (Missed in earlier CMCI MFC):
jhb [Mon, 26 Jul 2010 17:38:56 +0000 (17:38 +0000)]
MFC 208633 (Missed in earlier CMCI MFC):
Defer initializing machine checks for the boot CPU until the local APIC is
fully configured.

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

13 years agoMerge r209444 (by thompsa) from head:
gavin [Mon, 26 Jul 2010 12:47:39 +0000 (12:47 +0000)]
Merge r209444 (by thompsa) from head:

  Add new device ID.

PR: usb/146907
Submitted by: <candy-sendpr kgc.co.jp>

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

13 years agoMFC 209531:
dougb [Mon, 26 Jul 2010 01:31:47 +0000 (01:31 +0000)]
MFC 209531:
Taken from actual police videos ...

MFC 210484:
Correct a Cecil Beaton quote

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

13 years agoPull spurious mergeinfo from datfiles up to src/games/fortune
dougb [Mon, 26 Jul 2010 01:28:34 +0000 (01:28 +0000)]
Pull spurious mergeinfo from datfiles up to src/games/fortune

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

13 years agoMerge r209447 (by thompsa) from head:
gavin [Sun, 25 Jul 2010 21:38:22 +0000 (21:38 +0000)]
Merge r209447 (by thompsa) from head:

  Add new device id.

PR: usb/147190

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

13 years agoMerge r209445 from head (original commit by thompsa):
gavin [Sun, 25 Jul 2010 21:32:46 +0000 (21:32 +0000)]
Merge r209445 from head (original commit by thompsa):

   Add a mass storage quirk.

PR: usb/147196

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

13 years agoMFC: r207829
brueffer [Sun, 25 Jul 2010 20:00:15 +0000 (20:00 +0000)]
MFC: r207829

Various wording, spelling and markup fixes.

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

13 years agoMFC r209523:
rpaulo [Sun, 25 Jul 2010 17:48:16 +0000 (17:48 +0000)]
MFC r209523:
 Import the acpi_aibs(4) driver written by Constantine A. Murenin.
 It has more features than acpi_aiboost(4) and it will eventually
 replace acpi_aiboost(4).

Submitted by: Constantine A. Murenin <cnst at FreeBSD.org>
Reviewed by: freebsd-acpi, imp

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

13 years agoMFC r209016, r209022:
rpaulo [Sun, 25 Jul 2010 17:40:48 +0000 (17:40 +0000)]
MFC r209016, r209022:
 Some odd APs send beacons on the same TX queue as non-beacons. This breaks
 802.11 duplicate detection. Upon looking at the standard, we discover
 that 802.11-2007 says:
 "A receiving QoS STA is also required to keep only the most recent
 cache entry per<Address 2, TID, sequence-number>  triple, storing only
 the most recently received fragment number for that triple. A receiving
 STA may omit tuples obtained from broadcast/multicast or ATIM frames
 from the cache."

 To fix this, we just disable duplicate detection for multicast/broadcast
 frames.

Reviewed by: sam
Obtained from: DragonFly

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

13 years agoMerge r198005 (originally by markm) from head:
gavin [Sun, 25 Jul 2010 15:53:27 +0000 (15:53 +0000)]
Merge r198005 (originally by markm) from head:

  We haven't installed usbdevs for many moons now, and it doesn't work
  any more anyway. Add it to the "obsolete" list.

PR: usb/146799
Reported by: Warren Block <wblock wonkity.com>

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

13 years agoMFC r210465
rafan [Sun, 25 Jul 2010 11:52:09 +0000 (11:52 +0000)]
MFC r210465

 - Fix wrong manpage title for keybound.3X

 PR:            docs/148864
 Obtained from: ncurses-5.7-20081213 snapshot

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

13 years agoMFC r202783:
jh [Sat, 24 Jul 2010 18:54:57 +0000 (18:54 +0000)]
MFC r202783:

Truncate read request rather than returning EIO if the request is
larger than MAXPHYS + 1. This fixes a problem with cat(1) when it
uses a large I/O buffer.

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

13 years agoTrim SA list.
hrs [Sat, 24 Jul 2010 18:05:10 +0000 (18:05 +0000)]
Trim SA list.

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

13 years agoFix typos.
hrs [Sat, 24 Jul 2010 17:44:31 +0000 (17:44 +0000)]
Fix typos.

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

13 years agoMFC r210191:
bcr [Sat, 24 Jul 2010 11:15:40 +0000 (11:15 +0000)]
MFC r210191:

s/an struct/a struct

PR:             docs/148660
Submitted by:   Warren Block (wblock at wonkity dot com)
Reviewed by:    Tim Kientzle
Mentored by:    jkois

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

13 years agoShift to -STABLE now that 8.1-RELEASE is done.
kensmith [Sat, 24 Jul 2010 01:52:26 +0000 (01:52 +0000)]
Shift to -STABLE now that 8.1-RELEASE is done.

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

13 years agoAdd ale(4) to the IFCAP_VLAN_HWTSO-supported device list.
hrs [Fri, 23 Jul 2010 22:49:25 +0000 (22:49 +0000)]
Add ale(4) to the IFCAP_VLAN_HWTSO-supported device list.

Spotted by: yongari

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

13 years agoFix a typo.
hrs [Fri, 23 Jul 2010 22:20:26 +0000 (22:20 +0000)]
Fix a typo.

Spotted by: np

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

13 years agoFix a typo.
hrs [Fri, 23 Jul 2010 22:18:05 +0000 (22:18 +0000)]
Fix a typo.

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

13 years agoSort entries. Cosmetic changes only.
hrs [Fri, 23 Jul 2010 22:00:19 +0000 (22:00 +0000)]
Sort entries.  Cosmetic changes only.

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

13 years ago- Spelling correction.
hrs [Fri, 23 Jul 2010 21:51:41 +0000 (21:51 +0000)]
- Spelling correction.
- Remove 64-bit quota entry; it was not merged[*].

Spotted by: kib[*]

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

13 years agoNew relnotes item:
hrs [Fri, 23 Jul 2010 21:38:26 +0000 (21:38 +0000)]
New relnotes item:
        SPARC64 V support [sparc64],
        usb(4) attach->notify event change,
        uep(4) added,
        cxgb(4) hardware filtering,
        fxp(4) hardware MAC stats via sysctl,
        ixgbe(4) version 2.2.0,
        msk(4) 88E8059 support, shutdown issue fixed,
        Xen netfront driver improved,
        iflladdr_event for L2 addr change has been added,
        ng_bridge(4) and ng_hub(4) "presistent" flag,
        CAM ATA transport driver supports more SATA feature,
        mvs(4) added,
        siis(4) now enables MSI on SiI3124,
        twa(4) driver updated,
        UFS QUOTA64,
        ZFS improvements,
        camcontrol(8) -d/-f added,
        liblzma and xz(1) added,
        ln(1) bugfixes,
        newfs_msdosfs(8) default volume label changed,
        pam_krb5(8) no_user_check option added,
        pathchk(1) -P for POSIX compatibility,
        stat(1) %Sf added,
        unzip(1) rename query, -Ccfpv options added,
        ISC BIND 9.6.2-P2,
        OpenSSL 0.9.8n, and
        tzdata2010j.

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

13 years agoMFC 209956:
jhb [Fri, 23 Jul 2010 15:32:22 +0000 (15:32 +0000)]
MFC 209956:
Remove a dead test.  We already exclude NMI traps from this code in an
earlier condition.

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

13 years agoMFC 209946:
jhb [Fri, 23 Jul 2010 15:26:19 +0000 (15:26 +0000)]
MFC 209946:
- Add missing locking around flushing of an NFS node's attribute cache
  in the NMODIFIED case of nfs_open().
- Cosmetic tweak to simplify an expression in nfs_lookup().

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

13 years agoMFC 210068:
jhb [Fri, 23 Jul 2010 15:16:27 +0000 (15:16 +0000)]
MFC 210068:
- Sort list of trace points.
- Note that 'y' (sysctl requests) is in the default set of trace points.

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

13 years agoMFC 210066:
jhb [Fri, 23 Jul 2010 14:30:14 +0000 (14:30 +0000)]
MFC 210066:
Rework the SMBIOS table walker to make it operate like other table walkers
and remove a buffer overflow.

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

13 years agoNew relnotes item:
hrs [Fri, 23 Jul 2010 09:01:12 +0000 (09:01 +0000)]
New relnotes item:
        ddb(4) show ifnets/ifnet/lltables/lltable/llentry,
        ddb(4) show vnet_sysinit/vnet_sysuninit,
        UltraSPARC IV/IV+ support [sparc64],
        if_bridge(4) MTU handling fix,
        bwn(4) added,
        em(4) 7.0.0,
        igb(4) 1.9.3,
        ixgbe(4) 2.1.7,
        msk(4) interrupt moderation,
        mxge(4) 1.4.50 firmware,
        re(4) performance fix,
        run(4) added,
        sge(4) added,
        flowtable IPv6 support,
        LINKSTATE capability flag added to ifnet,
        ipfw(4) improvements: ipfw0, IPv6 support of "me", IPv6 keep-alive fix,
                lookup match option, ip.fw.one_pass fix,
        memory alignment issue in ng_ppp and ng_ksocket fixed,
        tap(4) now supports link state report,
        more drivers to IFCAP_VLAN_HWTSO support list,
        cam(3) ATA transport PUIS support,
        glabel(8) per-FS enable/disable knobs,
        gmultipath(8) destroy, rotate, getactive commands,
        gsched(8) added,
        msdosfs(5) MPSAFE,
        UFS NFSv4 ACL support,
        chgrp(1) and chown(8) -x flag support,
        fnmatch(3) bug fix,
        indent(1) -ta flag support,
        libz optimization on i386/amd64,
        netstat(1) -f netgraph bug fix,
        /tmp/.snap now in $daily_clean_tmps_ignore used in periodic(8) script,
        sed(1) -r flag (equivalent to -E) added,
        db(3) style database of /etc/services added,
        rc.d/ip6fw deprecated and integrated into rc.d/ipfw,
        rc.c/tmp now uses a unique dirname for /tmp/.diskless,
        rc.d/ubthidhci added,
        ACPI-CA 20100304,
        ISC BIND 9.6.2-P1,
        netcat 4.7,
        OpenSSH 5.4p1, and
        tzdata2010i.

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

13 years agoMFC r209892:
weongyo [Thu, 22 Jul 2010 19:22:32 +0000 (19:22 +0000)]
MFC r209892:
  Fixes a page fault in bwi_pci_probe() because the array isn't
  terminated with NULL.

  PR:           kern/148473
  Submitted by: Grzegorz Dabrowski <grzegorz.dabrowski at gmail dot com>

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

13 years agoMFC: r210248
jkim [Thu, 22 Jul 2010 17:02:11 +0000 (17:02 +0000)]
MFC: r210248

Fix two long-standing line wrapping bugs in VGA renderer for pixel mode.
Font size may be smaller than 16 and logical scan line may be larger than
the displayed scan line.

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

13 years agoMFC 209599, 209960:
ken [Thu, 22 Jul 2010 15:38:36 +0000 (15:38 +0000)]
MFC 209599, 209960:

r209960 | marius

  - Make the maxsize parameter of the data buffer DMA tag match maxio, which
    was missed in r209599.
    Reported and tested by: Michael Moll
  - Declare mpt_dma_buf_alloc() static just like mpt_dma_buf_free(), both are
    used in mpt.c only.

  Reviewed by:    ken
  MFC after:      r209599

r209599 | ken

  Change the mpt driver to allow larger I/O sizes.

  The mpt driver previously didn't report a 'maxio' size to CAM, and so the
  da(4) driver limited I/O sizes to DFLTPHYS (64K) by default.  The number
  of scatter gather segments allowed, as reported to busdma, was
  (128K / PAGE_SIZE) + 1, or 33 on architectures with 4K pages.

  Change things around so that we wait until we've determined how many
  segments the adapter can support before creating the busdma tag used for
  buffers, so we can potentially support more S/G segments and therefore
  larger I/O sizes.

  Also, fix some things that were broken about the module unload path.  It
  still gets hung up inside CAM, though.

  mpt.c: Move some busdma initialization calls in here, and call
them just after we've gotten the IOCFacts, and know how
many S/G segments this adapter can support.

  mpt.h: Get rid of MPT_MAXPHYS, it is no longer used.

Add max_cam_seg_cnt, which is used to report our maximum
I/O size up to CAM.

  mpt_cam.c: Use max_cam_seg_cnt to report our maximum I/O size to CAM.

Fix the locking in mpt_cam_detach().

  mpt_pci.c: Pull some busdma initialization and teardown out and put
it in mpt.c.  We now delay it until we know many scatter
gather segments the adapter can support, and therefore
how to setup our busdma tags.

  mpt_raid.c: Make sure we wake up the right wait channel to get the
raid thread to wake up when we're trying to shut it down.

  Reviewed by: gibbs, mjacob
  MFC after: 2 weeks

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

13 years agoMFC r208684:
mm [Thu, 22 Jul 2010 14:52:51 +0000 (14:52 +0000)]
MFC r208684:

Allow to use 'jailed' property again.

Reported by: Eugene Mitrofanov <eugene@imedia.ru>
Approved by: delphij (mentor)

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

13 years agoNew relnotes item:
hrs [Thu, 22 Jul 2010 05:53:12 +0000 (05:53 +0000)]
New relnotes item:
        syscons(4) history handling improved,
        X86BIOS added on i386/amd64,
        loader(8) U-Boot storage support [powerpc],
        smu(4) thermal management and monitoring [powerpc],
        tnt4882(4) now supports TNT5004,
        acpi_video(4) LCD brightness control notify handler support,
        acpi_sony(4) now supports brightness, wired LAN power, bass gain,
        ath(4) supports AR9285,
        bge(4) ASF heartbeat sending fixed,
        vlan(4) IFCAP_VLAN_HWTSO,
        ciss(4) livelock fixed,
        find(1) -newerXB fixed,
        procstat(1) -i/-j added, and
        tzdata2010e.

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

13 years agoMFC r210089:
emaste [Thu, 22 Jul 2010 01:23:39 +0000 (01:23 +0000)]
MFC r210089:

  Add -p option to have pom(6) print just the percentage, without extra
  text.

PR:           bin/51070
Submitted by: Matt Koivisto mkoivisto sandvine com

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

13 years agoDocument two possible errata.
hrs [Thu, 22 Jul 2010 01:14:33 +0000 (01:14 +0000)]
Document two possible errata.

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

13 years agoNew release notes:
hrs [Thu, 22 Jul 2010 01:01:16 +0000 (01:01 +0000)]
New release notes:
        ddb(4) show vnetrcrs,
        sched_4bsd race fix,
        pfil(9) virtualization,
        ahci(4) Marvell 88SE912x support,
        ahci(4) FBS support in PM,
        ata(4) PUIS support,
        cam(3) kern.cam.boot_delay, error recovery improvement,
        gmultipath(8) destroy subcommand added,
        isp(4) improved,
        siis(4) Max Read Request Size increased,
        nfsiod(8) race fixed,
        ffs(7) inode number is now unsigned,
        cp(1) -x added,
        fsck_ffs(8) UFS1 last cylinder group issue fixed,
        ifconfig(8) description support added,
        netstat(1) -q option added,
        restore(8) -P shot read issue fixed,
        rtsold(8) -a improved,
        strsignal(3) thread-safe,
        sysctl(8) -i added,
        rc.d/rtsold added,
        firewall_coscripts in rc.conf added, and
        ISC BIND 9.6.1-P3.

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

13 years agoFix missing words.
hrs [Wed, 21 Jul 2010 20:38:45 +0000 (20:38 +0000)]
Fix missing words.

Spotted by: pluknet at gmail.com

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

13 years agoNew relnotes item:
hrs [Wed, 21 Jul 2010 20:32:22 +0000 (20:32 +0000)]
New relnotes item:
        DEADLKRES added,
        tty TIOCSTI fix,
        sched_4bsd timestamp fix,
        vimage source address selection knob added,
        EFI loader -dev currdev command-line option [ia64],
        epic(4) [sparc64],
        Fire JBus to PCIe bridge [sparc64],
        agp(4) improved,
        snd_hda(4) AD1981HD support,
        snd_hda(4) multichannel playback support,
        iwn(4) updated,
        u3g(4) improved,
        uhso(4) and uhsoctl(1) added,
        pf(4) "sloppy" merged,
        ada(4) BIO_DELETE support,
        gstripe(8) default blocksize increased to 64k,
        NFS negnametimeo option added,
        ZFS NFSv4 ACL support,
        camcontrol identify -v added,
        NFSv4 ACL support: cp(1), find(1), getfacl(1), mv(1), setfacl(1),
        fetch(1) HTTP digest authentication support,
        netstat(1) ARP statistics added,
        newsyslog(8) PID handling changed and -P flag added,
        scandir(3) and alphasort(3) improved for POSIX.1-2008,
        obsolete POSIX.1-2008 XSI functions sighold(), sigignore(),
                sigpause(), sigrelse(), sigset() added for easy porting,
        traceroute(8) now works in a VIMAGE jail,
        usbconfig(8) -d to specify a ugen(4) device to be used,
        usbconfig(8) add_quirk/remove_quirk subcommand added,
        whois(1) -d removed and IPv6 handling added,
        ACPI-CA updated to 20100121,
        netcat updated to OpenBSD 4.6,
        sendmail updated to 8.14.4, and
        tzdata2010b.

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

13 years agoNew relnotes items:
hrs [Wed, 21 Jul 2010 18:27:32 +0000 (18:27 +0000)]
New relnotes items:
        devfs(5) default rule change for ptys,
        pselect(3) -> pselect(2),
        INCLUDE_CONFIG_FILE enabled by default,
        boot2 reimplemented for pc98,
        amdsbwd(4) added,
        ipmi(4) timer setting bug fixed,
        uftdi(4) zero length packet bug fixed,
        bge(4) TSO on BCM5755 supported,
        bge(4)/bce(4) DMA handling bug fixed,
        et(4) MSI and TX checksum offloading of IPv4/TCP/UDP added,
        mxge(4) updated to 1.4.48b,
        ste(4) improved,
        vge(4) improved,
        ipfw(4) IPv6 support of keep-alive rule fixed,
        proxy arp over P2P link fixed,
        vlan(4) now in GENERIC,
        vlan(4) now handles parent IF renaming,
        fdc(4) kmod unload issue fixed,
        geom provider now reports optimal block size to the upper layer,
        graid3(8) panic fixed,
        vfs.vlru_allow_cache_src added,
        zfs(8) bugs fixed,
        diskinfo(8) stripe size and offset reporting,
        gcore(1) improved,
        pwait(1) added,
        MADV_PROTECT for sshd, cron, inetd, syslogd,
        zfs(8) receive -u added,
        service(8) added,
        rc.conf(5) now supports vlans_IF for vlan(4) configuration,
        awk 26 November 2009 release,
        tzdata2009u, and
        filename of release ISO image changed.

An entry for IPV6_V6ONLY sockopt in Liunx is removed because
this was not a visible change.

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

13 years agoMFC r210061:
bcr [Wed, 21 Jul 2010 17:16:12 +0000 (17:16 +0000)]
MFC r210061:

Update some release version numbers. The patch is based on the one
from the PR, but the version numbers reflect the newer ones from
http://security.freebsd.org/#sup

PR:             docs/145227
Submitted by:   Glen Barber (glen dot j dot barber at gmail dot com)
Reviewed by:    cperciva
Mentored by:    jkois

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

13 years agoMFC r209772:
bcr [Wed, 21 Jul 2010 17:11:26 +0000 (17:11 +0000)]
MFC r209772:

Fix an error in the EXAMPLES section of getopt(1), which is based on
the same fix present in NetBSD.

Note: the getopt man page contains more antique information like this.
An overhaul of the man page and/or sync with NetBSD would be the right
thing to do. But since this is out of the scope of the PR, I'll leave
it as it is for now.

PR:             docs/133118
Submitted by:   Oleg A. Mamontov (oleg at mamontov dot net)
Discussed with: jilles@

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

13 years agoFix missing words.
hrs [Wed, 21 Jul 2010 11:01:40 +0000 (11:01 +0000)]
Fix missing words.

Spotted by: mav

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

13 years agoIPV6_V6ONLY is unconditionally reset for Linux IPv6 sockets in Linux
hrs [Wed, 21 Jul 2010 10:57:55 +0000 (10:57 +0000)]
IPV6_V6ONLY is unconditionally reset for Linux IPv6 sockets in Linux
emulation environment.

Spotted by: ume

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

13 years agoAdd relnotes item for 8.1R (first round):
hrs [Wed, 21 Jul 2010 10:36:27 +0000 (10:36 +0000)]
Add relnotes item for 8.1R (first round):
        ddb(4) show mount improved,
        fcntl(2) F_READAHEAD and F_RDAHEAD added,
        lindev(4) added,
        more dtrace probes,
        SMP support in PowerPC G5,
        ULE %CPU fix,
        VIMAGE + SCTP build fix,
        vfs.root.mountfrom space-separated list support added,
        loader(8) memory range selection improved,
        zfsloader added,
        zfsboot and gptboot added,
        adb(4) supports taps on ADB touchpad,
        apt(4) added,
        uart(4) NetMos NM9865 support added,
        bge(4) 5761, 5784, 57780 support added,
        cxgb(4) updated to T3 firmware 7.8.0,
        msk(4) 88E804288E8057 and DGE-560SX support added,
        re(4) unnecessary reinitialization eliminated,
        tsec(4) now supports ALTQ,
        urtw(4) now supports RTL8187B,
        net.inet.ipcomp.ipcomp_enable=1 by default,
        IPV6_V6ONLY by default for IPv6 sockets in Linux emulation,
        gmirror(8) priority change support,
        gmirror(8) "load" balancing algorithm improved and now used as default,
        "option ATA_CAM" added,
        ata(4) fix for interrupt storms/command timeouts added,
        ata(4) umass support removed,
        ahd(4) error counter improved,
        cam(3) SATA/PATA support improved,
        bsnmpd(1) high CPU load issue fixed,
        bzip2(1) multi-session bzip2 file handling fixed,
        ee(1) crach fixed,
        factor(6) performance issue fixed,
        fetch(1) NO_PROXY handling fixed,
        ifconfig(8) now supports NDP flag handling,
        ntpd(8) no longer attempts to bind IPv6 anycast addresses,
        unifdef(1) updated to 1.188,
        ENOTCAPABLE new errno,
        rc.d/static_arp added, and
        ISC BIND 9.6.1-P2.

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

13 years agoMFC r209388:
ae [Wed, 21 Jul 2010 08:48:45 +0000 (08:48 +0000)]
MFC r209388:
  Remove G_TYPE_ASCLBA type and replace it with G_TYPE_STRING in gpart.
  Move code that converts params from humanized numbers to sectors count
  to subr.c and adjust comment.
  Add post-processing for "size" and "start offset" params in gpart,
  now they are properly converted to sectors count with known sector size
  that can be greater that 512 bytes.
  Also replace "unsigned long long" type to "off_t" for unify code since
  it used for medium size in libgeom(3) and DIOCGMEDIASIZE ioctl.

  PR: bin/146277

MFC r209392:
  Check for overflow before it occurs. Also add check for
  negative numbers.

  Suggested by: ache

Approved by: mav (mentor)

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

13 years agoMFC: r209189
jkim [Tue, 20 Jul 2010 20:27:34 +0000 (20:27 +0000)]
MFC: r209189

Fix typos that broke duration calculations on protection frames.

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

13 years agoMFC: r209957, r210003, r210005
jkim [Tue, 20 Jul 2010 20:15:32 +0000 (20:15 +0000)]
MFC: r209957, r210003, r210005

- Move i386-inherited logic of building ACPI headers for acpi_wakeup.c into
better places and remove intermediate makefile and shell scripts.  This
makes parallel kernel build little bit safer for amd64.
- Make SMP code path in acpi.c conditional at run-time.
- Define SMP unconditionally for amd64 and remove opt_global.h from SRCS in
sys/modules/acpi/acpi/Makefile.  Note it is done just for correctness sake
because we do not build, ship, or support acpi.ko on amd64.

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

13 years agoMFC: r209965, r209966, r210129, r210137, r210155, r210157
jkim [Tue, 20 Jul 2010 19:38:38 +0000 (19:38 +0000)]
MFC: r209965, r209966, r210129, r210137, r210155, r210157

- According to ACPICA User Guide and Programmer Reference, the read data
must be zero extended to fill the 32-bit or 64-bit return value even if
the bit width of the port or location is less than 32 or 64.
- Use pmap_mapdev()/pmap_unmapdev() to map device memory instead of using
AcpiOsMapMemory()/AcpiOsUnmapMemory() (-> pmap_mapbios()/pmap_unmapbios())
for AcpiOsReadMemory() and AcpiOsWriteMemory().  Although they do not sound
too obvious, these functions are exclusively used to access memory mapped
IO in ACPICA.
- Remove 64-bit access from AcpiOsReadMemory() and AcpiOsWriteMemory().
These functions do not support 64-bit access.  Likewise, return error when
64-bit access is requested for PCI configuration space.
- Simplify AcpiOsReadPort() and AcpiOsWritePort() with iodev_read_*() and
iodev_write_*().  This removes unnecessary uses of temporary macros as well.
There is no functional change after this (verified with md5(1) on amd64).

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