]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r210783. Fix typo
emax [Fri, 6 Aug 2010 20:18:27 +0000 (20:18 +0000)]
MFC r210783. Fix typo

PR: kern/140590

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

13 years agoMFC r209058:
brucec [Fri, 6 Aug 2010 18:55:49 +0000 (18:55 +0000)]
MFC r209058:

sctp_recvmsg returns the number of bytes received, not sent.

Approved by: rrs (mentor)

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

13 years agoMFC r210350:
bz [Fri, 6 Aug 2010 11:58:27 +0000 (11:58 +0000)]
MFC r210350:

  Since r186119 IP6 input counters for octets and packets were not
  working anymore.  In addition more checks and operations were missing.

  In case lla_lookup results in a match, get the ifaddr to update the
  statistics counters, and check that the address is neither tentative,
  duplicate or otherwise invalid before accepting the packet.  If ok,
  record the address information in the mbuf.  [ as is done in case
  lla_lookup does not return a result and we go through the FIB ].

  Reported by:  remko
  Tested by:    remko

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

13 years agoMFC r210703:
bz [Fri, 6 Aug 2010 11:49:52 +0000 (11:49 +0000)]
MFC r210703:

  Document the mandatory argument to the arptimer() and
  nd6_llinfo_timer() functions with a KASSERT().
  Note: there is no need to return after panic.

  In the legacy IP case, only assign the arg after the check,
  in the IPv6 case, remove the extra checks for the table and
  interface as they have to be there unless we freed and forgot
  to cancel the timer.  It doesn't matter anyway as we would
  panic on the NULL pointer deref immediately and the bug is
  elsewhere.
  This unifies the code of both address families to some extend.

  Reviewed by:  rwatson

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

13 years agoMFC r210641: Fix a couple of typos.
uqs [Fri, 6 Aug 2010 09:08:18 +0000 (09:08 +0000)]
MFC r210641: Fix a couple of typos.

PR: docs/148891
Submitted by: olgeni

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

13 years agoMFC r210637: Fix typo in pom(6) manpage
uqs [Fri, 6 Aug 2010 08:59:54 +0000 (08:59 +0000)]
MFC r210637: Fix typo in pom(6) manpage

PR: docs/148825
Submitted by: Anatoly Borodin

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

13 years agoMFC r209756:
brian [Fri, 6 Aug 2010 08:17:44 +0000 (08:17 +0000)]
MFC r209756:
    Log dhclient's reason for exiting and change the 10 second
    ignore-routing-messages dhclient-script timeout to be effective
    from script completion rather than from script start time.

    Ignore RTM_DELADDR and RTM_NEWADDR messages when the message
    contains no interface address (which should not happen) rather than
    exiting.

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

13 years agoMFC 210623:
jhb [Thu, 5 Aug 2010 22:01:14 +0000 (22:01 +0000)]
MFC 210623:
Mark the __curthread() functions as __pure2 and remove the volatile keyword
from the inline assembly.  This allows the compiler to cache invocations of
curthread since it's value does not change within a thread context.

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

13 years agoMFC 210577: The corrected error count field is dependent on CMCI, not TES.
jhb [Thu, 5 Aug 2010 21:01:15 +0000 (21:01 +0000)]
MFC 210577: The corrected error count field is dependent on CMCI, not TES.

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

13 years agoMFC 210505:
jhb [Thu, 5 Aug 2010 20:39:52 +0000 (20:39 +0000)]
MFC 210505:
- Change the warning about PCI-e links narrower than x8 to only apply to
  10G cards.  1G cards are x4 only.
- Use constants from pcireg.h for reading the current link width.
- Use pci_set_max_read_req() rather than implementing it by hand.

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

13 years agoMFC: 210621
gnn [Thu, 5 Aug 2010 20:02:59 +0000 (20:02 +0000)]
MFC: 210621

Make sure that we clear the correct bits when we turn off
a PMC.  It was possible that we could have turned a bit on but
never cleared it.

Extend the calls to rdmsr() to all necessary functions, not
just those which previously caused a panic.

Pointed out by: jhb@

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

13 years agoMFC 210604:
jhb [Thu, 5 Aug 2010 19:43:19 +0000 (19:43 +0000)]
MFC 210604:
Fix test for double-nul characters that terminate the string table at
the end of each SMBIOS/DMI structure.

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

13 years agoMFC 210136:
jhb [Thu, 5 Aug 2010 19:40:48 +0000 (19:40 +0000)]
MFC 210136:
Retire the NFS access cache timestamp structure.  It was used in VOP_OPEN()
to avoid sending multiple ACCESS/GETATTR RPCs during a single open()
between VOP_LOOKUP() and VOP_OPEN().  Now we always send the RPC in
VOP_LOOKUP() and not VOP_OPEN() in the cases that multiple RPCs could be
sent.

To preserve the ABI I have left the structure in place, but renamed it
to 'n_unused' and just removed the code that updates it.

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

13 years agoMFC 210135:
jhb [Thu, 5 Aug 2010 19:11:13 +0000 (19:11 +0000)]
MFC 210135:
Move attribute cache flushes from VOP_OPEN() to VOP_LOOKUP() to provide
more graceful recovery for stale filehandles and eliminate the need for
conditionally clearing the attribute cache in the !NMODIFIED case in
VOP_OPEN().

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

13 years agoMFC r209736:
trasz [Thu, 5 Aug 2010 17:08:23 +0000 (17:08 +0000)]
MFC r209736:

Fix acl_from_text(3) - and, therefore, setfacl(1) - for user and group
names names starting with a digit.

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

13 years agoMFC r210779:
bcr [Thu, 5 Aug 2010 10:45:27 +0000 (10:45 +0000)]
MFC r210779:

Fix two (very common) occurrences of s/sytem/system in comments.

Approved by:    mav
MFC after:      3 days

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

13 years agoMFC r210369:
kib [Thu, 5 Aug 2010 08:57:53 +0000 (08:57 +0000)]
MFC r210369:
When compat32 binary asks for the value of hw.machine_arch, report the
name of 32bit sibling architecture instead of the host one.

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

13 years agoMFC r210576:
tijl [Wed, 4 Aug 2010 10:24:37 +0000 (10:24 +0000)]
MFC r210576:

Add quirk for Apacer HT202 USB 2.0 Flash Drive.

PR: usb/107243
Approved by: kib (mentor)

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

13 years agoMFC r210358:
delphij [Wed, 4 Aug 2010 01:36:48 +0000 (01:36 +0000)]
MFC r210358:

Apply vendor version 1.20.00.17.

This version adds support for ARC1880; additionally this version fixed
an issue where all devices on a SAS port gets offlined when any device
failed on the port [1].

Many thanks to Areca for continuing to support FreeBSD.

PR: kern/148502 [1]
Submitted by: Ching-Lung Huang <ching2048 areca com tw>
Obtained from: Areca
Tested by: Rich Ercolani <rercola acm jhu edu> [1]

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

13 years agoMerge r210515,210516,210543 from head:
gavin [Tue, 3 Aug 2010 17:47:27 +0000 (17:47 +0000)]
Merge r210515,210516,210543 from head:

  Prevent ukbd(4) and uhid(4) from attaching when a WiSPY DBx Spectrum
  Analyzer is attached. [1]

  Prevent uhid(4) from attaching to the Gembird Silver Shield remote power
  plug. [2]

  Prevent uhid(4) from attaching to the Liebert PowerSure Personal XT UPS.
  [3]

PR: usb/134631 [1], usb/132785 [2], usb/129251 [3]
Submitted by: Jesse Kempf <jkempf davisvision.com> [1]
Submitted by: Dirk-Willem van Gulik <dirkx webweaving.org> [2]
Submitted by: Andrew D Wiles <adw+gnats avatastic.co.uk> [3]

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

13 years agoMFC r209196:
fabient [Tue, 3 Aug 2010 16:35:12 +0000 (16:35 +0000)]
MFC r209196:
Set the comment at the right place for PMC uncore classes.

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

13 years agoMFC r208861:
fabient [Tue, 3 Aug 2010 16:29:54 +0000 (16:29 +0000)]
MFC r208861:

Convert pm_runcount to int to correctly check for negative value.
Remove uncessary check for error.

Found with: Coverity Prevent(tm)

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

13 years agoMFC r208860:
fabient [Tue, 3 Aug 2010 16:26:09 +0000 (16:26 +0000)]
MFC r208860:

Fix memory leak on error.

Found with: Coverity Prevent(tm)

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

13 years agoMFC r208858:
fabient [Tue, 3 Aug 2010 16:21:49 +0000 (16:21 +0000)]
MFC r208858:

Fix warnings found by Coverity.

Found with:   Coverity Prevent(tm)

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

13 years agoMFC: 209512
gnn [Tue, 3 Aug 2010 15:06:31 +0000 (15:06 +0000)]
MFC: 209512

Make sure that all the exposed counters and variables are actually
being updated.

Pointed out by: jfv

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

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