]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoAdd xz to rescue.
mm [Thu, 20 May 2010 09:39:01 +0000 (09:39 +0000)]
Add xz to rescue.

Approved by: delphij (mentor)

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

14 years agoMFC r207729:
kib [Thu, 20 May 2010 09:38:15 +0000 (09:38 +0000)]
MFC r207729:
Add MAKEDEV_NOWAIT flag for make_dev_credf(9).

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

14 years agoMFC r208050:
mm [Thu, 20 May 2010 09:35:31 +0000 (09:35 +0000)]
MFC r208050:

Fix ZIL-related panic on zfs rollback.

OpenSolaris onnv-revision: 8746:e1d96ca6808c

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

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

14 years agoMFC: r208143
marius [Thu, 20 May 2010 08:43:29 +0000 (08:43 +0000)]
MFC: r208143

Add the ofw_bus_if.h dependency introduced with r207585 (MFC'ed to
stable/8 in r208086).

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

14 years agoMFC r206889: add do-not-fragment option support to ping6(8).
maxim [Thu, 20 May 2010 08:03:08 +0000 (08:03 +0000)]
MFC r206889: add do-not-fragment option support to ping6(8).

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

14 years agoMFC r208047:
mm [Thu, 20 May 2010 06:51:48 +0000 (06:51 +0000)]
MFC r208047:

Import OpenSolaris revision 7837:001de5627df3
It includes the following changes:
- parallel reads in traversal code (Bug ID 6333409)
- faster traversal for zfs send (Bug ID 6418042)
- traversal code cleanup (Bug ID 6725675)
- fix for two scrub related bugs (Bug ID 67296966730101)
- fix assertion in dbuf_verify (Bug ID 6752226)
- fix panic during zfs send with i/o errors (Bug ID 6577985)
- replace P2CROSS with P2BOUNDARY (Bug ID 6725680)

List of OpenSolaris Bug IDs:
633340964180426757112672566867256756725680,
672569867296966730101675222665779856755042

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (multiple Bug IDs)

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

14 years agoMFC r207733:
delphij [Thu, 20 May 2010 00:31:09 +0000 (00:31 +0000)]
MFC r207733:

Plug memory leak.

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

14 years agoMFC r208012
thompsa [Thu, 20 May 2010 00:05:33 +0000 (00:05 +0000)]
MFC r208012

 Support getting signed and unsigned HID data.

Submitted by: Alex Deiter

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

14 years agoMFC r207981:
gordon [Wed, 19 May 2010 22:03:45 +0000 (22:03 +0000)]
MFC r207981:
 Fix a bug due to a type conversion from 64 to 32 bits. The side effect of
 this type conversion is the high bits which were used to indicate if a
 special character was a literal or special were dropped. As a result, all
 special character were treated as special, even if they were supposed to
 be literals.

Approved by: mentor (wes@)

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

14 years agoMFC r208084:
yongari [Wed, 19 May 2010 21:08:38 +0000 (21:08 +0000)]
MFC r208084:
  If controller received bad frames make sure to update newly added
  RFA. Also drop frames that have either CRC error or alignment
  error. Normally bad frames are not received at all. But controllers
  running in promiscuous mode will receive bad frames. 82557 will
  also receive bad frames to receive VLAN oversized frames.

  While I'm here mark RNR condition if driver happen to see RNR in
  RFA status and restart RU to receive frames again. Because driver
  checks all received frames in RX loop, RNR condition could be set
  in the middle of RX processing. Just relying on RNR interrupt was
  not enough.

  This change fixes "Memory modified after free" issue when fxp(4)
  is running as a member of if_bridge(4).

  Tested by: Larry Baird <lab <> gta dot com>

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

14 years agoMFC r208081,208083:
yongari [Wed, 19 May 2010 20:56:18 +0000 (20:56 +0000)]
MFC r208081,208083:
r208081:
  Controller updates RFA via DMA so driver needs synchronization.
  Add missing BUS_DMASYNC_POSTWRITE and BUS_DMASYNC_PREREAD.

r208083:
  Dont' allow dma map load deferring. fxp(4) is not able to handle
  EINPROGRESS.

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

14 years agoMFC r208116: Change the commented msgs examples in profile/csh.login
jilles [Wed, 19 May 2010 20:53:21 +0000 (20:53 +0000)]
MFC r208116: Change the commented msgs examples in profile/csh.login
from -f to -q.

Starting something that wants input on login seems strange and can be
dangerous. In some configurations, causing output can be bad, but it is not
as dangerous.

I do not expect this msgs invocation to be uncommented often.

PR: conf/96015

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

14 years agoMFC 207335:
jhb [Wed, 19 May 2010 19:43:49 +0000 (19:43 +0000)]
MFC 207335:
Initialize the callout structure earlier in attach before calling any
routines that can fail since ciss_free() always tries to stop and drain
the callout.

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

14 years agoMFC r207536, r207696, r208183:
mav [Wed, 19 May 2010 14:50:07 +0000 (14:50 +0000)]
MFC r207536, r207696, r208183:
Import mvs(4) - Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA controllers
driver for CAM ATA subsystem. This driver supports same hardware as
atamarvell, ataadaptec and atamvsata drivers from ata(4), but provides
many additional features, such as NCQ, PMP, etc.

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

14 years agoMFC r207360: periodically save system time to hardware time-of-day clock
avg [Wed, 19 May 2010 10:34:15 +0000 (10:34 +0000)]
MFC r207360: periodically save system time to hardware time-of-day clock

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

14 years agoMFC r207359,207362: kern_ntptime: abstract time error check into a
avg [Wed, 19 May 2010 10:15:37 +0000 (10:15 +0000)]
MFC r207359,207362: kern_ntptime: abstract time error check into a
function

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

14 years agoMFC r207958:
kib [Wed, 19 May 2010 09:32:59 +0000 (09:32 +0000)]
MFC r207958:
Route all returns from the interrupts and faults through the doreti_iret
labeled iretq instruction.

MFC r208026:
Do not use .extern.

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

14 years agoMFC r207957:
kib [Wed, 19 May 2010 09:30:41 +0000 (09:30 +0000)]
MFC r207957:
Remove unneeded overrides of the segment registers.

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

14 years agoMFC r207670, r208130, r208131:
mm [Wed, 19 May 2010 06:49:52 +0000 (06:49 +0000)]
MFC r207670, r208130, r208131:

MFC r207670:
Introduce hardforce export option (-F) for "zpool export".
When exporting with this flag, zpool.cache remains untouched.
OpenSolaris onnv revision: 8211:32722be6ad3b

MFC r208130:
Fix perfomance problem with ZFS prefetch caching [1]
Add statistics for ZFS prefetch (sysctl kstat.zfs.misc.zfetchstats)
OpenSolaris onnv revision: 10474:0e96dd3b905a (partial)

MFC r208131:
Fix deadlock between zfs_dirent_lock and zfs_rmdir
OpenSolaris onnv revision: 11321:506b7043a14c

Reported by: jhell@dataix.net (private e-mail) [1]
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID: 6775357685999768689516847615)

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

14 years agoMFC r207005:
brucec [Tue, 18 May 2010 18:20:11 +0000 (18:20 +0000)]
MFC r207005:

Make the "Q = Finish" text visible when running sysinstall as a normal
application.  Reword the boot manager screen to try and avoid confusion.

Approved by: rrs (mentor)

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

14 years agoMFC r207006:
brucec [Tue, 18 May 2010 18:19:06 +0000 (18:19 +0000)]
MFC r207006:

Remove the reference to DD mode, and replace "Wizard" mode with "Expert" mode.
Also, make sure the "Q = Finish" text is visible.
Reword the boot manager screen to try and avoid confusion, and make the
order of the menu items match that in sysinstall.

PR: bin/142916
Submitted by: Jeremy Chadwick <freebsd at jdc.parodius.com>
Approved by:    rrs (mentor)

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

14 years agoMFC r207926:
bschmidt [Tue, 18 May 2010 17:43:53 +0000 (17:43 +0000)]
MFC r207926:
Enable 5.5 and 11Mbit TX rates.

Reviewed by: sam
Approved by: rpaulo (mentor)

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

14 years agoMFC: r208098
marius [Tue, 18 May 2010 17:15:40 +0000 (17:15 +0000)]
MFC: r208098

Document the led(4) interface to the identification LEDs.

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

14 years agoMFC: r208117
marius [Tue, 18 May 2010 17:09:20 +0000 (17:09 +0000)]
MFC: r208117

Fix a mismerge in r206001 (MFC'ed to stable/8 in r206211).

PR: 146614
Approved by: jfv (implicit)

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

14 years agoMFC: r205254, r208097
marius [Tue, 18 May 2010 17:02:24 +0000 (17:02 +0000)]
MFC: r205254, r208097

- Add quirk handling for Sun Fire V1280. The firmware of these machines
  provides no ino-bitmap properties so forge them using the default set
  of controller interrupts and let schizo_setup_intr() take care of the
  children, hoping for non-fancy routing.
- Enable DMA write parity error interrupts on Schizo with a working
  implementation.
- Let schizo_pci_bus() only panic in case of fatal errors as the interrupt
  triggered by the error the firmware of Sun Fire V890 as well as 280R
  with version 7 Schizo caused may happen as late as using the HBA and not
  only prior to touching the PCI bus (in the former case the actual error
  still is fatal but we clear it before touching the PCI bus).
  While at it count and export non-fatal error interrupts via sysctl(9).
- Remove unnecessary locking from schizo_ue().

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

14 years agoMFC r205728
kaiw [Tue, 18 May 2010 10:32:20 +0000 (10:32 +0000)]
MFC r205728

  Merge improvements from kernel HID parser to the userland usbhid(3)
  parser.  This merge does not change any API and should not break any
  native or thirdparty applications.

  Changes include:

  * Merge multiple report ID support and other improvements from kernel
    HID parser.
  * Ignore rid argument in hid_start_parser, parse all the report items since
    we now support multiple report ID.
  * Skip report ID byte in hid_get_data() and set report ID byte in
    hid_set_data(), if report ID is non-zero.
  * Reimplement hid_get_report_id: instead get report id from uhid device
    (which is always 0), try parsing the report descriptor and return the
    first report ID encountered.

MFC r207812

  hid_get_data() now expects that the hid data passed in always contains
  the report ID byte. Thus we should not skip the the report ID byte in
  hid_interrupt().  Also, if HUP_KEYBOARD usage is an array, do not try
  to modify the 'data' pointer, instead, increase the hid_item_t field
  'pos' by 'report_size' before calling hid_get_data() during each
  iteration.

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

14 years agoMFC r207922, r207925, r207929, r208052:
attilio [Tue, 18 May 2010 10:24:23 +0000 (10:24 +0000)]
MFC r207922, r207925, r207929, r208052:
- Change the db_printf return value in order to catch up with printf
- Make witness_list_locks() and witness_display_spinlock() accept
  callbacks for printf-like functions in order to queue the output on the
  correct channel.

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

14 years agoBump __FreeBSD_version for liblzma addition.
mm [Tue, 18 May 2010 10:02:45 +0000 (10:02 +0000)]
Bump __FreeBSD_version for liblzma addition.

Approved by: delphij (mentor)

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

14 years agoMFC r207842, r207844, r208099:
mm [Tue, 18 May 2010 09:59:09 +0000 (09:59 +0000)]
MFC r207842, r207844, r208099:

MFC r207842:
Import of liblzma, xz, xzdec, lzmainfo from vendor branch
Add support for xz and lzma to lesspipe.sh (xzless, lzless)

MFC r207844:
Add two public headers missing in r207842
Adjust CFLAGS for lzmainfo, xz, xzdec

MFC r208099:
Add versioned symbols to liblzma
Use default SHLIB_MAJOR.

Approved by: delphij (mentor)

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

14 years agoMFC r207626, r207627:
mm [Tue, 18 May 2010 07:45:27 +0000 (07:45 +0000)]
MFC r207626, r207627:

MFC r207626:
Speed up ZFS list operation with objset prefetching.

MFC r207627:
Enable "zfs list" to list explicitly requested snapshots.

OpenSolaris onnv revisions:
8415:8809e849f63e, 10474:0e96dd3b905a (partial)

PR: kern/146297
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6386929675833867553896847118)

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

14 years agoMFC r208077:
bz [Tue, 18 May 2010 04:21:50 +0000 (04:21 +0000)]
MFC r208077:
  Document the 'short preamble' capability for 802.11bg.

  Reviewed by: sam

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

14 years agoMFC r208100:
bz [Tue, 18 May 2010 04:20:35 +0000 (04:20 +0000)]
MFC r208100:
  Fix an issue with the dynamic pcpu/vnet data allocators.

  We cannot expect that modspace is the last entry in the linker
  set and thus that modspace + possible extra space up to PAGE_SIZE
  would be contiguous.  For the moment do not support more than
  *_MODMIN space and ignore the extra space.

Discussed with: jeff, rwatson (briefly)
Reviewed by: jeff
Sponsored by: The FreeBSD Foundation
Sponsored by: CK Software GmbH

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

14 years agoMFC r208023
thompsa [Tue, 18 May 2010 03:16:02 +0000 (03:16 +0000)]
MFC r208023

 Use fixed width integer types for parsing the binary hid data.

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

14 years agoMFC r208089:
dougb [Tue, 18 May 2010 02:22:08 +0000 (02:22 +0000)]
MFC r208089:

Remove duplicate

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

14 years agoMFC r208088:
dougb [Tue, 18 May 2010 02:17:40 +0000 (02:17 +0000)]
MFC r208088:

Hide the creation and population of the temproot

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

14 years agoMFC r204738, r205113 (imp):
mm [Tue, 18 May 2010 00:46:15 +0000 (00:46 +0000)]
MFC r204738, r205113 (imp):

MFC r204738:
Remove stale references to libkrb5.
Rejigger the SUBDIR setting a smidge: we now set all the libraries that depend
on something else, and then SUBDIR+= the rest.

MFC r205113:
Make this conform to the other top-level Makefile subdir listings with
one file per line.

Approved by: delphij (mentor)

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

14 years agoAdjust svn:mergeinfo for revision 204546. This commit moves mergeinfo to
delphij [Tue, 18 May 2010 00:37:32 +0000 (00:37 +0000)]
Adjust svn:mergeinfo for revision 204546.  This commit moves mergeinfo to
lib/ and removes mergeinfo on individual file.

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

14 years agoMFC r207630
delphij [Tue, 18 May 2010 00:32:02 +0000 (00:32 +0000)]
MFC r207630

Remove if_ar, if_ray, if_sr, if_ppp, if_sl to reflect the current modules
available, they were removed due to NEEDSGIANT.

While I'm there, add if_et which was missed quite a while ago.

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

14 years agoMFC r203773
thompsa [Mon, 17 May 2010 23:59:14 +0000 (23:59 +0000)]
MFC r203773

 Within libusb 0.1 API, bus number is always faked to 0. Device numbers,
 however, are possitive and seem to be reverse sorted in the list.

 Conform device numbering and bring a result that is consistent with the
 libusb 0.1 API.  It is now possible to distinguish a device based on its
 (bus, dev) numbers.

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

14 years agoMFC r208012
thompsa [Mon, 17 May 2010 23:57:34 +0000 (23:57 +0000)]
MFC r208012

 Support getting signed and unsigned HID data.

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

14 years agoMFC r208021
thompsa [Mon, 17 May 2010 23:56:17 +0000 (23:56 +0000)]
MFC r208021

 Fix return values for usb_find_busses() and usb_find_devices(). We should try
 to return the actual number of busses and devices.

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

14 years agoMFC r208020
thompsa [Mon, 17 May 2010 23:55:23 +0000 (23:55 +0000)]
MFC r208020

 Fix header file compliancy with libusb 1.0 from sourceforge.

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

14 years agoMFC r208048
thompsa [Mon, 17 May 2010 23:52:33 +0000 (23:52 +0000)]
MFC r208048

 Allow the USB_REQ_DEBUG to be enabled in the kernel conf.

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

14 years agoMFC r208019
thompsa [Mon, 17 May 2010 23:51:57 +0000 (23:51 +0000)]
MFC r208019

 Sync run(4) driver from author's site.

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

14 years agoMFC r208018
thompsa [Mon, 17 May 2010 23:51:20 +0000 (23:51 +0000)]
MFC r208018

 Reduce diffs to p4.

  Add test code for delaying or failing usb control requests, disabled by
  default under ifdef USB_REQ_DEBUG.

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

14 years agoMFC r208017
thompsa [Mon, 17 May 2010 23:50:46 +0000 (23:50 +0000)]
MFC r208017

 Fix possibly wrong bit masking.

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

14 years agoMFC r208016
thompsa [Mon, 17 May 2010 23:50:10 +0000 (23:50 +0000)]
MFC r208016

 Add new FTDI USB device ID.

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

14 years agoMFC r208015
thompsa [Mon, 17 May 2010 23:49:31 +0000 (23:49 +0000)]
MFC r208015

 Increase the max ports to 12, 3G devices exist where the ppp endpoint is #9.

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

14 years agoMFC r208014
thompsa [Mon, 17 May 2010 23:48:51 +0000 (23:48 +0000)]
MFC r208014

 Back out r203140 which was causing problems when the first and the last
 microframe slot was not in the smask. The problem was that the EHCI driver was
 then thinking that the transfer was immediately complete in some cases. Which
 could lead to freeze-like situations, which can be recovered by unplugging the
 USB device.

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

14 years agoMFC r208013
thompsa [Mon, 17 May 2010 23:48:03 +0000 (23:48 +0000)]
MFC r208013

 Add missing ifdefs for usb power saving support.

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

14 years agoMFC r208011
thompsa [Mon, 17 May 2010 23:47:24 +0000 (23:47 +0000)]
MFC r208011

 Add the ASUS MyPal A730W device id.

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

14 years agoMFC r208010
thompsa [Mon, 17 May 2010 23:46:45 +0000 (23:46 +0000)]
MFC r208010

 Provide more information about the device location in the USB system.

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

14 years agoMFC r208009
thompsa [Mon, 17 May 2010 23:46:08 +0000 (23:46 +0000)]
MFC r208009

 Enable support for mouse panning wheels.

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

14 years agoMFC r208008
thompsa [Mon, 17 May 2010 23:45:31 +0000 (23:45 +0000)]
MFC r208008

 If a USB device is suspended and a USB set config request is issued when the
 USB enumeration lock is locked, then the USB stack fails to resume the device
 because locking the USB enumeration lock is part of the resume procedure. To
 solve this issue a new lock is introduced which only protects the suspend and
 resume callbacks, which can be dropped inside the usbd_do_request_flags()
 function, to allow suspend and resume during so-called enumeration operations.

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

14 years agoMFC r208007
thompsa [Mon, 17 May 2010 23:44:52 +0000 (23:44 +0000)]
MFC r208007

 Staticise usb_ref_device and usb_unref_device.

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

14 years agoMFC r208006
thompsa [Mon, 17 May 2010 23:44:18 +0000 (23:44 +0000)]
MFC r208006

 Add quirks for the Alcor SDCR_6362 Card Reader, Freecom HDD storage device and
 Samsung YP_U4 music player.

PR: usb/145265, usb/146104

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

14 years agoMFC r207404
thompsa [Mon, 17 May 2010 23:43:41 +0000 (23:43 +0000)]
MFC r207404

 usb_controller.c requires opt_ddb.h

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

14 years agoMFC r206638
thompsa [Mon, 17 May 2010 23:43:07 +0000 (23:43 +0000)]
MFC r206638

 Use the UIPROTO_BOOT_KEYBOARD #define from usb.h rather than a local
 (almost identically named) local #define.

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

14 years agoMFC r206595
thompsa [Mon, 17 May 2010 23:42:29 +0000 (23:42 +0000)]
MFC r206595

 Eliminate duplicate comment

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

14 years agoMFC r206544
thompsa [Mon, 17 May 2010 23:41:51 +0000 (23:41 +0000)]
MFC r206544

 The Quanta Q101 modem has a different type of cdrom driver disk,
 add the product id and use a standard scsi eject.

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

14 years agoMFC r203148
thompsa [Mon, 17 May 2010 23:41:06 +0000 (23:41 +0000)]
MFC r203148

 Uuencode the rt2870 firmware into ascii like the other firmware blobs.

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

14 years agoMFC r208030:
trasz [Mon, 17 May 2010 17:56:27 +0000 (17:56 +0000)]
MFC r208030:

Add missing check to prevent local users from panicing the kernel by trying
to set malformed ACL.

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

14 years agoMFC r207971:
yongari [Mon, 17 May 2010 17:17:57 +0000 (17:17 +0000)]
MFC r207971:
  Document undocumented tunables and sysctl variables.
  While here use actual string to specify width as well as using Cm
  to set command argument.

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

14 years agoMFC r207853:
yongari [Mon, 17 May 2010 17:16:12 +0000 (17:16 +0000)]
MFC r207853:
  Now sge(4) supports TCP segmentation offload (TSO).

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

14 years agoMFC r207852:
yongari [Mon, 17 May 2010 17:12:35 +0000 (17:12 +0000)]
MFC r207852:
  SiS190 supports RX 10 bytes padding, CRC stripping as well as VLAN
  hardware tag insertion/stripping. Remove conditional code that
  disables these hardware features on SiS190. Also nuke RX fixup code
  which is no more required on strict-alignment architectures because
  SiS190 supports RX 10 bytes padding.
  Now all hardware features except jumbo frame and WOL are supported.
  Thanks to Masa Murayama who confirmed SiS190 also has the same
  hardware features of SiS191.
  I guess the only difference between SiS191 and SiS190 would be
  jumbo frame support. It will be implemented in near future.

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

14 years agoMFC r207851:
yongari [Mon, 17 May 2010 17:02:42 +0000 (17:02 +0000)]
MFC r207851:
  Implement TSO and TSO over VLAN. Increase number of allowed
  fragmentation of mbuf chain to 32 from 16 because TSO can send 64KB
  sized packet which in turn requires long list of mbuf chain. Due to
  lack of documentation, I'm not sure whether driver have to pull up
  ethernet/IP/TCP header with options to make controller work but
  driver have to parse TCP header to update pseudo TCP checksum
  anyway. The controller expects pseudo TCP checksum computed by
  upper stack and the checksum should follow the MS NDIS
  specification to make TSO work.

  Tested by: xclin <xclin <> cs dot nctu dot edu dot tw >

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

14 years agoMFC r207832:
yongari [Mon, 17 May 2010 16:57:55 +0000 (16:57 +0000)]
MFC r207832:
  Export hardware MAC statistics through sysctl node. Previously
  fxp(4) already used to extract most hardware MAC statistics but it
  didn't show them. With this change, all MAC statistics counters
  are exported. Because there are a couple of new counters for 82558
  and 82559, enable extended MAC statistics functionality to get
  these counters. Accoring to public data sheet, 82559 MAC statistics
  return 24 DWORD counters(3 counters are unknown at this moment) so
  increase MAC counter structure to meet the MAC statistics block size.
  The completion of MAC counter dump is now checked against
  FXP_STATS_DR_COMPLETE status code which is appended at the end of
  status block. Previously fxp(4) ignored the status of the
  FXP_SCB_COMMAND_CU_DUMPRESET command. fxp(4) does not wait for the
  completion of pending command before issuing
  FXP_SCB_COMMAND_CU_DUMPRESET. Instead it skips the command and try
  it next time. This scheme may show better performance but there is
  chance to loose updated counters after stopping controller. So make
  sure to update MAC statistics in fxp_stop().
  While I'm here move sysctl node creation to fxp_sysctl_node().

  Tested by: Larry Baird < lab <> gta dot com >

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

14 years agoMFC r207750:
yongari [Mon, 17 May 2010 16:47:25 +0000 (16:47 +0000)]
MFC r207750:
  8255x configure command requires number of bytes of configuration
  table. The default size of the configuration table was 22 bytes. To
  use extended feature of 82550/82551 the configuration table size
  was expanded to 32 bytes. The added configuration for 82550/82551
  specifies VLAN hardware tagging and IPSec configuration as well as
  TCO.
  To make configuration easier fxp(4) used a configuration template
  and the template was copied to configuration table. After that,
  some parameters of the configuration table was changed depending on
  controller type and operation mode. However the size of template
  was 22 bytes so some configuration parameters were not properly
  initialized on 82550/82551.
  Fix this by increasing the template size. For 82557, 82558 and
  82559 the size of the configuration is still 22 bytes.

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

14 years agoMFC: Locks SPTREE when setting some SP entries to state DEAD.
vanhu [Mon, 17 May 2010 15:31:24 +0000 (15:31 +0000)]
MFC: Locks SPTREE when setting some SP entries to state DEAD.
This can prevent kernel panics when updating SPs while there is
some traffic for them.

Obtained from: NETASQ

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

14 years agoMFC r207553, r207555, r207651:
mm [Mon, 17 May 2010 14:27:40 +0000 (14:27 +0000)]
MFC r207553, r207555, r207651:

Implement the no_user_check option to pam_krb5.

This option is available in the Linux implementation of pam_krb5
and allows to authorize a user not known to the local system.

Ccache is not used as we don't have a secure uid/gid for the cache file.

Usable for authentication of external kerberos users (e.g Active Directory)
via PAM from applications like Cyrus saslauthd, PHP or perl.

PR: bin/146186
Approved by: deplhij (mentor)

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

14 years agoSince sometimes developer activity the week before a code freeze starts causes
kensmith [Mon, 17 May 2010 14:20:26 +0000 (14:20 +0000)]
Since sometimes developer activity the week before a code freeze starts causes
the stable branch to be a little less reliable than normal mark the stable/8
branch as 8.1-PRERELEASE to warn users.

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

14 years agoMFC r207848:
kib [Mon, 17 May 2010 08:15:04 +0000 (08:15 +0000)]
MFC r207848:
The thread_unsuspend() requires both process mutex and process spinlock
locked. Postpone the process unlock till the thread_unsuspend() is called.

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

14 years agoMFC r207847:
kib [Mon, 17 May 2010 08:11:23 +0000 (08:11 +0000)]
MFC r207847:
For detach procfs ctl command, also clear P_STOPPED_TRACE process stop
flag, and for each thread, TDB_SUSPEND debug flag, same as it is done by
exit1() for orphaned debugee.

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

14 years agoMFC: r207785
rmacklem [Mon, 17 May 2010 02:01:22 +0000 (02:01 +0000)]
MFC: r207785
Fix typos in macros.

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

14 years agoMFC: r207764
rmacklem [Mon, 17 May 2010 01:41:11 +0000 (01:41 +0000)]
MFC: r207764
Patch the experimental NFS client so that it works for NFSv2
by adding the necessary mapping from NFSv3 procedure numbers
to NFSv2 procedure numbers when doing NFSv2 RPCs.

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

14 years agoMFC: r207689
rmacklem [Mon, 17 May 2010 01:18:12 +0000 (01:18 +0000)]
MFC: r207689
If the "-alldirs" export option was used for the V4: line, mountd
would crash in check_options() since dp == NULL for the V4: line.
This patch moves the check for options allowed on the V4: line to
ahead of where dp is used to avoid this crash.

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

14 years agoMFC r207944: sh: Fix pathname expansion with quoted slashes like *\/.
jilles [Sun, 16 May 2010 22:52:51 +0000 (22:52 +0000)]
MFC r207944: sh: Fix pathname expansion with quoted slashes like *\/.

These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and
d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4 in dash.

Because this is the first code I'm importing from dash to expand.c, add the
Herbert Xu copyright notice which is in dash's expand.c.

When pathname expanding *\/, the CTLESC representing the quoted state was
erroneously taken as part of the * pathname component. This CTLESC was then
seen by the pattern matching code as escaping the '\0' terminating the
string.

The code is slightly different because dash converts the CTLESC characters
to backslashes and removes all the other CTL* characters to allow
substituting glob(3).

The effect of the bug was also slightly different from dash (where nothing
matched at all). Because a CTLESC can escape a '\0' in some way, whether
files were included despite the bug depended on memory that should not be
read. In particular, on many machines /*\/ expanded to a strict subset of
what /*/ expanded to.

Example:
  echo /*"/null"

This should print /dev/null, not /*/null.

PR: bin/146378
Obtained from: dash

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

14 years agoMFC 207985
rrs [Sun, 16 May 2010 16:52:56 +0000 (16:52 +0000)]
MFC 207985

 Fix an old long time bug in generating a
 fwd-tsn. This would appear when greater than
 the size of mbuf TSN's would need to be skipped.

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

14 years agoMFC 207983
rrs [Sun, 16 May 2010 16:51:44 +0000 (16:51 +0000)]
MFC 207983

 More PR-SCTP bugs:
   - Make sure that when you kick the streams you add correctly
     using a 16 bit unsigned.
   - Make sure when sending out you allow FWD-TSN to skip over
     and list the ACKED chunks in the stream/seq list (so the
     rcv will kick the stream)

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

14 years agoMFC 207966 (for Michael)
rrs [Sun, 16 May 2010 16:50:33 +0000 (16:50 +0000)]
MFC 207966 (for Michael)

Get rid of unused constants.

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

14 years agoMFC of 207963
rrs [Sun, 16 May 2010 16:45:49 +0000 (16:45 +0000)]
MFC of 207963

 This fixes PR-SCTP issues:
  - Slide the map at the proper place.
  - Mark the bits in the nr_array ONLY if there
    is no marking.
  - When generating a FWD-TSN we allow us to skip past
    ACKED chunks too.

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

14 years agoMFC of 207924:
rrs [Sun, 16 May 2010 16:42:52 +0000 (16:42 +0000)]
MFC of 207924:

This fixes a bug with the one-2-one model socket when a
user sets up a socket to a server sends data and closes
the socket before the server has called accept(). It used
to NOT work at all. Now we add a flag to the assoc and
defer assoc cleanup so that the accept will succeed

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

14 years agoMFC r208036:
zec [Sun, 16 May 2010 14:53:43 +0000 (14:53 +0000)]
MFC r208036:

  Increase the target buffer for performing NGM_ASCII2BINARY conversion
  from 2000 bytes to 20 Kbytes, which now matches the buffer size used for
  NGM_BINARY2ASCII conversions.

  The aim of this change is to allow for bigger binary structures to be
  managed via netgraph ASCII messages, until we come up with an API
  improvement which would get rid of such arbitrary hardcoded limits.

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

14 years agoMFC r207680:
zec [Sun, 16 May 2010 14:51:36 +0000 (14:51 +0000)]
MFC r207680:

  Add an optional "persistent" flag to ng_hub and ng_bridge, which if set,
  disables automatic node shutdown when the last hook gets disconnected.

  Reviewed by:  julian

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

14 years agoMFC r207817: builtin(1): sh has no @ builtin command.
jilles [Sun, 16 May 2010 11:06:32 +0000 (11:06 +0000)]
MFC r207817: builtin(1): sh has no @ builtin command.

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

14 years agoMFC r207816: Document clock and pshared condvar attributes.
jilles [Sun, 16 May 2010 11:03:46 +0000 (11:03 +0000)]
MFC r207816: Document clock and pshared condvar attributes.

Note: clock accepts CLOCK_VIRTUAL and CLOCK_PROF too, but this seems broken
as it simply waits for the difference of the current and given value of the
clock as if it were CLOCK_MONOTONIC. So document only CLOCK_REALTIME and
CLOCK_MONOTONIC as allowed.

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

14 years agoMerge r199631: Handle current work directories of arbitrary length.
stefanf [Sun, 16 May 2010 10:01:06 +0000 (10:01 +0000)]
Merge r199631: Handle current work directories of arbitrary length.

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

14 years agoMFC r207935: sh: Add some simple testcases for pathname expansion.
jilles [Sat, 15 May 2010 12:51:22 +0000 (12:51 +0000)]
MFC r207935: sh: Add some simple testcases for pathname expansion.

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

14 years agoMFC r207821: Generate some tests for sh's case command
jilles [Sat, 15 May 2010 12:42:07 +0000 (12:42 +0000)]
MFC r207821: Generate some tests for sh's case command
from the fnmatch tests.

I'm committing the generated files because I don't like a build dependency
for the sh(1) tests, and they are small and will not change much.

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

14 years agoMFC r207481, r207956:
mm [Sat, 15 May 2010 07:07:38 +0000 (07:07 +0000)]
MFC r207481, r207956:

MFC r207481 [1]:
Add sysctl and loader tunable vfs.zfs.txg.write_limit_override.
This tunable improves fine-tuning of ZFS write throttling.

MFC r207956 [2]:
Fix possible hang when replaying large truncations.
OpenSolaris onnv revision: 7904:6a124a4ca9c5

PR: kern/146108 [1]
Suggested by: Nikolay Denev <ndenev at gmail.com> [1]
Obtained from: OpenSolaris (Bug ID 6761624) [2]
Approved by: pjd, delphij (mentor)

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

14 years agoMissing fix in lem code to limit WOL to MAGIC,
jfv [Fri, 14 May 2010 22:20:58 +0000 (22:20 +0000)]
Missing fix in lem code to limit WOL to MAGIC,
and made code backward compatible to 7.3 with
conditionals around the buf_ring_free call.

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

14 years agoMFC 208060:
dougb [Fri, 14 May 2010 19:28:16 +0000 (19:28 +0000)]
MFC 208060:

Remove trailing white space. No functional changes.

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

14 years agoMFC: r207885
marius [Fri, 14 May 2010 19:18:07 +0000 (19:18 +0000)]
MFC: r207885

Include <machine/ofw_machdep.h> for OF_getscsinitid().

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

14 years agoMFC: r207586
marius [Fri, 14 May 2010 19:15:51 +0000 (19:15 +0000)]
MFC: r207586

Sun GigaSwift Ethernet 1.0 MMF work with r207585 (MFC'ed to stable/8 in
r208086) in place.

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

14 years agoMFC: r207585
marius [Fri, 14 May 2010 19:11:41 +0000 (19:11 +0000)]
MFC: r207585

- Don't set CAS_PCS_DATAPATH to anything except CAS_PCS_DATAPATH_SERDES
  on Cassini using the external PCS SERDES otherwise unaligned access
  traps and other strange effects happen with some machines. Don't touch
  the MIF which is unused in that case either. These changes require the
  PHY type to use to be determined via the OFW device tree or from the
  VPD in machines without the former.
- Disable the SERDES pins of Saturn when not used in order to save power
  and ensure they are enabled otherwise.
- In cas_attach() use the correct register offset for CAS_PCS_CONF_EN.
- Add some bus space barriers missing in the PCS code path.

These changes make the Sun GigaSwift Ethernet 1.0 MMF cards as well as
the on-board interfaces found in Sun Fire B100s Blade Server work.

PR: 144867

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

14 years agoMFC r207761 partially:
fabient [Fri, 14 May 2010 13:48:11 +0000 (13:48 +0000)]
MFC r207761 partially:
 Add a fastpath to allocate from packet zone when using m_getjcl.
 This will add support for packet zone for at least igb and ixgbe.

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

14 years agoMFC r207755:
fabient [Fri, 14 May 2010 13:42:17 +0000 (13:42 +0000)]
MFC r207755:
Rework the calltree top view by critical callchain.
The percentage shown is the sum of the cost for the codepath.

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

14 years agoMFC r207453:
ed [Fri, 14 May 2010 12:34:06 +0000 (12:34 +0000)]
MFC r207453:

  Remove WNOHANG flag from wait3().

  Because script(1) now reliably terminates when the TTY is closed, it may
  be the case that the call to wait3() occurs just before the child
  process exits. This causes error codes to be ignored.

  Just change script(1) to use waitpid() instead of wait3(). This makes it
  more portable and prevents the need for a loop, since waitpid() only
  returns a specified process.

PR:           bin/146189
Tested by:    amdmi3@, older version

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

14 years agoMFC r207910:
mm [Fri, 14 May 2010 09:57:10 +0000 (09:57 +0000)]
MFC r207910:
(cddl/contrib/opensolaris part)

Fix possible panic with zfs destroy.
OpenSolaris onnv revision: 8779:f164e0e90508

PR: kern/146471
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6784924)

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

14 years agoMFC r207909, r207910, r207911:
mm [Fri, 14 May 2010 09:50:28 +0000 (09:50 +0000)]
MFC r207909, r207910, r207911:

MFC r207909:
Fix zfs rename (may occasionally fail with dataset busy).
OpenSolaris onnv revision: 8517:41a0783dde17

MFC r207910:
Fix possible panic with zfs destroy.
OpenSolaris onnv revision: 8779:f164e0e90508

MFC r207911:
Fix failed assertion on destroying datasets from an older pool version.
OpenSolaris onnv revision: 9390:887948510f80

PR: kern/146471
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 678475767849246826861)

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