]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
11 years agoMFC r247854:
np [Wed, 6 Mar 2013 18:45:11 +0000 (18:45 +0000)]
MFC r247854:
Fix compile warning by including ctype.h for isdigit().

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

11 years agoMFC r246532: zfs_vget, zfs_fhtovp: properly handle the z_shares_dir object
avg [Wed, 6 Mar 2013 11:11:18 +0000 (11:11 +0000)]
MFC r246532: zfs_vget, zfs_fhtovp: properly handle the z_shares_dir object

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

11 years agoMFC r246245,246324: ng_ether: track interface renaming
avg [Wed, 6 Mar 2013 11:00:47 +0000 (11:00 +0000)]
MFC r246245,246324: ng_ether: track interface renaming

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

11 years agoMFC r246248: cpususpend_handler: mark AP as resumed only after fully
avg [Wed, 6 Mar 2013 09:33:16 +0000 (09:33 +0000)]
MFC r246248: cpususpend_handler: mark AP as resumed only after fully
setting up lapic

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

11 years agoMFC r246247: x86 suspend/resume: suspend pics and pseudo-pics in reverse order
avg [Wed, 6 Mar 2013 09:22:10 +0000 (09:22 +0000)]
MFC r246247: x86 suspend/resume: suspend pics and pseudo-pics in reverse order

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

11 years agoMFC r246246,246254: print compiler version in the kernel banner
avg [Wed, 6 Mar 2013 09:16:01 +0000 (09:16 +0000)]
MFC r246246,246254: print compiler version in the kernel banner

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

11 years agoMFC r247382:
yongari [Wed, 6 Mar 2013 08:04:44 +0000 (08:04 +0000)]
MFC r247382:
  RX checksum offloading on old Yukon controllers seem to cause more
  problems.  Disable RX checksum offloading on controllers that don't
  use new descriptor format but give chance to enable it with
  ifconfig(8).

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

11 years agoMFC r247281, r247345:
trociny [Wed, 6 Mar 2013 06:59:42 +0000 (06:59 +0000)]
MFC r247281, r247345:

r247281:

Add i/o error counters to hastd(8) and make hastctl(8) display
them.  This may be useful for detecting problems with HAST disks.

Discussed with and reviewed by: pjd

r247345:

Fix casting.

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

11 years agoMFC r247281:
trociny [Wed, 6 Mar 2013 06:59:10 +0000 (06:59 +0000)]
MFC r247281:

Add i/o error counters to hastd(8) and make hastctl(8) display
them.  This may be useful for detecting problems with HAST disks.

Discussed with and reviewed by: pjd

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

11 years agoMFC r247268:
gallatin [Tue, 5 Mar 2013 19:20:34 +0000 (19:20 +0000)]
MFC r247268:
 Several cleanups and fixes to mxge:

 - Remove vestigial null pointer tests after malloc(..., M_WAITOK).

 - Remove vestigal qualhack union

 - Use strlcpy() instead of the error-prone strncpy() when parsing
   EEPROM and copying strings

 - Check the MAC address in the EEPROM strings more strictly.

 - Expand the macro MXGE_NEXT_STRING() at its only user. Due to a typo,
   the macro was very confusing.

 - Remove unnecessary buffer limit check.  The buffer is double-NUL
   terminated per construction.

PR:             kern/176369
Submitted by:   Christoph Mallon <christoph.mallon gmx.de>

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

11 years agoMFC r247159
gallatin [Tue, 5 Mar 2013 17:46:12 +0000 (17:46 +0000)]
MFC r247159
  Improvements for newer mxge nics:

  - Some mxge nics may store the serial number in the SN2 field of the
    EEPROM.  These will also have an SN=0 field, so parse the SN2 field,
    and give it precedence.

  - Skip MXGEFW_CMD_UNALIGNED_TEST on mxge nics which do not require it.
    This saves roughly 10ms per port at device attach time.

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

11 years agoMFC r247396:
tijl [Tue, 5 Mar 2013 16:04:15 +0000 (16:04 +0000)]
MFC r247396:

Map libraries linked with -Ttext-segment=base_addr at base_addr.
Normal libraries have base address 0 and are unaffected by this change.

PR: 176216
Submitted by: Damjan Jovanovic <damjan.jov@gmail.com>
Reviewed by: kib

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

11 years agoMFC r247594:
delphij [Tue, 5 Mar 2013 06:43:54 +0000 (06:43 +0000)]
MFC r247594:

Fix a typo in mfi_stp_cmd() that would give wrong assignment.

Submitted by: Sascha Wildner <saw online de>
Obtained from: DragonFly rev 0dc98fff2206d7bb78ce5e07ac34d6954e4bd96a

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

11 years agoMFC r247443:
delphij [Tue, 5 Mar 2013 06:41:39 +0000 (06:41 +0000)]
MFC r247443:

Refresh vendor driver version which adds ARC-1224 support.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 <ching2048 areca com tw>

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

11 years agoMFC r246134 ...
ian [Mon, 4 Mar 2013 23:22:37 +0000 (23:22 +0000)]
MFC r246134 ...

Improve devd startup time, by tweaking some string handling routines that are
heavily used when parsing config files.  Mostly these changes avoid making
temporary copies of the strings, and avoid doing byte at a time append
operations, on the most-used code path.

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

11 years agoMFC ...
ian [Mon, 4 Mar 2013 23:15:25 +0000 (23:15 +0000)]
MFC ...

 r210609 - remove unused string
 r210610 - avoid copy ctors by using prefix operators
 r213646 - allow spacey things (liberal whitespace parsing)
 r236388 - libc++ compatibility (add :: prefix to bind() call)
 r240823 - use O_CLOEXEC for open instead of separate fcntl(2) call
 r243932 - prefer init expression to assignment in ctor

 r209583 ...

 Expand system into my_system, and add the necessary tidyness that we
 need.  Close the pidfile.  Then close all descriptors >= 3 to avoid
 information leakage to children.

 This solves the problem of not being able to restart devd when you
 have, for example, a dhclient forked to configure your network...

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

11 years agoMFC r209583 ...
ian [Mon, 4 Mar 2013 22:04:14 +0000 (22:04 +0000)]
MFC r209583 ...

Expand system into my_system, and add the necessary tidyness that we
need.  Close the pidfile.  Then close all descriptors >= 3 to avoid
information leakage to children.

This solves the problem of not being able to restart devd when you
have, for example, a dhclient forked to configure your network...

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

11 years agoMFC 205541,205592:
jhb [Mon, 4 Mar 2013 18:28:24 +0000 (18:28 +0000)]
MFC 205541,205592:
Implement /proc/filesystems.

PR: kern/142595

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

11 years agoMFC r246121 r246361 ...
ian [Mon, 4 Mar 2013 17:39:17 +0000 (17:39 +0000)]
MFC r246121 r246361 ...

Fix a descriptor leak in devd.  Clients reading /var/run/devd.pipe can close
their socket connection any time, and devd only notices that when it gets an
error trying to write an event to the client.  On a system with no device
change activity, clients could connect and disappear repeatedly without devd
noticing, leading to an ever-growing list of open socket descriptors in devd.

Now devd uses poll(2) looking for POLLHUP on all existing clients every time
a new client connection is established, and also periodically (once a minute)
to proactively find zombie clients and reap the socket descriptors.  It also
now has a connection limit, configurable with a new -l <num> command line arg.
When the maximum number of connections is reached it stops accepting new
connections until some current clients drop off.

Bump .Dd in for content change (r246361).

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

11 years agoMFC 199757:
jhb [Mon, 4 Mar 2013 17:35:10 +0000 (17:35 +0000)]
MFC 199757:
- For 350 chips, don't set various INTR bits in TX control word; turning INTR
  bits on seems to confuse hardware TX engine.
- For 350 chips, set TX desc's buffer physical address before turning on the
  TX desc valid bit.

PR: kern/85886

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

11 years agoMFC r247780:
dteske [Mon, 4 Mar 2013 11:43:20 +0000 (11:43 +0000)]
MFC r247780:

Fix VERBOSE reporting on results when removing _PATH_LOCALTIME for UTC option.

PR: bin/164976
Submitted by: dteske

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

11 years agoMFC r226775:
hrs [Mon, 4 Mar 2013 05:46:54 +0000 (05:46 +0000)]
MFC r226775:

- Add support for a "!" character in regex matching in devd(8).  It inverts
  the logic (true/false) of the matching.

- Add "!usbus[0-9]+" to IFNET ATTACH notification handler in the default
  devd.conf to prevent rc.d/netif from running when usbus[0-9]+ is attached.

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

11 years agoMFC r230520:
dteske [Mon, 4 Mar 2013 01:47:37 +0000 (01:47 +0000)]
MFC r230520:

Clean up reinstall option and remove duplicate code

- Move the reinstall logic to be before menus are initialised
  (menus are not needed when reinstalling a zonefile).

- Remove unnecessary re-initialization of path_db.

- Update variable name and error message because we now use the
  zone name relative to /usr/share/zoneinfo, not the full path.

pr: bin/164041
Submitted by: dteske

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

11 years agoMFC r230296:
dteske [Mon, 4 Mar 2013 01:35:56 +0000 (01:35 +0000)]
MFC r230296:

Don't write /var/db/zoneinfo when zone is not actually changed.

If the specified zone file does not exist or the -n flag is specified,
do not update /var/db/zoneinfo.

PR: bin/164039
Submitted by: dteske

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

11 years agoMFC r230299:
dteske [Mon, 4 Mar 2013 01:32:24 +0000 (01:32 +0000)]
MFC r230299:

Fix #ifdef VERBOSE for UTC case

Update verbose output to match what actually happens when selecting
the UTC option, and when the -n option is used.

Patch updated slightly for new libdialog.

PR: bin/164042
Submitted by: dteske

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

11 years agoMFC only the whitespace changes* from r227934: Port to new libdialog.
dteske [Mon, 4 Mar 2013 01:22:07 +0000 (01:22 +0000)]
MFC only the whitespace changes* from r227934: Port to new libdialog.
* In other words, no changes to dialog; whitespace changes only.

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

11 years agoMFC r230005:
dteske [Mon, 4 Mar 2013 01:14:06 +0000 (01:14 +0000)]
MFC r230005:

Use a reasonable-sized buffer when formatting error messages about
installing zoneinfo.  While we're in the vicinity, add some missing
error checking to eliminate an unhelpful error message when unlink()
fails.

/me is embarrassed by the quality of his 16-year-old code.
The whole thing is awful and could stand a complete rewrite.

PR: 164038
Submitted by: Devin Teske (but implemented differently)

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

11 years agoMFC r246371: sh: Do not test for digit_contig in mksyntax.
jilles [Sun, 3 Mar 2013 22:33:13 +0000 (22:33 +0000)]
MFC r246371: sh: Do not test for digit_contig in mksyntax.

ISO/IEC 9899:1999 (E) 5.2.1p3 guarantees that the values of the characters
0123456789 are contiguous.

The generated syntax.c and syntax.h remain the same.

Submitted by: Christoph Mallon

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

11 years agoMerge
melifaro [Sun, 3 Mar 2013 21:48:40 +0000 (21:48 +0000)]
Merge
* r233937 - Improve BPF locking model
* r233938 - Improve performace for writer-only BPF users
* r233946 - Fix build
* r235744 - Fix (new) panic on attaching to non-existent interface
* r235745 - Fix old panic when BPF consumer attaches to destroying interface
* r235746 - Call bpf_jitter() before acquiring BPF global lock
* r235747 - Make most BPF ioctls() SMP-safe.
* r236231 - Fix BPF_JITTER code broken by r235746.
* r236261 - Save the previous filter right before we set new one.
* r236262 - Fix style(9) nits, reduce unnecessary type castings.
* r236559 - Fix panic introduced by r235745
* r236806 - Fix typo introduced in r236559.

r233937
  - Improve BPF locking model.

  Interface locks and descriptor locks are converted from mutex(9) to rwlock(9).
  This greately improves performance: in most common case we need to acquire 1
  reader lock instead of 2 mutexes.

  - Remove filter(descriptor) (reader) lock in bpf_mtap[2]
  This was suggested by glebius@. We protect filter by requesting interface
  writer lock on filter change.

  - Cover struct bpf_if under BPF_INTERNAL define. This permits including bpf.h
  without including rwlock stuff. However, this is is temporary solution,
  struct bpf_if should be made opaque for any external caller.

r233938
  - Improve performace for writer-only BPF users.

  Linux and Solaris (at least OpenSolaris) has PF_PACKET socket families to send
  raw ethernet frames. The only FreeBSD interface that can be used to send raw
  frames is BPF. As a result, many programs like cdpd, lldpd, various dhcp stuff
  uses BPF only to send data. This leads us to the situation when software like
  cdpd, being run on high-traffic-volume interface significantly reduces overall
  performance since we have to acquire additional locks for every packet.

  Here we add sysctl that changes BPF behavior in the following way:
  If program came and opens BPF socket without explicitly specifyin read filter
  we assume it to be write-only and add it to special writer-only per-interface
  list. This makes bpf_peers_present() return 0, so no additional overhead is
  introduced. After filter is supplied, descriptor is added to original
  per-interface list permitting packets to be captured.

  Unfortunately, pcap_open_live() sets catch-all filter itself for the purpose
  of setting snap length.

  Fortunately, most programs explicitly sets (event catch-all) filter after
  that. tcpdump(1) is a good example.

  So a bit hackis approach is taken: we upgrade description only after second
  BIOCSETF is received.

  Sysctl is named net.bpf.optimize_writers and is turned off by default.

  - While here, document all sysctl variables in bpf.4

r233946
  Fix build broken by r233938.

r235744
  Fix panic on attaching to non-existent interface
(introduced by r233937, pointed by hrs@)
  Fix panic on tcpdump being attached to interface being removed
(introduced by r233937, pointed by hrs@ and adrian@)
  Protect most of bpf_setf() by BPF global lock

  Add several forgotten assertions (thanks to adrian@)

  Document current locking model inside bpf.c
  Document EVENTHANDLER(9) usage inside BPF.

r235745
  Fix old panic when BPF consumer attaches to destroying interface.
  'flags' field is added to the end of bpf_if structure. Currently the only
  flag is BPFIF_FLAG_DYING which is set on bpf detach and checked by bpf_attachd()
  Problem can be easily triggered on SMP stable/[89] by the following command
  (sort of):
  'while true; do ifconfig vlan222 create vlan 222 vlandev em0 up ; \
    tcpdump -pi vlan222 & ; ifconfig vlan222 destroy ; done'

  Fix possible use-after-free when BPF detaches itself from interface, freeing
  bpf_bif memory, while interface is still UP and there can be routes via this
  interface. Freeing is now delayed till ifnet_departure_event is received via
  eventhandler(9) api.

  Convert bpfd rwlock back to mutex due lack of performance gain
  (currently checking if packet matches filter is done without holding bpfd
   lock and we have to acquire write lock if packet matches)

r235746
  Call bpf_jitter() before acquiring BPF global lock due to malloc() being
  used inside bpf_jitter.

  Eliminate bpf_buffer_alloc() and allocate BPF buffers on descriptor creation
   and BIOCSBLEN ioctl. This permits us not to allocate buffers inside
   bpf_attachd() which is protected by global lock.

r235747
  Make most BPF ioctls() SMP-safe.

r236559
  Fix panic introduced by r235745. Panic occurs after first packet traverse
  renamed interface.
  Add several comments on locking

r236231
  Fix BPF_JITTER code broken by r235746.

r236261
  - Save the previous filter right before we set new one.
  - Reduce duplicate code and make it little easier to read.

r236262
  Fix style(9) nits, reduce unnecessary type castings, etc., for bpf_setf().

r236806
  Fix typo introduced in r236559.

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

11 years agoMFC r246978:
markj [Sun, 3 Mar 2013 19:02:11 +0000 (19:02 +0000)]
MFC r246978:
  - Make sure to set an error code when trying to obtain a data descriptor for
    a section of type SHT_NULL.
  - Update the man page to reflect the fact that elf_getdata() and
    elf_rawdata() may return with an error of ELF_E_SECTION.

Approved by: rstone (co-mentor)

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

11 years agoMFC r232297: Grammar: tzsetup now has more than one option.
dteske [Sun, 3 Mar 2013 16:16:10 +0000 (16:16 +0000)]
MFC r232297: Grammar: tzsetup now has more than one option.

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

11 years agoMFS 9->8 r244688:
dteske [Sun, 3 Mar 2013 09:26:58 +0000 (09:26 +0000)]
MFS 9->8 r244688:
Fix error message to be accurate for when ProgName is not "sysinstall" (oops?)

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

11 years agoMFS 9->8 r215314:
dteske [Sun, 3 Mar 2013 09:23:52 +0000 (09:23 +0000)]
MFS 9->8 r215314:
ipv6_enable has been obsoleted in favour of ipv6_activate_all_interfaces.

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

11 years agoMFS 9->8 r209481:
dteske [Sun, 3 Mar 2013 09:21:18 +0000 (09:21 +0000)]
MFS 9->8 r209481:

Update the man page to reflect the changes to the netDev configuration
variable.

Approved by: cperciva

MFS 9->8 r209446:

Remove unnecessarily inflammatory commentary.

Approved by: cperciva

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

11 years agoMFS 9->8 r247267:
dteske [Sun, 3 Mar 2013 09:13:18 +0000 (09:13 +0000)]
MFS 9->8 r247267:

Oops, r55392 (over 13 years ago) forgot to classify the new HTTP Proxy for the
options dialog (causing "<unknown>" to be displayed for the HTTP media type).

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

11 years agoMFS 9->8 r209782:
dteske [Sun, 3 Mar 2013 09:09:59 +0000 (09:09 +0000)]
MFS 9->8 r209782:

Add support for remote logging to syslogd via an install.cfg variable.

Approved by: cperciva

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

11 years agoMFS 9->8 the sysinstall portion of r223492:
dteske [Sun, 3 Mar 2013 08:56:10 +0000 (08:56 +0000)]
MFS 9->8 the sysinstall portion of r223492:
Remove duplicated header files

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

11 years agoMFS 9->8 r217491 with slight modification:
dteske [Sun, 3 Mar 2013 08:51:56 +0000 (08:51 +0000)]
MFS 9->8 r217491 with slight modification:

Reduce the amount of text users need to read on each screen. Also try and
make it more relevant to modern systems: for example users will be
familiar with the MBR but possibly less so with MS-DOS.

After installation has finished don't return to the main menu but exit.

Slight modification:

Ignore the last sentence (need feedback from brucec before carrying that back
to 8 where sysinstall is still the main installer).

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

11 years agoMFS 9->8 r209778:
dteske [Sun, 3 Mar 2013 08:21:17 +0000 (08:21 +0000)]
MFS 9->8 r209778:
Add further documentation for netDev in install.cfg to reflect the new
usage.

Approved by: cperciva

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

11 years agoMFS 9->8 r215224:
dteske [Sun, 3 Mar 2013 08:17:17 +0000 (08:17 +0000)]
MFS 9->8 r215224:
We still support PLIP devices, so mention them in addition to ethernet.

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

11 years agoMFS 9->8 r244676:
dteske [Sun, 3 Mar 2013 08:04:11 +0000 (08:04 +0000)]
MFS 9->8 r244676:
Fix another typo while we're here.

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

11 years agoMFS 9->8 r247241:
dteske [Sun, 3 Mar 2013 08:02:07 +0000 (08:02 +0000)]
MFS 9->8 r247241:

Oops, r186202 (over 4 years ago) forgot to remove Tape from the F1 Help file.
Direct commit to stable/9 (no sysinstall in head).

MFS 9->8 r247242:

Oops, r215291 (over 2 years ago) forgot to remove mention of "medium" from the
F1 Help file.  Direct commit to stable/9 (no sysinstall in head).

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

11 years agoMFS 9->8 r245438:
dteske [Sun, 3 Mar 2013 07:54:28 +0000 (07:54 +0000)]
MFS 9->8 r245438:
Oops, r186202 (4 years ago) forgot to remove Tape from the F1 Help file.

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

11 years agoMFS 9->8 r244573:
dteske [Sun, 3 Mar 2013 07:50:33 +0000 (07:50 +0000)]
MFS 9->8 r244573:
Fix typo. (fixing them as I find them)

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

11 years agoMFS 9->8 r234737:
dteske [Sun, 3 Mar 2013 07:45:40 +0000 (07:45 +0000)]
MFS 9->8 r234737:

Fix several 'format string is not a literal' warnings in sysinstall.

Since sysinstall does not exist anymore in head, this is a direct
commit.

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

11 years agoMFC r246921:
kib [Sun, 3 Mar 2013 07:27:15 +0000 (07:27 +0000)]
MFC r246921:
Do not update the fsinfo block on each update of any fat block.
Postpone the flush to VFS_SYNC().

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

11 years agoMFC r234831, r234833, r237263**, r237436*, r237439, r237463, r237512,
np [Sat, 2 Mar 2013 21:59:07 +0000 (21:59 +0000)]
MFC r234831, r234833, r237263**, r237436*, r237439, r237463, r237512,
r237587, r237799, r237819, r237831, r238028, r238054, r238313, r239102,
r239258, r239259, r239264*, r239266, r239336, r239338*, r239339,
r239341, r239344, r240443, r240451, r240452*, r240453, r241397, r241398,
r241399, r241401, r241409, r241416, r241493, r244551, r244580, r245243,
r245274*, r245276*, r245434*, r245517, r245518, r245520, r245567,
r245933, r245935, r245936, r246093, r246385, r246575, r247062, r247122,
r247289, r247291, r247347, r247355.

This brings stable/8's cxgbe(4) up to date with what's in head right
now.  One major difference is the missing t4_tom (TCP Offload Module);
there are no plans to backport it to 8.

Build tested with make universe (with -DMAKE_JUST_KERNELS)

*  partial
** partial manual backport, not really an MFC

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

11 years agoMFC: r246689, r246696
marius [Sat, 2 Mar 2013 17:39:20 +0000 (17:39 +0000)]
MFC: r246689, r246696

Make SYSCTL_{LONG,QUAD,ULONG,UQUAD}(9) work as advertised and also handle
constant values.

Reviewed by: kib

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

11 years agoMFC: r246300
marius [Sat, 2 Mar 2013 17:36:31 +0000 (17:36 +0000)]
MFC: r246300

- Make pci_ns8250_ids[] const.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

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

11 years agoMFC: r246257
marius [Sat, 2 Mar 2013 17:32:20 +0000 (17:32 +0000)]
MFC: r246257

Improve r238673 (MFC'ed to stable/8 in r239495) to additionally allow
for odd-aligned buffers as passed in by smartd of smartmontools.
While at it, hint the compiler that 32-bit PIO is the most likely
case (idea from Linux) and use bus_{read,write}_stream_2(9) instead
of bus_{read,write}_multi_stream_2(9) for single count reads/writes.

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

11 years agoMFC: r235857
marius [Sat, 2 Mar 2013 17:25:45 +0000 (17:25 +0000)]
MFC: r235857

mdoc: Only use macros inside a reference block.

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

11 years agoMFC: r233648 (partial)
marius [Sat, 2 Mar 2013 17:24:29 +0000 (17:24 +0000)]
MFC: r233648 (partial)

Remove trailing whitespace per mdoc lint warning.

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

11 years agoMFC: r231973
marius [Sat, 2 Mar 2013 17:21:44 +0000 (17:21 +0000)]
MFC: r231973

Avoid error log for transfer stop w/o error code.

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

11 years agoMFC: r244686
marius [Sat, 2 Mar 2013 17:18:38 +0000 (17:18 +0000)]
MFC: r244686

Use correct size in snprintf.
Remove unused buffer.

PR: 174631
Submitted by: Henning Petersen

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

11 years agoMFC: r246106, r246139
marius [Sat, 2 Mar 2013 17:14:53 +0000 (17:14 +0000)]
MFC: r246106, r246139

Mark tftp_log() as __printflike() and deal with the fallout.

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

11 years agoMFC: r241720 (partial)
marius [Sat, 2 Mar 2013 16:39:00 +0000 (16:39 +0000)]
MFC: r241720 (partial)

Fix warnings found by -Wmising-variable-declarations.

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

11 years agoMFC: r235643
marius [Sat, 2 Mar 2013 16:33:39 +0000 (16:33 +0000)]
MFC: r235643

Properly use LDADD & DPADD to link against libwrap.

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

11 years agoMFC r247422:
delphij [Sat, 2 Mar 2013 01:04:02 +0000 (01:04 +0000)]
MFC r247422:

Add a reminder that the user should update boot block if they are upgrading
their existing system and use LZ4 compression for ZFS.

Suggested by: mm

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

11 years agoManually fix screwed-up mergeinfo.
des [Fri, 1 Mar 2013 21:35:53 +0000 (21:35 +0000)]
Manually fix screwed-up mergeinfo.

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

11 years agoMFC 246367:
jhb [Fri, 1 Mar 2013 19:40:02 +0000 (19:40 +0000)]
MFC 246367:
Install <dev/agp/agpreg.h> and <dev/pci/pcireg.h> as userland headers
in /usr/include.

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

11 years agoMFC 246129:
jhb [Fri, 1 Mar 2013 19:01:52 +0000 (19:01 +0000)]
MFC 246129:
Allow the address and ports to be separated by a colon or period rather
than a space to permit directly pasting the output of commands such as
netstat and sockstat on the command line.

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

11 years agoMFC 245849:
jhb [Fri, 1 Mar 2013 18:39:55 +0000 (18:39 +0000)]
MFC 245849:
Don't assume that all Linux TCP-level socket options are identical to
FreeBSD TCP-level socket options (only the first two are).  Instead,
using a mapping function and fail unsupported options as we do for other
socket option levels.

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

11 years agoMFC 246037:
jhb [Fri, 1 Mar 2013 17:10:52 +0000 (17:10 +0000)]
MFC 246037:
Mark 'ticks', 'time_second', and 'time_uptime' as volatile to prevent the
compiler from caching their values in tight loops.

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

11 years agoMFC 246035:
jhb [Fri, 1 Mar 2013 16:19:09 +0000 (16:19 +0000)]
MFC 246035:
- Compute the correct size to reallocate when doubling the size of the
  array of loaded objects to avoid a buffer overrun.
- Use reallocf() to avoid leaking memory if the realloc() fails.

PR: kern/175648

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

11 years agoMFC 245577,245640:
jhb [Fri, 1 Mar 2013 14:54:37 +0000 (14:54 +0000)]
MFC 245577,245640:
Don't attempt to use clflush on the local APIC register window.  Various
CPUs exhibit bad behavior if this is done (Intel Errata AAJ3, hangs on
Pentium-M, and trashing of the local APIC registers on a VIA C7).  The
local APIC is implicitly mapped UC already via MTRRs, so the clflush isn't
necessary anyway.

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

11 years agoMFH (r240278): document -quit
des [Fri, 1 Mar 2013 10:23:36 +0000 (10:23 +0000)]
MFH (r240278): document -quit

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

11 years agoMore misapplied mergeinfo.
des [Fri, 1 Mar 2013 09:50:45 +0000 (09:50 +0000)]
More misapplied mergeinfo.

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

11 years agoMFH (r238602): add -g (gigabyte) flag
des [Fri, 1 Mar 2013 09:40:02 +0000 (09:40 +0000)]
MFH (r238602): add -g (gigabyte) flag

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

11 years agoFix a few instances of broken mergeinfo
des [Fri, 1 Mar 2013 09:39:29 +0000 (09:39 +0000)]
Fix a few instances of broken mergeinfo

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

11 years agoMFC 245823,245824,246210
jhb [Fri, 1 Mar 2013 03:05:08 +0000 (03:05 +0000)]
MFC 245823,245824,246210
- Use decimal values for UDP, TCP, and UNIX domain socket options rather
  than hex to avoid implying that these constants should be treated as bit
  masks.
- Add placeholder constants to reserve a portion of the socket option
  name space for use by downstream vendors to add custom options.

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

11 years agoRegenerate
des [Fri, 1 Mar 2013 02:09:06 +0000 (02:09 +0000)]
Regenerate

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

11 years agoPull in OpenSSH 6.1 from head.
des [Fri, 1 Mar 2013 02:06:04 +0000 (02:06 +0000)]
Pull in OpenSSH 6.1 from head.

Although ECC-based algorithms are now supported, the order of preference
has been changed so that RSA and DSA are still the preferred algorithms.

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

11 years agoMFC 245610,245633,245635:
jhb [Fri, 1 Mar 2013 01:02:44 +0000 (01:02 +0000)]
MFC 245610,245633,245635:
Include the thread name along with the command name when displaying the
command name of a thread from a multi-threaded process that doesn't have
an available argument list (such as kernel processes) and threads display
is enabled via -H.

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

11 years agoMFC: libexpat 2.1.0.
delphij [Fri, 1 Mar 2013 00:58:44 +0000 (00:58 +0000)]
MFC: libexpat 2.1.0.

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

11 years agoMFC r247334:
delphij [Fri, 1 Mar 2013 00:46:41 +0000 (00:46 +0000)]
MFC r247334:

Correct a typo introduced in r153575, which gives inverted logic when
handling blocking semantics when seeding.

PR: kern/143298
Submitted by: James Juran <james juran baesystems com>
Reviewed by: markm

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

11 years agoMFC 245508,245566,245568,245611,245909:
jhb [Thu, 28 Feb 2013 21:58:07 +0000 (21:58 +0000)]
MFC 245508,245566,245568,245611,245909:
Various fixes to timestamps in NFS:
- Use the VA_UTIMES_NULL flag to detect when NULL was passed to utimes()
  instead of comparing the desired time against the current time as a
  heuristic.
- Remove unused nfs_curusec().
- Use vfs_timestamp() to set file timestamps rather than invoking
  getmicrotime() or getnanotime() directly in NFS.
- Use NFSD_MONOSEC (which maps to time_uptime) instead of the seconds
  portion of wall-time stamps to manage timeouts on events.
- Remove unused nd_starttime from the per-request structure in the new
  NFS server.
- Use nanotime() for the modification time on a delegation to get as
  precise a time as possible.
- Use time_second instead of extracting the second from a call to
  getmicrotime().

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

11 years agoMFC of the ixgbe driver including revisions:
jfv [Thu, 28 Feb 2013 21:55:57 +0000 (21:55 +0000)]
MFC of the ixgbe driver including revisions:

217556,219902,228276,229767,229939,230572,231796,232238,
234137,234229,235547,235964,236627,236729,238149,239940,
240155,240366,240968,241037,241616,241646,241856,241885,
242403,242421,243714,243716,243718,243721,243724,243725,
243728,243729,243733,243735,243736,243741,243833,243857,
244514,245952,246128,246482,247035,247056

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

11 years agoMFH (r240107,240111,240361): warn against using weak PRNGs
des [Thu, 28 Feb 2013 21:32:47 +0000 (21:32 +0000)]
MFH (r240107,240111,240361): warn against using weak PRNGs

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

11 years agoMFC 245238:
jhb [Thu, 28 Feb 2013 21:24:19 +0000 (21:24 +0000)]
MFC 245238:
Add an option to not drop options from the third retransmitted SYN.  If the
SYNs (or SYN/ACK replies) are dropped due to network congestion, then the
remote end of the connection may act as if options such as window scaling
are enabled but the local end will think they are not.  This can result in
very slow data transfers in the case of window scaling disagreements.

Note that the unlike HEAD the existing behavior is preserved by default,
but it can be disabled by setting the
net.inet.tcp.rexmit_drop_options sysctl to zero.

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

11 years agoMFC 245476:
jhb [Thu, 28 Feb 2013 19:01:04 +0000 (19:01 +0000)]
MFC 245476:
- More properly handle interrupted NFS requests on an interruptible mount
  by returning an error of EINTR rather than EACCES.
- While here, bring back some (but not all) of the NFS RPC statistics lost
  when krpc was committed.

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

11 years agoMFC 245471:
jhb [Thu, 28 Feb 2013 18:59:00 +0000 (18:59 +0000)]
MFC 245471:
Do not require a filter-only interrupt handler for puc ports that are not
serial devices (such as printer ports).  This allows ppc devices attached
to puc to correctly setup an interrupt handler and work.

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

11 years agoMFC 241748:
jhb [Thu, 28 Feb 2013 18:49:40 +0000 (18:49 +0000)]
MFC 241748:
When checking to see if a video output's _ADR matches an entry in the
parent adapter's _DOD list, only check the low 16 bits of both _ADR and
_DOD.  The language in the ACPI spec seems to indicate that the _ADR values
should exactly match the entries in _DOD.  However, I assume that the
masking added to _DOD values was added to work around some known busted
machines (the commit history doesn't indicate either way), and the ACPI
spec does require that the low 16 bits are unique for all video outputs,
so only checking the low 16 bits should be fine.

This fixes recognition of video outputs that use the new standardized
device ID scheme in ACPI 3.0 that set bit 31 such as certain Dell laptops.

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

11 years agoMFC 241730: Correct the order of the MFU and MRU labels.
jhb [Thu, 28 Feb 2013 18:24:14 +0000 (18:24 +0000)]
MFC 241730: Correct the order of the MFU and MRU labels.

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

11 years agoMFC 241027:
jhb [Thu, 28 Feb 2013 18:22:50 +0000 (18:22 +0000)]
MFC 241027:
- Re-shuffle the <machine/pc/bios.h> headers to move all kernel-specific
  bits under #ifdef _KERNEL but leave definitions for various structures
  defined by standards ($PIR table, SMAP entries, etc.) available to
  userland.
- Consolidate duplicate SMBIOS table structure definitions in ipmi(4)
  and smbios(4) in <machine/pc/bios.h> and make them available to
  userland.

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

11 years agoMFC 240968:
jhb [Thu, 28 Feb 2013 18:10:35 +0000 (18:10 +0000)]
MFC 240968:
Merge similar fixes from 223198 from igb to ixgbe:
- Use a dedicated task to handle deferred transmits from the if_transmit
  method instead of reusing the existing per-queue interrupt task.
  Reusing the per-queue interrupt task could result in both an interrupt
  thread and the taskqueue thread trying to handle received packets on a
  single queue resulting in out-of-order packet processing and lock
  contention.
- Don't define ixgbe_start() at all when if_transmit is used.

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

11 years agoMFC r246944:
hselasky [Thu, 28 Feb 2013 16:36:12 +0000 (16:36 +0000)]
MFC r246944:
Fix bad EEPROM parsing code.

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

11 years agoMFC r246021 and r228637:
hselasky [Thu, 28 Feb 2013 16:32:25 +0000 (16:32 +0000)]
MFC r246021 and r228637:
Add new USB IDs.

PR: usb/175639

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

11 years agoMFC r235451:
hselasky [Thu, 28 Feb 2013 16:25:34 +0000 (16:25 +0000)]
MFC r235451:
Move reset of USB mouse parameters from the USB mouse attach to
the USB mouse device open. Protect against multi character
device open. Some other nits.

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

11 years agoMFC r246809
zeising [Thu, 28 Feb 2013 15:21:12 +0000 (15:21 +0000)]
MFC r246809

Change examples to be consistent with what style(9) says.

Approved by: joel (mentor)

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

11 years agoRemove DEV_NETMAP from stable/8 options, this was suggested
jfv [Thu, 28 Feb 2013 08:19:55 +0000 (08:19 +0000)]
Remove DEV_NETMAP from stable/8 options, this was suggested
and approved by the owner, although there is code in some
drivers in support of it, the feature itself is not fully
supported in this release.

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

11 years agoWhen getting the MIB, remove largest suffix instead of smallest suffix of
delphij [Thu, 28 Feb 2013 08:11:36 +0000 (08:11 +0000)]
When getting the MIB, remove largest suffix instead of smallest suffix of
=.  This makes the following syntax work:

dev.hdaa.4.nid25_config=as=1,seq=15

This is a direct commit to RELENG_8 as this file have been replaced in
-HEAD.

Submitted by: Andreas Nilsson <andrnils gmail com>

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

11 years agoMFC r215041 (obrien):
delphij [Thu, 28 Feb 2013 05:47:50 +0000 (05:47 +0000)]
MFC r215041 (obrien):

Upgrade to bzip2 version 1.0.6.

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

11 years agoMFC of the E1000 drivers to STABLE/8, this includes the follow revisions
jfv [Thu, 28 Feb 2013 00:22:04 +0000 (00:22 +0000)]
MFC of the E1000 drivers to STABLE/8, this includes the follow revisions
plus a few tweaks:
 196969,196970,211516,214646,215781,215789,215808,215910,223350,
 223482,223831,228281,228393,229939,231796,232238,234665,235256,
 236406,238148,238151,238214,238765,238770,238953,238981,239105,
 239109,239304,240518,240693,240968,241037,241856,241885,243570,
 243857,245334,246128,246482,247064

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

11 years agoMFC 240692,241228:
jhb [Wed, 27 Feb 2013 21:03:19 +0000 (21:03 +0000)]
MFC 240692,241228:
Adjust the ioctl workaround from r234501:
- Ensure the native ioctl path always allocates a 4kb buffer if a request
  uses a buffer size of 0.
- Rounding all small requests up to 32k swamped the controller causing
  firmware hangs.  Instead, round requests smaller than 64k up to the next
  power of 2 as a general rule.  To handle the one known special case of a
  command that accepts a 12k buffer returning a 24k-ish reply, round
  requests between 8k and 16k up to 32k rather than 16k.  The result is
  that commands less than 8k should now be rounded up to a smaller size
  (either 4k or 8k) rather than 32k.

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

11 years agoMFC 240474:
jhb [Wed, 27 Feb 2013 19:38:33 +0000 (19:38 +0000)]
MFC 240474:
- Denote PCI-e endpoints that support FLR.
- Make parsing of PCI-e extended capabilities assume that future version
  numbers are backwards compatible.
- Add new AER error descriptions.
- Add descriptions for more PCI-e extended capabilities.

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

11 years agoMFC r246631,246651,246666,246675,246678,246688:
mm [Wed, 27 Feb 2013 19:22:27 +0000 (19:22 +0000)]
MFC r246631,246651,246666,246675,246678,246688:
Merge various ZFS bugfixes

MFC r246631:
Import vendor bugfixes

Illumos ZFS issues:
  3422 zpool create/syseventd race yield non-importable pool
  3425 first write to a new zvol can fail with EFBIG

MFC r246651:
Import minor type change in refcount.h header from vendor (illumos).

MFC r246666:
Import vendor ZFS bugfix fixing a problem in arc_read().

Illumos ZFS issues:
  3498 panic in arc_read(): !refcount_is_zero(&pbuf->b_hdr->b_refcnt)

MFC r246675:
Add tunable to allow block allocation on degraded vdevs.

Illumos ZFS issues:
  3507 Tunable to allow block allocation even on degraded vdevs

MFC r246678:
Import vendor bugfixes regarding SA rounding, header size and layout.
This was already partially fixed by avg.

Illumos ZFS issues:
  3512 rounding discrepancy in sa_find_sizes()
  3513 mismatch between SA header size and layout

MFC r246688 [1]:
Merge zfs_ioctl.c code that should have been merged together with ZFS v28.
Fixes several problems if working with read-only pools.

Changed code originaly introduced in onnv-gate 13061:bda0decf867b
Contains changes up to illumos-gate 13700:4bc0783f6064

PR: kern/175897 [1]
Suggested by: avg [1]

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

11 years agoMFC r247034:
pluknet [Wed, 27 Feb 2013 08:56:57 +0000 (08:56 +0000)]
MFC r247034:
  Check if the -sec option is given without an argument.

PR: bin/170413
Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>

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

11 years agoMFC 240473:
jhb [Tue, 26 Feb 2013 22:08:10 +0000 (22:08 +0000)]
MFC 240473:
Add some registers defined in PCI 3.0 including new AER bits.

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

11 years agoMFC 240467:
jhb [Tue, 26 Feb 2013 21:05:06 +0000 (21:05 +0000)]
MFC 240467:
Ignore stop and continue signals sent to an exiting process.  Stop signals
set p_xstat to the signal that triggered the stop, but p_xstat is also
used to hold the exit status of an exiting process.  Without this change,
a stop signal that arrived after a process was marked P_WEXIT but before
it was marked a zombie would overwrite the exit status with the stop signal
number.

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

11 years agoMFC 239356,239564:
jhb [Tue, 26 Feb 2013 19:14:29 +0000 (19:14 +0000)]
MFC 239356,239564:
Teach dhclient to track changes in link state and to enter the reboot
state when the link on an interface goes up causing dhclient to attempt
to renew its existing lease.

PR: bin/166656

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