]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
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

11 years agoMFC 234927:
jhb [Tue, 26 Feb 2013 16:55:59 +0000 (16:55 +0000)]
MFC 234927:
- Don't log messages saying that accounting is being disabled and enabled
  if the accounting log file is atomically replaced with a new file
  (such as during log rotation).
- Simplify accounting log rotation a bit.  There is no need to re-run
  accton(8) after renaming the new log file to it's real name.

PR: kern/167321

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

11 years agoMF9 r247309:
delphij [Tue, 26 Feb 2013 06:01:58 +0000 (06:01 +0000)]
MF9 r247309:

MFC r246586,246587,246619,246624,246768,246808:

LZ4 compression support in ZFS.

(Note: sys/conf/files change omitted from this changeset).

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

11 years agoMFH r247014, r247050 and r247051.
keramida [Mon, 25 Feb 2013 19:09:13 +0000 (19:09 +0000)]
MFH r247014, r247050 and r247051.

Add a sample program that shows how a custom comparison function and
qsort(3) can work together to sort an array of integers.

PR:             docs/176197
Submitted by:   Fernando, fapesteguia at opensistemas.com
Christoph Mallon, christoph.mallon at gmx.de
Approved by:    gjb (mentor), remko (mentor)

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

11 years agoMFC r246329:
delphij [Mon, 25 Feb 2013 08:14:07 +0000 (08:14 +0000)]
MFC r246329:

Use stripesize as smallest block size if it's available.

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

11 years agoMFC: Merge sendmail 8.14.6 errata issue
gshapiro [Thu, 21 Feb 2013 22:46:26 +0000 (22:46 +0000)]
MFC: Merge sendmail 8.14.6 errata issue

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

11 years agoMFC r226064 (by wxs):
mav [Thu, 21 Feb 2013 20:29:43 +0000 (20:29 +0000)]
MFC r226064 (by wxs):
Fix a typo in a comment.

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

11 years agoMFC r244980 (by jvf):
mav [Thu, 21 Feb 2013 19:44:05 +0000 (19:44 +0000)]
MFC r244980 (by jvf):
Add Intel Lynx Point PCH HD Audio Device IDs

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

11 years agoMFC r241418:
mav [Thu, 21 Feb 2013 19:35:45 +0000 (19:35 +0000)]
MFC r241418:
NULL-ify last previously used pointer instead of last possible pointer.
This should be only a cosmetic change.

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

11 years agoMFC r239175:
mav [Thu, 21 Feb 2013 19:23:35 +0000 (19:23 +0000)]
MFC r239175:
Add missing FAILED event to g_raid_subdisk_event2str() to print it properly
in debug messages.

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

11 years agoMFC r238379, r238382 (by bruefer):
mav [Thu, 21 Feb 2013 17:00:37 +0000 (17:00 +0000)]
MFC r238379, r238382 (by bruefer):
Renamed the kern.cam.da.da_send_ordered sysctl and tunable to
kern.cam.da.send_ordered, more in line with the other da sysctls/tunables.
Renamed the kern.cam.ada.ada_send_ordered sysctl and tunable to
kern.cam.ada.send_ordered, more in line with the other da sysctls/tunables.

PR:             169765

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

11 years agoMFC r236242:
mav [Thu, 21 Feb 2013 15:26:26 +0000 (15:26 +0000)]
MFC r236242:
Add quirk for Marvell based AHCI controller.

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

11 years agoMFC r244983 (by jfv):
mav [Thu, 21 Feb 2013 15:22:54 +0000 (15:22 +0000)]
MFC r244983 (by jfv):
Add Intel Lynx Point PCH SATA Controller Device IDs

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

11 years agoMFC r246616 and r246759:
hselasky [Thu, 21 Feb 2013 08:21:14 +0000 (08:21 +0000)]
MFC r246616 and r246759:

- Move scratch data from the USB bus structure to the USB device
structure so that simultaneous access cannot happen. Protect scratch
area using the enumeration lock.
- Reduce stack usage in usbd_transfer_setup() by moving some big stack
members to the scratch area. This saves around 200 bytes of stack.
- Fix a whitespace.
- Protect control requests using the USB device enumeration lock.
- Make sure all callers of usbd_enum_lock() check the return value.
- Remove the control transfer specific lock.
- Bump the FreeBSD version number, hence external USB modules may need
to be recompiled due to a USB device structure change.

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

11 years agoMFC r246476:
kib [Thu, 21 Feb 2013 06:12:26 +0000 (06:12 +0000)]
MFC r246476:
Document the ERESTART translation to EINTR for devfs nodes.

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

11 years agoMFC r246472:
kib [Thu, 21 Feb 2013 06:10:36 +0000 (06:10 +0000)]
MFC r246472:
Stop translating the ERESTART error from the open(2) into EINTR.
Posix requires that open(2) is restartable for SA_RESTART.

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

11 years agoMFC r222292,r230095: Show errno messages in cd.
jilles [Wed, 20 Feb 2013 23:26:14 +0000 (23:26 +0000)]
MFC r222292,r230095: Show errno messages in cd.

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

11 years agoMFC r239672 (by rrs):
markj [Tue, 19 Feb 2013 16:40:16 +0000 (16:40 +0000)]
MFC r239672 (by rrs):
  This small change takes care of a race condition
  that can occur when both sides close at the same time.
  If that occurs, without this fix the connection enters
  FIN1 on both sides and they will forever send FIN|ACK at
  each other until the connection times out. This is because
  we stopped processing the FIN|ACK and thus did not advance
  the sequence and so never ACK'd each others FIN. This
  fix adjusts it so we *do* process the FIN properly and
  the race goes away ;-)

Approved by: rrs
Approved by: emaste (co-mentor)

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

11 years agoMFC r246875:
dim [Tue, 19 Feb 2013 08:07:11 +0000 (08:07 +0000)]
MFC r246875:

Import change 40eebf235370b6fe6353784ccf01ab92eed062a5 from upstream wpa:

  From: Jouni Malinen <j@w1.fi>
  Date: Fri, 15 Jul 2011 13:42:06 +0300
  Subject: [PATCH] MD5: Fix clearing of temporary stack memory to use correct length

  sizeof of the structure instead of the pointer was supposed to be used
  here. Fix this to clear the full structure at the end of MD5Final().

Found by: clang ToT
Reviewed by: rpaulo

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

11 years agoMFC r246874:
dim [Tue, 19 Feb 2013 07:55:53 +0000 (07:55 +0000)]
MFC r246874:

Fix two instances of undefined behaviour in contrib/nvi.

Found by: clang ToT
Obtained from: NetBSD
Reviewed by: jh

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

11 years agoMFC r246873:
dim [Tue, 19 Feb 2013 07:50:10 +0000 (07:50 +0000)]
MFC r246873:

In contrib/opie/opiekey.c, use the correct length to zero the secret.

Found by: clang ToT
Reviewed by: delphij

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

11 years agoMFC r246860:
dim [Mon, 18 Feb 2013 22:03:04 +0000 (22:03 +0000)]
MFC r246860:

Fix undefined behaviour in usr.bin/mail/util.c.

Reported by: deeptech71@gmail.com

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

11 years agoMFC r246658: Cross-reference vfs_unbusy(9).
pluknet [Mon, 18 Feb 2013 16:03:42 +0000 (16:03 +0000)]
MFC r246658: Cross-reference vfs_unbusy(9).

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

11 years agoMFC r245961 r245962 r245963.
markj [Sun, 17 Feb 2013 19:49:29 +0000 (19:49 +0000)]
MFC r245961 r245962 r245963.

MFC r245961:
  When the 'R' flag is used with a newsyslog.conf entry, some fields of
  the corresponding struct sigwork_entry were left uninitialized,
  potentially causing an early return from do_sigwork(). Ensure that these
  fields are initialized, and handle the 'R' flag properly in
  do_sigwork().

MFC r245962:
  Ensure that newsyslog -n prints the correct message for a rotation rule
  that uses the 'R' flag.

MFC r245963:
  Rename the run_cmd field to sw_runcmd to make it consistent with the
  other fields in struct sigwork_entry.

Approved by: emaste (co-mentor)

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

11 years agoMFC r244734: test(1): Document == alias for =.
jilles [Sun, 17 Feb 2013 14:27:04 +0000 (14:27 +0000)]
MFC r244734: test(1): Document == alias for =.

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

11 years agoMFC r246421 and r246454:
hselasky [Thu, 14 Feb 2013 11:29:57 +0000 (11:29 +0000)]
MFC r246421 and r246454:
Add support for buttons on USB audio devices,
like Volume Up, Volume Down and Mute.

Reviewed by:  mav @

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

11 years agoMFC r246397:
hselasky [Thu, 14 Feb 2013 11:25:07 +0000 (11:25 +0000)]
MFC r246397:

Make sure that all mouse buttons are released when clients
using /dev/consolectl close. This fixes a problem where if
a USB mouse is detached while a button is pressed, that
button is never released.

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

11 years agoMFC r246412:
pluknet [Wed, 13 Feb 2013 10:18:26 +0000 (10:18 +0000)]
MFC r246412:
  Prezero the acl structure which is to be copied to usermode, to avoid
  leakage of the previous content of padding and unitialized fields.

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

11 years agoMFC: r240696, r240698, r240740
bapt [Wed, 13 Feb 2013 06:46:53 +0000 (06:46 +0000)]
MFC: r240696, r240698, r240740

Allow zfs jail and zfs unjail to use both jailnames and jailid

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

11 years agoMFC r246341:
yongari [Wed, 13 Feb 2013 00:47:47 +0000 (00:47 +0000)]
MFC r246341:
  Rework jumbo frame handling.  QAC confirmed that the controller
  requires 8 bytes alignment on RX buffer.  Given that non-jumbo
  frame works on any alignments I guess this DMA limitation for RX
  buffer could be jumbo frame specific one.  Also I'm not sure
  whether this DMA limitation is related with 64bit DMA.  Previously
  age(4) disabled 64bit DMA addressing due to silent data corruption.
  So we may need more testing on re-enabling 64bit DMA in future.

  While I'm here, change mbuf chaining algorithm to use fixed sized
  buffer and force software checksum if controller reports length
  error. According to QAC, RFD is not updated at all for jumbo frame
  so it works just like alc(4) controllers.  This change also added
  alignment fixup for strict alignment architectures.  Because I'm
  not aware of any non-x86 machines that use age(4) controllers it's
  just for completeness at this moment.

  Wit this change, jumbo frame should work with age(4).

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

11 years agoMFC r246370:
pluknet [Tue, 12 Feb 2013 10:32:53 +0000 (10:32 +0000)]
MFC r246370:
  Remove reference to the rlist code from comments, and fix a typo visible
  in the resulted change.

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

11 years agoSync BIND 9 version with 9-STABLE, to 9.8.4-P1.
delphij [Mon, 11 Feb 2013 09:42:34 +0000 (09:42 +0000)]
Sync BIND 9 version with 9-STABLE, to 9.8.4-P1.

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

11 years agoMFC r246554:
kib [Mon, 11 Feb 2013 00:50:52 +0000 (00:50 +0000)]
MFC r246554:
The 'end' word was missed in the comment.

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

11 years agoMFC r246016:
cperciva [Sun, 10 Feb 2013 17:50:56 +0000 (17:50 +0000)]
MFC r246016:
  Add a loader tunable "hw.broken_txfifo" which enables a workaround for a
  bug in old versions of QEMU (and Xen, and other places using QEMU code).

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

11 years agoMFC r244132:
delphij [Sun, 10 Feb 2013 07:23:23 +0000 (07:23 +0000)]
MFC r244132:

Add -R, an option to restart all enabled "local" services.

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

11 years agoMFC r246255: Use the default policy table of RFC 6724.
ume [Sat, 9 Feb 2013 18:00:29 +0000 (18:00 +0000)]
MFC r246255: Use the default policy table of RFC 6724.

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

11 years agoMFC r245264:
delphij [Sat, 9 Feb 2013 01:41:21 +0000 (01:41 +0000)]
MFC r245264:

The current ZFS code expects ddt_zap_count to always succeed by asserting
the underlying zap_count() to return no errors.  However, it is possible
that the pool reaches to such a state where zap_count would return error,
leading to panics when a pool is imported.

This commit changes the ddt_zap_count to return error returned from
zap_count and handle the error appropriately.  With this change, it's now
possible to let zpool rollback damaged transaction groups and import the
pool.

Obtained from: ZFS on Linux github (e8fd45a0f975c6b8ae8cd644714fc21f14fac2bf)

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

11 years agoMFC r222950 (gibbs):
delphij [Sat, 9 Feb 2013 01:38:43 +0000 (01:38 +0000)]
MFC r222950 (gibbs):

Remove C constructs that are incompatible with C++ from various
OpenSolaris and ZFS header files.  These changes are sufficient
to allow a C++ program to use the libzfs library.

Note: The majority of these files already included 'extern "C"'
      declarations, so the intention of providing C++ compatibility
      already existed even if it wasn't provided.

cddl/compat/opensolaris/include/assert.h:
Wrap our compatibility assert implementation in
'extern "C"'.  Since this is a compatibility header
I matched the Solaris style of doing this explicitly
rather than rely on FreeBSD's __BEGIN/END_DECLS macro.

sys/cddl/compat/opensolaris/sys/kstat.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/arc.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_pool.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ddt.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/spa.h:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h:
Rename parameters in function declarations that conflict
with C++ keywords.  This was the solution preferred by
members of the Illumos community.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_ioctl.h:
In C, nested structures are visible in the global namespace,
but in C++, they take on the namespace of the structure in
which they are contained.  Flatten nested structure
definitions within struct zfs_cmd so these structures are
visible in the global namespace when compiled in both
languages.

Sponsored by:  Spectra Logic Corporation

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

11 years agoMFC r245418:
jlh [Fri, 8 Feb 2013 22:23:22 +0000 (22:23 +0000)]
MFC r245418:
Allow commands without any additional arguments, as stated in the
manpage.  While here, exit early when there is nothing to do.

PR:            168415
Submitted by:  Zhihao Yuan (initial version)

MFC r245419:
Remove stray tabs.

Submitted by: kib

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

11 years agoMFC r246219:
kib [Fri, 8 Feb 2013 11:19:43 +0000 (11:19 +0000)]
MFC r246219:
Use MNT_SYNCHRONOUS to decide to write the FAT updates syncrhonously.

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

11 years agoMFC r246218:
kib [Fri, 8 Feb 2013 11:17:47 +0000 (11:17 +0000)]
MFC r246218:
Backup FATs were sometimes marked dirty by copying their first block
from the primary FAT, and then they were not marked clean on unmount.
Force marking them clean when appropriate.

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

11 years agoMFC r246217:
kib [Fri, 8 Feb 2013 11:15:57 +0000 (11:15 +0000)]
MFC r246217:
Fix the corruption of the ".." entry for the directory moved to a
subdirectory of the root on FAT32.

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

11 years agoMFC r246216:
kib [Fri, 8 Feb 2013 11:14:23 +0000 (11:14 +0000)]
MFC r246216:
The mountmsdosfs() function had an insane sanity test, remove it.

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

11 years agoMFC r246215:
kib [Fri, 8 Feb 2013 11:10:26 +0000 (11:10 +0000)]
MFC r246215:
Fix a backwards comment in markvoldirty().

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

11 years agoMFC r246242: zfs: add MODULE_VERSION for zfsctr
avg [Fri, 8 Feb 2013 08:03:18 +0000 (08:03 +0000)]
MFC r246242: zfs: add MODULE_VERSION for zfsctr

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

11 years agoMFC r226043 (manually):
pluknet [Thu, 7 Feb 2013 11:09:16 +0000 (11:09 +0000)]
MFC r226043 (manually):

Remove assertion against empty NFSv4 ACLs.  An empty ACL is not exactly
valid - we don't allow for setting it on a file, for example - but it's
not something we should assert on.

For STABLE kernel, it changes nothing, because it's not compiled with
INVARIANTS.  If it was, it would fix crashes.  It also fixes an assert
in libc encountered with NFSv4 without nfsuserd(8) running.

Approved by: trasz

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

11 years agoMFC r242175:
mav [Wed, 6 Feb 2013 18:41:12 +0000 (18:41 +0000)]
MFC r242175:
Remove priority enforcement from xpt_ation().  It is not good and even not
safe in some cases to reduce CCB priority after it was scheduled with high
priority.  This fixes reproducible deadlock when command sent through the
pass interface while ATA XPT recovers from command timeout.

Instead of that enforce priority at passioctl().  libcam provides no obvious
interface to specify CCB priority and so much (all?) code specifies zero
(highest) priority.  This change limits pass CCBs priority to NORMAL run
level, allowing XPT to complete bus and device recovery after reset before
running any payload.

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

11 years agoMFC r238595, r238596:
mav [Wed, 6 Feb 2013 18:22:52 +0000 (18:22 +0000)]
MFC r238595, r238596:
Add bunch of new ASC/ASCQ values from T10 site.

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

11 years agoMFC r245696:
zont [Wed, 6 Feb 2013 13:17:41 +0000 (13:17 +0000)]
MFC r245696:
- Force inetd to have listen queue size to be set to the value of
  kern.ipc.somaxconn instead of hardcoded value 64.

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

11 years agoMFC r245457:
zont [Wed, 6 Feb 2013 13:14:30 +0000 (13:14 +0000)]
MFC r245457:
- Detect when we are in KVM.

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

11 years agoMFC r246113 and r246126:
hselasky [Wed, 6 Feb 2013 11:10:41 +0000 (11:10 +0000)]
MFC r246113 and r246126:
Add missing NULL pointer check.

Reported by:  Lars Engels

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

11 years agoMFC r246299;
pfg [Wed, 6 Feb 2013 03:00:18 +0000 (03:00 +0000)]
MFC r246299;

UFS: Remove dead assignment.

PR: kern/175794
Submitted by: Christoph Mallon

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

11 years agoMFC:
delphij [Wed, 6 Feb 2013 00:43:10 +0000 (00:43 +0000)]
MFC:

one-true-awk 20121220.

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

11 years agoMFH r246362: remove political propaganda
des [Tue, 5 Feb 2013 14:53:16 +0000 (14:53 +0000)]
MFH r246362: remove political propaganda

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

11 years agoMFC r243779 (marcel):
delphij [Tue, 5 Feb 2013 09:53:32 +0000 (09:53 +0000)]
MFC r243779 (marcel):

Protect against DoS attacks, such as being described in CVE-2010-2632.
The changes were derived from what has been committed to NetBSD, with
modifications. These are:

1.  Preserve the existsing GLOB_LIMIT behaviour by including the number
    of matches to the set of parameters to limit.
2.  Change some of the limits to avoid impacting normal use cases:
    GLOB_LIMIT_STRING - change from 65536 to ARG_MAX so that glob(3)
        can still provide a full command line of expanded names.
    GLOB_LIMIT_STAT - change from 128 to 1024 for no other reason than
        that 128 feels too low (it's not a limit that impacts the
        behaviour of the test program listed in CVE-2010-2632).
    GLOB_LIMIT_PATH - change from 1024 to 65536 so that glob(3) can
        still provide a fill command line of expanded names.
3.  Protect against buffer overruns when we hit the GLOB_LIMIT_STAT or
    GLOB_LIMIT_READDIR limits. We append SEP and EOS to pathend in
    those cases. Return GLOB_ABORTED instead of GLOB_NOSPACE when we
    would otherwise overrun the buffer.

This change also modifies the existing behaviour of glob(3) in case
GLOB_LIMIT is specifies by limiting the *new* matches and not all
matches. This is an important distinction when GLOB_APPEND is set or
when the caller uses a non-zero gl_offs. Previously pre-existing
matches or the value of gl_offs would be counted in the number of
matches even though the man page states that glob(3) would return
GLOB_NOSPACE when gl_matchc or more matches were found.

The limits that cannot be circumvented are GLOB_LIMIT_STRING and
GLOB_LIMIT_PATH all others can be crossed by simply calling glob(3)
again and with GLOB_APPEND set.

The entire description above applies only when GLOB_LIMIT has been
specified of course. No limits apply when this flag isn't set!

Obtained from: Juniper Networks, Inc

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

11 years agoMFC r243758 (marcel):
delphij [Tue, 5 Feb 2013 09:50:33 +0000 (09:50 +0000)]
MFC r243758 (marcel):

In globextend() when the pathv vector cannot be (re-)allocated, don't
free and clear the gl_pathv pointer in the glob_t structure. Such
breaks the invariant of the glob_t structure, as stated in the comment
right in front of the globextend() function. If gl_pathv was non-NULL,
then gl_pathc was > 0. Making gl_pathv a NULL pointer without also
setting gl_pathc to 0 is wrong.

Since we otherwise don't free the memory associated with a glob_t in
error cases, it's unlikely that this change will cause a memory leak
that wasn't already there to begin with. Callers of glob(3) must
call globfree(3) irrespective of whether glob(3) returned an error
or not.

MFC r243759 (marcel):

In globextend(), take advantage of the fact that realloc(NULL, size) is
equivalent to malloc(size). This eliminates the conditional expression
used for calling either realloc() or malloc() when realloc() will do
all the time.

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

11 years agoMFC r243930:
eadler [Mon, 4 Feb 2013 00:34:34 +0000 (00:34 +0000)]
MFC r243930:
Constify where possible

Approved by: cperciva (mentor, implicit)

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

11 years agoMFC r243793,r243794:
eadler [Sun, 3 Feb 2013 00:02:59 +0000 (00:02 +0000)]
MFC r243793,r243794:
Add a few more translations from IDs to model name.

PR: kern/174059
Approved by: cperciva (mentor, implicit)

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

11 years agoMFC r243931:
eadler [Sat, 2 Feb 2013 23:31:01 +0000 (23:31 +0000)]
MFC r243931:
Avoid the creation of a temporary object by using the prefix operator
for non-primitive types.

Approved by: cperciva (mentor, implicit)

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

11 years agoMFC r244122:
eadler [Sat, 2 Feb 2013 23:22:39 +0000 (23:22 +0000)]
MFC r244122:
Remove 'dangerous' instructions from the example make.conf.
Clarify when and why these might be used and that this isn't a supported
configuration.

PR: docs/144488
Approved by: cperciva (mentor, implicit)

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

11 years agoMFC r245535:
eadler [Sat, 2 Feb 2013 23:11:16 +0000 (23:11 +0000)]
MFC r245535:
Remove useless variable 'Pflag':
-P is an alternative to -H and -L, and it is implemented using the Hflag and Lflag variables.

Approved by: cperciva (mentor, implicit)

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

11 years agoMFC r245945: spa_generate_rootconf: add support for old vdev labels
avg [Sat, 2 Feb 2013 11:20:36 +0000 (11:20 +0000)]
MFC r245945: spa_generate_rootconf: add support for old vdev labels

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

11 years agoMFC r246153, r246154:
gjb [Sat, 2 Feb 2013 01:11:12 +0000 (01:11 +0000)]
MFC r246153, r246154:

r246153:
 - Update svn port directory in release(7).

r246154:
 -  Force commit to mark MFC for r246153.

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

11 years agoMFC r200596 (by imp):
pluknet [Fri, 1 Feb 2013 15:48:29 +0000 (15:48 +0000)]
MFC r200596 (by imp):
  Add NO_KERNELOBJ flag, similar to NO_KERNEL{CONFIG,DEPEND,CLEAN},
  which disables doing a make obj.  Use it when you know it will work
  only.  KERNFAST now implies NO_KERNELOBJ, since you don't need to keep
  doing obj when doing incremental kernel builds.

Approved by: imp

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

11 years agoMFC r244568:
delphij [Fri, 1 Feb 2013 07:38:26 +0000 (07:38 +0000)]
MFC r244568:

 - Reduce buffer size from LINE_MAX to PATH_MAX, there is no point to store
   path longer than this.
 - Fix an unreached case of check against sizeof buf, which in turn leads
   to an off-by-one nul byte write on the stack.  The original condition
   can never be satisfied because the passed boundary is the maximum value
   that can be returned, so code was harmless.

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

11 years agoMFC r245423, r245425, r245433:
mav [Thu, 31 Jan 2013 22:31:25 +0000 (22:31 +0000)]
MFC r245423, r245425, r245433:
- Print some more metadata fields.
- Small cosmetic tuning of the IRRT status constants.
- Keep value of orig_config_id metadata field.  Windows driver writes there
previous value of config_id when it is changed in some cases.  I guess it
may be used do avoid some split-brain conditions.

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

11 years agoMFC r245400:
mav [Thu, 31 Jan 2013 22:27:31 +0000 (22:27 +0000)]
MFC r245400:
Windows driver writes relative volume IDs to metadata field.  Use that value
as a hint for raid/rX device number to make it persistent across reboots.

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

11 years agoMFC r245398:
mav [Thu, 31 Jan 2013 22:24:46 +0000 (22:24 +0000)]
MFC r245398:
 - Add checks for Intel metadata version and attributes. Ignore disks with
unsupported metadata types like Intel Smart Response to not corrupt them.
 - Improve setting of these things during metadata writing to protect from
incapable BIOS'es and other implementations.

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

11 years agoMFC r245363:
mav [Thu, 31 Jan 2013 22:22:22 +0000 (22:22 +0000)]
MFC r245363:
Improve support for disabled disks. If disabled disk disconnected and then
reconnected back, leave it as disabled. If new disk inserted instead of
disabled, rebuild it and leave as enabled.

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

11 years agoMFC r245341:
mav [Thu, 31 Jan 2013 22:19:39 +0000 (22:19 +0000)]
MFC r245341:
Windows handles INIT and VERIFY as array-wide and it doesn't specify which
disks should be rebuilt. Our rebuild code is same time disk-centric.  To
handle this situation  properly check all disks for RBLD flags, and if no
disk specified try rebuild/resync all of them except newly inserted.

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

11 years agoMFC r245338:
mav [Thu, 31 Jan 2013 22:16:52 +0000 (22:16 +0000)]
MFC r245338:
Implement migration from single disk to RAID1/IRRT for Intel metadata.
Windows driver uses such migration when it creates new arrays.  While GEOM
RAID has no mechanism to implement migration in general case, this specifc
case still can be handled easily via degraded RAID1 creation followed by
regular rebuild.

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

11 years agoMFC r245326:
mav [Thu, 31 Jan 2013 22:13:36 +0000 (22:13 +0000)]
MFC r245326:
Add basic support for Intel Rapid Recover Technology (Intel RRT).
It is alike to RAID1, but with dedicating master and recovery disks and
providing manual control over synchronization.  It allows to use recovery
disk as snapshot of the master disk from the time of the last sync.

This implementation is not functionaly complete comparing to Windows,
but it is better then silent conversion to RAID1 on first boot.

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

11 years agoMFC r245522, r245533:
mav [Thu, 31 Jan 2013 22:07:31 +0000 (22:07 +0000)]
MFC r245522, r245533:
For Promise/AMD metadata add support for disks with capacity above 2TiB
and for volumes with sector size above 512 bytes.

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

11 years agoMFC r245519:
mav [Thu, 31 Jan 2013 21:26:02 +0000 (21:26 +0000)]
MFC r245519:
Recalculate volume size only for real CONCATs.  For SINGLE trust volume
size given by metadata, as it should be correct and in some cases can be
smaller then subdisk size.

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

11 years agoMFC r245875:
mav [Thu, 31 Jan 2013 20:48:56 +0000 (20:48 +0000)]
MFC r245875:
Disable MSI interrupts for SB600 chipset.  According to the report they are
not functional.

PR: kern/174880, kern/174985, kern/175002

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

11 years agoMFC r245459
sbruno [Thu, 31 Jan 2013 20:32:11 +0000 (20:32 +0000)]
MFC r245459

  Satisfy the intent of kern/151564: [ciss] ciss(4) should increase
  CISS_MAX_LOGICAL to 107

  Submitter wanted to increase the number of logical disks supported by ciss(4)
  by simply raising the CISS_MAX_LOGICAL value even higher.  Instead, consult
  the documentation for the raid controller (OPENCISS) and poke the controller
  bits to ask it for how many logical/physical disks it can handle.

  Revert svn R242089 that raised CISS_MAX_LOGICAL to 64 for all controllers.

  For older controllers that don't support this mechanism, fallback to the old
  value of 16 logical disks.  Tested on P420, P410, P400 and 6i model ciss(4)
  controllers.

  This should will be MFC'd back to stable/9 stable/8 and stable/7 after the MFC
  period.

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

11 years agoMFC r245456:
mav [Tue, 29 Jan 2013 17:54:26 +0000 (17:54 +0000)]
MFC r245456:
Allow to insert new component to geom_raid3 without specifying number.

PR: kern/160562

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

11 years agoMFC r245444:
mav [Tue, 29 Jan 2013 17:47:07 +0000 (17:47 +0000)]
MFC r245444:
Alike to r242314 for GRAID make GRAID3 more aggressive in marking volumes
as clean on shutdown and move that action from shutdown_pre_sync stage to
shutdown_post_sync to avoid extra flapping.

ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAID3
to shutdown gracefully.  To handle that, mark volume as clean just when
shutdown time comes and there are no active writes.

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

11 years agoMFC r245443:
mav [Tue, 29 Jan 2013 17:22:53 +0000 (17:22 +0000)]
MFC r245443:
Alike to r242314 for GRAID make GMIRROR more aggressive in marking volumes
as clean on shutdown and move that action from shutdown_pre_sync stage to
shutdown_post_sync to avoid extra flapping.

ZFS tends to not close devices on shutdown, that doesn't allow GEOM MIRROR
to shutdown gracefully.  To handle that, mark volume as clean just when
shutdown time comes and there are no active writes.

PR: kern/113957

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

11 years agoMFC r245725:
hselasky [Mon, 28 Jan 2013 07:28:52 +0000 (07:28 +0000)]
MFC r245725:
Add new quirk and correct old one.

PR: usb/175454
MFC after: 1 week

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

11 years agoMFC: r245923
marius [Mon, 28 Jan 2013 00:31:55 +0000 (00:31 +0000)]
MFC: r245923

- Check the return value of taskqueue_start_threads().
- At least the Saturn chips of 501-6738 cards need a delay after freezing
  the external GMII pins before the internal PHY is accessible again. So
  wait a bit after (un)freezing these. Also don't touch the other bits of
  that configuration register. [1]
- Take advantage of nitems().

Reported and tested by: Paul Keusemann [1]

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

11 years agoMFC: r245850
marius [Sun, 27 Jan 2013 23:21:51 +0000 (23:21 +0000)]
MFC: r245850

Revert the part of r239864 (MFC'ed to stable/8 in r241690) which removed
obtaining the SMP mutex around reading registers from other CPUs. As it
turns out, the hardware doesn't really like concurrent IPI'ing causing
adverse effects. Also the thought deadlock when using this spin lock here
and the targeted CPU(s) are also holding or in case of nested locks can't
actually happen. This is due to the fact that on sparc64, spinlock_enter()
only raises the PIL but doesn't disable interrupts completely. Thus direct
cross calls as used for the register reading (and all other MD IPI needs)
still will be executed by the targeted CPU(s) in that case.

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

11 years agoMFC: r245017
marius [Sun, 27 Jan 2013 23:08:55 +0000 (23:08 +0000)]
MFC: r245017

Revert bogus part of r241740 (MFC'ed to stable/8 in r241879).
Reported by: Michael Moll

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