Commit Graph

151573 Commits

Author SHA1 Message Date
Marius Strobl
44a296d00a MFC: r201490
There are actually 129 tests here.
2010-05-21 19:47:52 +00:00
Marius Strobl
8a324a2c6d MFC: r197362
IEEE Std 1003.1, 2004 Edition states:

"The escape sequence '\n' shall match a <newline> embedded in
the pattern space."

It is unclear whether this also applies to a \n embedded in a
character class.  Disable the existing handling of \n in a character
class following Mac OS X, GNU sed version 4.1.5 with --posix, and
SunOS 5.10 /usr/bin/sed.

Pointed by:	Marius Strobl
Obtained from:	Mac OS X
2010-05-21 19:45:54 +00:00
Marius Strobl
4c3c0e9df5 MFC: r197361
Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation
of the y (translate) command.

"If a backslash character is immediately followed by a backslash
character in string1 or string2, the two backslash characters shall
be counted as a single literal backslash character"

Pointed by:	Marius Strobl
Obtained from:	Mac OS X
2010-05-21 19:44:23 +00:00
Marius Strobl
4bab9691b8 MFC: r197360
Add correct test results.
2010-05-21 19:35:14 +00:00
Marius Strobl
d43a26d474 MFC: r197357
Describe how other systems treat this case.
2010-05-21 19:22:50 +00:00
Marius Strobl
d9dca217f7 MFC: r197356
Allow [ to be used as a delimiter.

Pointed by:	Marius Strobl
Obtained from:	Apple
2010-05-21 19:21:47 +00:00
Marius Strobl
3efb1b7ff5 MFC: r197509
Wipe out mergeinfo.
2010-05-21 19:17:31 +00:00
Marius Strobl
da7a72d964 MFC: r197352
The transition to Subversion allows us to rename files without
repo-copy hacks.
Remove the test-number prefix from the name of the output files,
so that new test cases can be easily added.
2010-05-21 19:09:41 +00:00
John Baldwin
c0bdbd5fba MFC 208213:
Prevent unloading a kld for a driver that has subinterfaces (vlan and/or
wlan interfaces) from being automatically reloaded via devd shutdown
event handlers.
- Revert part of my previous changes to call ifn_stop on subinterfaces
  when an interface is detached.  It is better to destroy the interfaces
  first so that an 'ifconfig foo0.blah down' doesn't result in ifconfig
  auto-loading if_foo.ko.  The ifconfig command will not be invoked if
  foo0.blah is gone when ifn_stop() is called.  Furthermore, it is not
  necessary to explicitly invoke ifn_stop() after the subinterface is
  destroyed as devd will already do that.
- Pass -n to ifconfig when destroying interfaces so that destroying a
  cloned interface does not kldload any drivers.
2010-05-21 16:17:08 +00:00
John Baldwin
af73bcd787 MFC 208212:
Ignore failures from removing multicast addresses from the parent (trunk)
interface when tearing down a vlan interface.
2010-05-21 16:07:20 +00:00
Stefan Farfeleder
dd0cfed810 Merge r199628 and r199632: Tests for the cd command. 2010-05-21 16:01:57 +00:00
Kenneth D. Merry
6774e0f9c8 MFC r206844:
Don't clear other flags (e.g. CSUM_TCP) when setting CSUM_TSO.  This was
causing TSO to break for the Xen netfront driver.

Reviewed by:	gibbs, rwatson
2010-05-21 04:47:22 +00:00
Norikatsu Shigemura
b15117d752 MFC r207612:
Add support run services_mkdb(8).

Approved by:	dougb, imp (mentor)
Reviewed by:	ume
2010-05-20 22:12:36 +00:00
Edward Tomasz Napierala
943101847b MFC r208035:
Update authors and history.
2010-05-20 18:47:34 +00:00
Edward Tomasz Napierala
674d3a9960 MFC r208034:
Make branding less intrusive - in acl_set(3), in case ACL brand
is ACL_BRAND_UNKNOWN, do what the programmer says instead of failing.
2010-05-20 18:46:11 +00:00
Edward Tomasz Napierala
0941e62812 MFC r208033:
Make it possible to actually use NFSv4 permission bits with acl_set_perm(3)
and acl_delete_perm(3).  It went undetected, because neither setfacl(1)
nor Samba use this routines.  D'oh.
2010-05-20 18:45:07 +00:00
Alan Cox
b28c6ddbbc MFC r207306
Change vm_object_madvise() so that it checks whether the page is invalid
  or unmanaged before acquiring the page queues lock.  Neither of these
  tests require that lock.  Moreover, a better way of testing if the page
  is unmanaged is to test the type of vm object.  This avoids a pointless
  vm_page_lookup().
2010-05-20 16:21:19 +00:00
Konstantin Belousov
830ca8ea8c MFC r207730:
Document MAKEDEV_NOWAIT flag for  make_dev_credf(9).
2010-05-20 09:41:13 +00:00
Martin Matuska
cdba28b0eb Add xz to rescue.
Approved by:	delphij (mentor)
2010-05-20 09:39:01 +00:00
Konstantin Belousov
c67c645d9d MFC r207729:
Add MAKEDEV_NOWAIT flag for make_dev_credf(9).
2010-05-20 09:38:15 +00:00
Martin Matuska
f950c14263 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)
2010-05-20 09:35:31 +00:00
Marius Strobl
5e6587c9a7 MFC: r208143
Add the ofw_bus_if.h dependency introduced with r207585 (MFC'ed to
stable/8 in r208086).
2010-05-20 08:43:29 +00:00
Maxim Konovalov
f872cfcb7e MFC r206889: add do-not-fragment option support to ping6(8). 2010-05-20 08:03:08 +00:00
Martin Matuska
eb200e320f 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 6729696, 6730101)
- 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:
6333409, 6418042, 6757112, 6725668, 6725675, 6725680,
6725698, 6729696, 6730101, 6752226, 6577985, 6755042

Approved by:	pjd, delphij (mentor)
Obtained from:	OpenSolaris (multiple Bug IDs)
2010-05-20 06:51:48 +00:00
Xin LI
d02025c89e MFC r207733:
Plug memory leak.
2010-05-20 00:31:09 +00:00
Andrew Thompson
a24aaef782 MFC r208012
Support getting signed and unsigned HID data.

Submitted by:	Alex Deiter
2010-05-20 00:05:33 +00:00
Gordon Tetlow
db86a57ece 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@)
2010-05-19 22:03:45 +00:00
Pyun YongHyeon
f37531017a 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>
2010-05-19 21:08:38 +00:00
Pyun YongHyeon
71cfff63cb 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.
2010-05-19 20:56:18 +00:00
Jilles Tjoelker
eb167404df 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
2010-05-19 20:53:21 +00:00
John Baldwin
b58dad48ea 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.
2010-05-19 19:43:49 +00:00
Alexander Motin
4567e8334a 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.
2010-05-19 14:50:07 +00:00
Andriy Gapon
86ffeaa182 MFC r207360: periodically save system time to hardware time-of-day clock 2010-05-19 10:34:15 +00:00
Andriy Gapon
e5f5b37212 MFC r207359,207362: kern_ntptime: abstract time error check into a
function
2010-05-19 10:15:37 +00:00
Konstantin Belousov
3c5636cdf1 MFC r207958:
Route all returns from the interrupts and faults through the doreti_iret
labeled iretq instruction.

MFC r208026:
Do not use .extern.
2010-05-19 09:32:59 +00:00
Konstantin Belousov
c89c4842bc MFC r207957:
Remove unneeded overrides of the segment registers.
2010-05-19 09:30:41 +00:00
Martin Matuska
bf7a7e9b29 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: 6775357, 6859997, 6868951, 6847615)
2010-05-19 06:49:52 +00:00
Rebecca Cran
9c6a66a45b 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)
2010-05-18 18:20:11 +00:00
Rebecca Cran
f11fc95604 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)
2010-05-18 18:19:06 +00:00
Bernhard Schmidt
a6d4f1ab38 MFC r207926:
Enable 5.5 and 11Mbit TX rates.

Reviewed by:	sam
Approved by:	rpaulo (mentor)
2010-05-18 17:43:53 +00:00
Marius Strobl
e1cb7a6617 MFC: r208098
Document the led(4) interface to the identification LEDs.
2010-05-18 17:15:40 +00:00
Marius Strobl
ed6b099ba7 MFC: r208117
Fix a mismerge in r206001 (MFC'ed to stable/8 in r206211).

PR:		146614
Approved by:	jfv (implicit)
2010-05-18 17:09:20 +00:00
Marius Strobl
78c1f0d3c8 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().
2010-05-18 17:02:24 +00:00
Kai Wang
73f68b3d41 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.
2010-05-18 10:32:20 +00:00
Attilio Rao
d5a628572d 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.
2010-05-18 10:24:23 +00:00
Martin Matuska
f56075cfb0 Bump __FreeBSD_version for liblzma addition.
Approved by:	delphij (mentor)
2010-05-18 10:02:45 +00:00
Martin Matuska
3829a73468 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)
2010-05-18 09:59:09 +00:00
Martin Matuska
4458b5abfc 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 6386929, 6758338, 6755389, 6847118)
2010-05-18 07:45:27 +00:00
Bjoern A. Zeeb
7b6bd42ad1 MFC r208077:
Document the 'short preamble' capability for 802.11bg.

  Reviewed by:	sam
2010-05-18 04:21:50 +00:00
Bjoern A. Zeeb
f7eebc1c4e 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
2010-05-18 04:20:35 +00:00