]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r203678:
brucec [Thu, 18 Feb 2010 10:59:32 +0000 (10:59 +0000)]
MFC r203678:

Rename usb2_ structures and variables to usb_.

Approved by: rrs (mentor)

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

14 years agoMFC r203323:
brucec [Thu, 18 Feb 2010 10:55:42 +0000 (10:55 +0000)]
MFC r203323:

Remove extra semicolon.

Approved by: rrs (mentor)

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

14 years agoMFC r203322:
brucec [Thu, 18 Feb 2010 10:51:31 +0000 (10:51 +0000)]
MFC r203322:

Fix typo of ENOTCONN.
Add missing RETURN VALUES section in sctp_opt_info(3).

Approved by: rrs (mentor)

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

14 years agoMFC r203690:
brucec [Thu, 18 Feb 2010 10:48:37 +0000 (10:48 +0000)]
MFC r203690:

Xorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be
configured when running ldconfig.

PR: bin/138945
Approved by: rrs (mentor)

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

14 years agoMFC r203688:
brucec [Thu, 18 Feb 2010 10:46:25 +0000 (10:46 +0000)]
MFC r203688:

Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows
the -M option to be used without specifying -N.

PR: bin/138146
Approved by: rrs (mentor)

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

14 years agoMFC r203681:
brucec [Thu, 18 Feb 2010 10:39:53 +0000 (10:39 +0000)]
MFC r203681:

Fix typo and remove extra spaces.

Approved by: rrs (mentor)

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

14 years agoAdd the long missing "destroy" option [mfc of 203505]
mjacob [Thu, 18 Feb 2010 01:15:58 +0000 (01:15 +0000)]
Add the long missing "destroy" option [mfc of 203505]

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

14 years agoMFC r203441:
kib [Wed, 17 Feb 2010 09:09:12 +0000 (09:09 +0000)]
MFC r203441:
Placate new binutils, by using 16-bit %ax instead of 32-bit %eax as an
argument for fnstsw. Explicitely specify sizes for the XMM control and
status word and X87 control and status words.

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

14 years agoMFC r203875:
kib [Wed, 17 Feb 2010 09:03:38 +0000 (09:03 +0000)]
MFC r203875:
Do not leak process lock when current thread is not allowed to see target.

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

14 years agoMerge 203689 from head:
gavin [Tue, 16 Feb 2010 22:23:33 +0000 (22:23 +0000)]
Merge 203689 from head:

  Install the padlock(4) man page on amd64 as well as i386, to match the
  platforms where the driver itself is compiled and installed.

PR: docs/130895
Reported by: George Hartzell <hartzell alerce.com>

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

14 years agoMerge r202461 from head:
gavin [Tue, 16 Feb 2010 22:19:55 +0000 (22:19 +0000)]
Merge r202461 from head:

  Implement an "-x" option to cp(1), for compatibility with Linux and
  feature parity with du(1) and similar:  When set, cp(1) will not traverse
  mount points.

PR: bin/88056
Initial patch by: Graham J Lee   leeg teaching.physics.ox.ac.uk

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

14 years agoMFC: r203676
emax [Tue, 16 Feb 2010 19:00:47 +0000 (19:00 +0000)]
MFC: r203676

Introduce new rc.conf variable firewall_coscripts. It can be used to
specify list of executables and/or rc scripts that should be executed
after firewall starts/stops.

Submitted by: Yuri Kurenkov <y dot kurenkov at init dot ru>
Reviewed by: rhodes, rc@

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

14 years agoMFC r203408:
delphij [Tue, 16 Feb 2010 06:34:44 +0000 (06:34 +0000)]
MFC r203408:

Prevent NULL deference by checking return value of
gctl_get_asciiparam.

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

14 years agoMFC r203124:
mav [Mon, 15 Feb 2010 16:41:30 +0000 (16:41 +0000)]
MFC r203124:
Note added FIS-based switching support.

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

14 years agoMFC r203637:
raj [Mon, 15 Feb 2010 15:00:40 +0000 (15:00 +0000)]
MFC r203637:

Improve checking whether an ARM VA has a valid mapping before performing cache
sync.

VIPT/PIPT caches need valid VA-PA mapping in PTE for a cache operation to
succeed (unlike VIVT). Prior to this fix pmap was using l2pte_valid() for that
check, but this is not sufficient as the function merely checks if a PTE
exists (there can be existing but _invalid_ entries in the table).

A new pmap_has_valid_mapping() routine is introduced to do this job right by
checking proper PTE flags.

Among other potential problems this cures coherency issues with L2 caches on
MV-78100.

Submitted by: Grzegorz Bernacki, Piotr Ziecik
Reviewed, tested by: marcel
Obtained from: Semihalf

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

14 years agoMFC: r202969: Actualize.
ru [Mon, 15 Feb 2010 11:29:27 +0000 (11:29 +0000)]
MFC: r202969: Actualize.

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

14 years agoMFC r203426:
mav [Sun, 14 Feb 2010 20:00:21 +0000 (20:00 +0000)]
MFC r203426:
Disable PHY of unconnected ports when interface power management enabled.
It allows to save a bit more power (about 0.5W on 2 unused ports of ICH8M).

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

14 years agoMFC r203165:
mav [Sun, 14 Feb 2010 19:59:06 +0000 (19:59 +0000)]
MFC r203165:
Reset port on disconnect event, to abort any running requests.

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

14 years agoMFC r203123:
mav [Sun, 14 Feb 2010 19:57:54 +0000 (19:57 +0000)]
MFC r203123:
Add FIS-based switching support. If controller supports FBS, it allows
several devices beyond Port Multiplier to work simultaneously, substantially
increasing performance.

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

14 years agoMFC r203449:
mav [Sun, 14 Feb 2010 19:56:42 +0000 (19:56 +0000)]
MFC r203449:
Implement poll method for atapicam.
It is not perfect, but better then nothing.

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

14 years agoMFC r203347:
mav [Sun, 14 Feb 2010 19:55:41 +0000 (19:55 +0000)]
MFC r203347:
NetCell is a PCI hardware RAID without cable and mode setting.

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

14 years agoMFC r203525:
mav [Sun, 14 Feb 2010 19:54:16 +0000 (19:54 +0000)]
MFC r203525:
Report SATA300 chips also as SATA.

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

14 years agoMFC r203445:
mav [Sun, 14 Feb 2010 19:53:09 +0000 (19:53 +0000)]
MFC r203445:
Report to CAM unit number of underlying ataX bus device, instead of this
atapicamX. It is more apropriate and useful together with "ata" name.

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

14 years agoMFC r203499:
mav [Sun, 14 Feb 2010 19:51:39 +0000 (19:51 +0000)]
MFC r203499:
On probe error, if restart requested, skip any retries and recovery.
Just restart probe from the beginning immediately.

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

14 years agoMFC r203421:
mav [Sun, 14 Feb 2010 19:50:33 +0000 (19:50 +0000)]
MFC r203421:
Add Power Up In Stand-by feature support. Device with PUIS enabled
require explicit command to do initial spin-up. Mark that command
with CAM_HIGH_POWER flag, to allow CAM manage staggered spin-up.

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

14 years agoMFC r203386:
mav [Sun, 14 Feb 2010 19:48:53 +0000 (19:48 +0000)]
MFC r203386:
Change the way in which fake async events generated. Do not use
taskqueue for lock decoupling, as it causes unwanted races.

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

14 years agoMFC r203385:
mav [Sun, 14 Feb 2010 19:46:54 +0000 (19:46 +0000)]
MFC r203385:
- Use separate buffer for identify data fetching. We can't use main buffer
here if device already running, as data need to be formatted before use.
- Remove some saved_ccb variables. They are unused now.

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

14 years agoMFC r203376, r203384:
mav [Sun, 14 Feb 2010 19:44:48 +0000 (19:44 +0000)]
MFC r203376, r203384:
- Give ATA/SATA SIMs info about ATAPI packet size, supported by device.
- Make ATA XPT to reject longer SCSI CDBs then supported by device, or
any SCSI CDBs, if device doesn't support ATAPI.

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

14 years agoMFC r203108:
mav [Sun, 14 Feb 2010 19:38:27 +0000 (19:38 +0000)]
MFC r203108:
Large set of CAM improvements:
- Unify bus reset/probe sequence. Whenever bus attached at boot or later,
CAM will automatically reset and scan it. It allows to remove duplicate
code from many drivers.
- Any bus, attached before CAM completed it's boot-time initialization,
will equally join to the process, delaying boot if needed.
- New kern.cam.boot_delay loader tunable should help controllers that
are still unable to register their buses in time (such as slow USB/
PCCard/ CardBus devices), by adding one more event to wait on boot.
- To allow synchronization between different CAM levels, concept of
requests priorities was extended. Priorities now split between several
"run levels". Device can be freezed at specified level, allowing higher
priority requests to pass. For example, no payload requests allowed,
until PMP driver enable port. ATA XPT negotiate transfer parameters,
periph driver configure caching and so on.
- Frozen requests are no more counted by request allocation scheduler.
It fixes deadlocks, when frozen low priority payload requests occupying
slots, required by higher levels to manage theit execution.
- Two last changes were holding proper ATA reinitialization and error
recovery implementation. Now it is done: SATA controllers and Port
Multipliers now implement automatic hot-plug and should correctly
recover from timeouts and bus resets.
- Improve SCSI error recovery for devices on buses without automatic sense
reporting, such as ATAPI or USB. For example, it allows CAM to wait, while
CD drive loads disk, instead of immediately return error status.
- Decapitalize diagnostic messages and make them more readable and sensible.
- Teach PMP driver to limit maximum speed on fan-out ports.
- Make boot wait for PMP scan completes, and make rescan more reliable.
- Fix pass driver, to return CCB to user level in case of error.
- Increase number of retries in cd driver, as device may return several UAs.

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

14 years agoMFC r203030:
mav [Sun, 14 Feb 2010 19:28:45 +0000 (19:28 +0000)]
MFC r203030:
Add support for SATA part of Marvell 88SE912x controllers to ahci(4).
Limit early revisions from 6Gb/s to 3Gb/s by default, or they negotiate
only 1.5Gb/s, when 3Gb/s devices connected.

Add dummy driver for PATA part of these controllers, preventing generic
driver attach them. It causes system freeze when SATA controller used after
PATA was touched.

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

14 years agoMFC r202699:
mav [Sun, 14 Feb 2010 19:23:05 +0000 (19:23 +0000)]
MFC r202699:
Make ata_getrev() an optional method by implementing ata_null_getrev().
This fixes a bogus '???' boot message on Cambria boards with a CompactFlash
card.

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

14 years agoMFp4:
mav [Sun, 14 Feb 2010 12:24:12 +0000 (12:24 +0000)]
MFp4:
After last running command completed, give commands in timeout state
second time.

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

14 years agoMFC r203524:
mav [Sun, 14 Feb 2010 12:04:25 +0000 (12:04 +0000)]
MFC r203524:
When hacking INQUIRY result, make sure that it is right INQUIRY and there
is enough of result to hack.

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

14 years agoMFC r203489:
mav [Sun, 14 Feb 2010 12:03:04 +0000 (12:03 +0000)]
MFC r203489:
Return CAM_RELEASE_SIMQ flag only when it is needed, when SIM really
was frozen before and should be released.

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

14 years agoMFC r203484:
mav [Sun, 14 Feb 2010 12:00:23 +0000 (12:00 +0000)]
MFC r203484:
Do not release device, when changing number of openings.

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

14 years agoMFC r202150, r202170:
mav [Sun, 14 Feb 2010 11:53:51 +0000 (11:53 +0000)]
MFC r202150, r202170:
Make OSS_GETVERSION ioctl really work. It has 'M' group, not 'P',
as different nearby ones, and was grabbed by MIXER_xxx() handler.

While there, replace '(cmd & MIXER_xxx(0)) == MIXER_xxx(0)' expressions
with more correct '(cmd & ~0xff) == MIXER_xxx(0)'. Use of bit operations
to compare numeric fields doesn't looks sane.

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

14 years agoMerge r203310,203547,203717 from head:
gavin [Sun, 14 Feb 2010 09:48:53 +0000 (09:48 +0000)]
Merge r203310,203547,203717 from head:

  Implement the "-i" option to sysctl(8), to ignore failures while
  retrieving individual OIDs.  This allows the same list of OIDs to be
  passed to sysctl(8) across different systems where particular OIDs may
  not exist, and still get as much information as possible from them.

PR: bin/123644
Submitted by: dhw

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

14 years agoMerge r203620,203621 from head:
gavin [Sun, 14 Feb 2010 09:40:58 +0000 (09:40 +0000)]
Merge r203620,203621 from head:

  Document support for the D-Link DFE520-TX card (supported with the vr(4)
  driver)

PR: kern/135989
Submitted by: "Rashid N. Achilov"  citycat4 ngs.ru

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

14 years agoMerge r203636 from head:
gavin [Sun, 14 Feb 2010 09:37:13 +0000 (09:37 +0000)]
Merge r203636 from head:

  Correct arguments to free_unr(), "item" was missing.

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

14 years agoMerge r200530 from head:
gavin [Sun, 14 Feb 2010 09:34:27 +0000 (09:34 +0000)]
Merge r200530 from head:

  Don't panic on failure to attach if we fail before or during the
  if_alloc() of ifp.

  This fixes the panic reported in the PRs, but not the attach failure.

PR: kern/139079, kern/143874
Tested by: Steven Noonan <steven uplinklabs.net>
Reviewed by: thompsa

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

14 years agoMFC: r203303
rmacklem [Sun, 14 Feb 2010 00:43:42 +0000 (00:43 +0000)]
MFC: r203303
Patch the experimental NFS client so that there is a timeout
for negative name cache entries in a manner analogous to
r202767 for the regular NFS client. Also, make the code in
nfs_lookup() compatible with that of the regular client
and replace the sysctl variable that enabled negative name
caching with the mount point option.

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

14 years agoMerge r201920 to stable/8:
antoine [Sat, 13 Feb 2010 17:48:52 +0000 (17:48 +0000)]
Merge r201920 to stable/8:
 libusb20 was renamed libusb several months ago.

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

14 years agoMerge r201919 to stable/8:
antoine [Sat, 13 Feb 2010 17:41:22 +0000 (17:41 +0000)]
Merge r201919 to stable/8:
 Fix a typo.

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

14 years agoMerge r201918 to stable/8:
antoine [Sat, 13 Feb 2010 17:35:29 +0000 (17:35 +0000)]
Merge r201918 to stable/8:
  Fix a typo.

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

14 years agoMFC r203387: Exclude the interfaces which IPv6 and/or accepting
ume [Sat, 13 Feb 2010 16:28:25 +0000 (16:28 +0000)]
MFC r203387: Exclude the interfaces which IPv6 and/or accepting
RA is disabled from the auto probed interface list.

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

14 years agoMFC r203378: Make -a option actually work.
ume [Sat, 13 Feb 2010 16:25:33 +0000 (16:25 +0000)]
MFC r203378: Make -a option actually work.

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

14 years agoMerge r203393,r203395 from head:
gavin [Sat, 13 Feb 2010 10:26:00 +0000 (10:26 +0000)]
Merge r203393,r203395 from head:

  The multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d.
  This bug in the man page has gone unnoticed for over 15 years!

PR: docs/143461
Submitted by: Jeremy Huddleston  jeremyhu apple.com

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

14 years agoMFC r202130:
delphij [Sat, 13 Feb 2010 00:39:46 +0000 (00:39 +0000)]
MFC r202130:

Set svn:executable to *.

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

14 years agoMigrate mergeinfo which was done on wrong target back to etc/ (203163).
delphij [Sat, 13 Feb 2010 00:39:03 +0000 (00:39 +0000)]
Migrate mergeinfo which was done on wrong target back to etc/ (203163).

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

14 years agoMFC r203053:
delphij [Sat, 13 Feb 2010 00:30:50 +0000 (00:30 +0000)]
MFC r203053:

Add a manual page for nvram(4).

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

14 years agoMFC r203534: Correct two typos.
delphij [Sat, 13 Feb 2010 00:29:01 +0000 (00:29 +0000)]
MFC r203534: Correct two typos.

Reported by:    Brandon Falk <falkman gamozo org>

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

14 years agoPick up some changes the the MFC missed.
mjacob [Fri, 12 Feb 2010 00:47:23 +0000 (00:47 +0000)]
Pick up some changes the the MFC missed.

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

14 years agoMFC: r203119
rmacklem [Thu, 11 Feb 2010 21:25:48 +0000 (21:25 +0000)]
MFC: r203119
Patch the experimental NFS client in a manner analogous to
r203072 for the regular NFS client. Also, delete two fields
of struct nfsmount that are not used by the FreeBSD port of
the client.

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

14 years agoMFC a number of changes from head for ISP (203478,203463,203444,202418,201758,
mjacob [Thu, 11 Feb 2010 18:34:06 +0000 (18:34 +0000)]
MFC a number of changes from head for ISP (203478,203463,203444,202418,201758,
201408,201325,200089,198822,197373,197372,197214,196162). Since one of those
changes was a semicolon cleanup from somebody else, this touches a lot more.

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

14 years agoMFC of r201700 | mckusick | 2010-01-06
mckusick [Wed, 10 Feb 2010 20:35:20 +0000 (20:35 +0000)]
MFC of r201700 | mckusick | 2010-01-06

This corrects a bug that manifested itself as identifying the last
cylinder group of a UFS1 filesystem as bad. The error was in the check
and not in the cylinder group itself. So even though fsck fixed the
cylinder group correctly, it was still endlessly reported as bad.

This bug first appeared in 8.0 so does not apply to earlier releases.

PR:             141992
Reported by:    Dan Strick

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

14 years agoMFC: r203072
rmacklem [Wed, 10 Feb 2010 16:16:50 +0000 (16:16 +0000)]
MFC: r203072
Fix a race that can occur when nfs nfsiod threads are being created.
Without this patch it was possible for a different thread that calls
nfs_asyncio() to snitch a newly created nfsiod thread that was
intended for another caller of nfs_asyncio(), because the nfs_iod_mtx
mutex was unlocked while the new nfsiod thread was created. This patch
labels the newly created nfsiod, so that it is not taken by another
caller of nfs_asyncio(). This is believed to fix the problem reported
on the freebsd-stable email list under the subject:
FreeBSD NFS client/Linux NFS server issue.

Tested by: to DOT my DOT trociny AT gmail DOT com
Reviewed by: jhb

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

14 years agoCleanup mergeinfo after r203718.
bz [Wed, 10 Feb 2010 12:20:08 +0000 (12:20 +0000)]
Cleanup mergeinfo after r203718.

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

14 years agoMFC r203062: acpi_hpet: correctly get number of timers in a timer block
avg [Wed, 10 Feb 2010 09:46:31 +0000 (09:46 +0000)]
MFC r203062: acpi_hpet: correctly get number of timers in a timer block

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

14 years agoMFC r203483:
zec [Wed, 10 Feb 2010 08:50:06 +0000 (08:50 +0000)]
MFC r203483:
  Instead of spamming the console on each curvnet recursion event, print
  out each such call graph only once, along with a stack backtrace.  This
  should make kernels built with VNET_DEBUG reasonably usable again in
  busy / production environments.

  Introduce a new DDB command "show vnetrcrs" which dumps the whole log
  of distinctive curvnet recursion events.  This might be useful when
  recursion reports get burried / lost too deep in the message buffer.
  In the later case stack backtraces are not available.

  Reviewed by:  bz

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

14 years agoMFC r202060:
delphij [Wed, 10 Feb 2010 00:34:13 +0000 (00:34 +0000)]
MFC r202060:

Add a new option, -q howmany, which when used in conjuction with -w,
exits netstat after _howmany_ outputs.

Requested by: thomasa
Reviewed by: freebsd-net (bms, old version in early 2007)

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

14 years agoMFC r198593:
emaste [Tue, 9 Feb 2010 22:05:30 +0000 (22:05 +0000)]
MFC r198593:

  Rename aac_fast_intr to aac_filter to reflect its current use.  Eliminate
  the fallback of using the filter as an interrupt handler, as it is no
  longer needed.

  Discussed with:       scottl, jhb

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

14 years agoMFC r203401
qingli [Tue, 9 Feb 2010 19:27:54 +0000 (19:27 +0000)]
MFC r203401

Some of the existing ppp and vpn related scripts create and set
the IP addresses of the tunnel end points to the same value. In
these cases the loopback route is not installed for the local
end.

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

14 years agoMFC Revision: 203574
bms [Tue, 9 Feb 2010 18:43:50 +0000 (18:43 +0000)]
MFC Revision: 203574
  Add sane-port (Scanner Access Now Easy) as port 6566.

Obtained from:  http://www.iana.org/assignments/port-numbers

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

14 years agoMFC r203077:
emaste [Tue, 9 Feb 2010 13:07:32 +0000 (13:07 +0000)]
MFC r203077:

  Add missing return, in a rare case where we can't allocate memory in
  deallocate.

Submitted by: Ryan Stone (rysto32 at gmail dot com)
Approved by:  jasone

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

14 years agoMFC: r198231: Properly re-create "-s size" argument to newfs(8).
ru [Tue, 9 Feb 2010 12:20:48 +0000 (12:20 +0000)]
MFC: r198231: Properly re-create "-s size" argument to newfs(8).

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

14 years agoMFC r200781:
jh [Mon, 8 Feb 2010 15:55:01 +0000 (15:55 +0000)]
MFC r200781:

Cast time_t values to intmax_t and use %jd with printf.

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

14 years agoMFC r200780:
jh [Mon, 8 Feb 2010 15:53:28 +0000 (15:53 +0000)]
MFC r200780:

Remove non-working special case for pipe(2) from amd64-fbsd32.c and
i386-fbsd.c. Add pipe(2) to syscall table to decode it's pointer
argument properly and re-add special handling for pipe(2) return value
to print_syscall_ret().

PR: bin/120870

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

14 years agoMFC r200752:
jh [Mon, 8 Feb 2010 15:50:51 +0000 (15:50 +0000)]
MFC r200752:

Avoid sharing the file descriptor of the output file with traced
processes by setting the FD_CLOEXEC flag for the output file.

PR: bin/140493

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

14 years agoMFC r200751:
jh [Mon, 8 Feb 2010 15:48:18 +0000 (15:48 +0000)]
MFC r200751:

Add fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),
getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to
decode their arguments correctly.

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

14 years agoMC r202889, r202940:
attilio [Mon, 8 Feb 2010 14:08:52 +0000 (14:08 +0000)]
MC r202889, r202940:
- Fix a race in sched_switch() of sched_4bsd.
  Block the td_lock when acquiring explicitly sched_lock in order to prevent
  races with other td_lock contenders.
- Merge the ULE's internal function thread_block_switch() into the global
  thread_lock_block() and make the former semantic as the default for
  thread_lock_block().
- Split out an invariant in order to have better checks.

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

14 years agoMFC r203414:
davidxu [Mon, 8 Feb 2010 03:11:55 +0000 (03:11 +0000)]
MFC r203414:
After busied the lock, re-read state word before checking waiters flag,
otherwise, the waiters bit may not be set and a wakeup is lost.

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

14 years agoMerge r202115 from head:
gavin [Sun, 7 Feb 2010 21:04:26 +0000 (21:04 +0000)]
Merge r202115 from head:

  Our standard "xterm" termcap entry supports colour, so this tip is redundant.
  As it happens, "xterm-color" has just been an alias for "xterm" since
  src/share/termcap/termcap.src 1.131 in September 2002.

PR: docs/132959

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

14 years agoMFC 202961:
dougb [Sun, 7 Feb 2010 20:28:24 +0000 (20:28 +0000)]
MFC 202961:

Upgrade to BIND 9.6.1-P3.

This version address the following vulnerabilities:

BIND 9 Cache Update from Additional Section
https://www.isc.org/advisories/CVE-2009-4022v6
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4022
A nameserver with DNSSEC validation enabled may incorrectly add
unauthenticated records to its cache that are received during the
resolution of a recursive client query

BIND 9 DNSSEC validation code could cause bogus NXDOMAIN responses
https://www.isc.org/advisories/CVE-2010-0097
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0097
There was an error in the DNSSEC NSEC/NSEC3 validation code that could
cause bogus NXDOMAIN responses (that is, NXDOMAIN responses for records
proven by NSEC or NSEC3 to exist) to be cached as if they had validated
correctly

These issues only affect systems with DNSSEC validation enabled.

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

14 years agoMFC 202960:
dougb [Sun, 7 Feb 2010 20:26:45 +0000 (20:26 +0000)]
MFC 202960:

Copyright-only changes to generated files as part of the 9.6.1-P3 update

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

14 years agoMFC: r202900
marius [Sun, 7 Feb 2010 11:59:55 +0000 (11:59 +0000)]
MFC: r202900

Merge r203608 from amd64/i386:

In syscall(), reread syscall number and arguments after ptracestop(),
if debugger modified anything in the process environment.

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

14 years agoMFC r202882:
kib [Sun, 7 Feb 2010 11:37:38 +0000 (11:37 +0000)]
MFC r202882:
For i386, amd64 and ia32 on amd64 MD syscall(), reread syscall number
and arguments after ptracestop(), if debugger modified anything in the
process environment.

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

14 years agoMFC r202529:
kib [Sun, 7 Feb 2010 10:51:17 +0000 (10:51 +0000)]
MFC r202529:
vunref() the vnode in vm object deallocation code for OBJT_VNODE
appropriate number of times to prevent possible vnode reference leak.

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

14 years agoMFC r202528:
kib [Sun, 7 Feb 2010 10:44:44 +0000 (10:44 +0000)]
MFC r202528:
Add vunref(9).

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

14 years agoMFC of 197952 and 198075
julian [Sun, 7 Feb 2010 09:00:22 +0000 (09:00 +0000)]
MFC of 197952 and 198075

    Virtualize the pfil hooks so that different jails may chose different
    packet filters. ALso allows ipfw to be enabled on on ejail and disabled
    on another. In 8.0 it's a global setting.
and
    Unbreak the VIMAGE build with IPSEC, broken with r197952 by
    virtualizing the pfil hooks.
    For consistency add the V_ to virtualize the pfil hooks in here as well.

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

14 years agoMFC: r203486: Shortening a passphrase caused wrong authentication key
ru [Sun, 7 Feb 2010 06:22:28 +0000 (06:22 +0000)]
MFC: r203486: Shortening a passphrase caused wrong authentication key
to be used.

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

14 years agoMFC r202916: Make strsignal(3) thread-safe.
ume [Sun, 7 Feb 2010 04:27:18 +0000 (04:27 +0000)]
MFC r202916: Make strsignal(3) thread-safe.

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

14 years agoMFC: r203185
marius [Sat, 6 Feb 2010 17:33:39 +0000 (17:33 +0000)]
MFC: r203185

Implement handling of the third argument of cpu_switch().

PR: 143215

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

14 years agoMFC r203200; Allow use of -6 option to "server" and "peer" in ntp.conf.
ume [Sat, 6 Feb 2010 15:32:42 +0000 (15:32 +0000)]
MFC r203200; Allow use of -6 option to "server" and "peer" in ntp.conf.

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

14 years agoMFC r203160: add static qualifier to definition of a static function
avg [Sat, 6 Feb 2010 12:17:20 +0000 (12:17 +0000)]
MFC r203160: add static qualifier to definition of a static function

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

14 years agoMFC r197104,197105,197106,197107,197688,198237,199337,199338,200553,200554,
avg [Sat, 6 Feb 2010 12:03:25 +0000 (12:03 +0000)]
MFC r197104,197105,197106,197107,197688,198237,199337,199338,200553,200554,
202771,202773: bring acpica version to 20100121

MFC details:
r197104 | jkim | 2009-09-12 01:48:53 +0300 (Sat, 12 Sep 2009) | 4 lines
MFV:    r196804
Import ACPICA 20090903

r197105 | jkim | 2009-09-12 01:49:34 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197106 | jkim | 2009-09-12 01:50:15 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197107 | jkim | 2009-09-12 01:56:08 +0300 (Sat, 12 Sep 2009) | 2 lines
Canonify include paths for newly added files.

r197688 | jkim | 2009-10-01 23:56:15 +0300 (Thu, 01 Oct 2009) | 4 lines
Compile ACPI debugger and disassembler for kernel modules
unconditionally.
These files will generate almost empty object files without
ACPI_DEBUG/DDB
options.  As a result, size of acpi.ko will increase slightly.

r198237 | jkim | 2009-10-19 19:12:58 +0300 (Mon, 19 Oct 2009) | 2 lines
Merge ACPICA 20091013.

r199337 | jkim | 2009-11-16 23:47:12 +0200 (Mon, 16 Nov 2009) | 2 lines
Merge ACPICA 20091112.

r199338 | jkim | 2009-11-16 23:53:56 +0200 (Mon, 16 Nov 2009) | 2 lines
Add a forgotten module Makefile change from the previous commit.

r200553 | jkim | 2009-12-15 00:24:04 +0200 (Tue, 15 Dec 2009) | 2 lines
Merge ACPICA 20091214.

r200554 | jkim | 2009-12-15 00:28:32 +0200 (Tue, 15 Dec 2009) | 3 lines
Remove _FDE quirk handling as these quirks are automatically repaired
by ACPICA layer since ACPICA 20091214.

r202771 | jkim | 2010-01-21 23:14:28 +0200 (Thu, 21 Jan 2010) | 2 lines
Merge ACPICA 20100121.

r202773 | jkim | 2010-01-21 23:31:39 +0200 (Thu, 21 Jan 2010) | 2 lines
Fix a new header inclusion.

Discussed with: jkim, jhb
No objections from: acpi@

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

14 years agoMFC r200632:
jh [Sat, 6 Feb 2010 11:42:23 +0000 (11:42 +0000)]
MFC r200632:

The input line length limit mentioned on the manual page was removed by
r176119.

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

14 years agoMFC r200441:
jh [Sat, 6 Feb 2010 11:39:33 +0000 (11:39 +0000)]
MFC r200441:

The input line length limit mentioned on the manual page was removed by
r179374.

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

14 years agoMFC r203043, r203058:
mav [Fri, 5 Feb 2010 12:17:14 +0000 (12:17 +0000)]
MFC r203043, r203058:
Do not place fake interrupt register on chip.
Now we have better place for it.

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

14 years agoMFC r203034:
mav [Fri, 5 Feb 2010 12:09:43 +0000 (12:09 +0000)]
MFC r203034:
Restore SATA speed reporting, broken by ATA_CAM changes.

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

14 years agoMFC r203033:
mav [Fri, 5 Feb 2010 12:07:53 +0000 (12:07 +0000)]
MFC r203033:
Clear ch->devices, if hard-reset failed.
This makes hot-plug work better.

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

14 years agoMFC r201566, r201567:
mav [Fri, 5 Feb 2010 11:56:12 +0000 (11:56 +0000)]
MFC r201566, r201567:
Move wakeup() out of mutex to reduce contention.

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

14 years agoMFC r201545:
mav [Fri, 5 Feb 2010 11:53:41 +0000 (11:53 +0000)]
MFC r201545:
Slightly optimize XOR calculation.

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

14 years agoMFC r201264:
mav [Fri, 5 Feb 2010 11:52:28 +0000 (11:52 +0000)]
MFC r201264:
Call wakeup() only for the first request on the queue.

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

14 years agoFix mergeinfo from r197799
gavin [Fri, 5 Feb 2010 08:56:10 +0000 (08:56 +0000)]
Fix mergeinfo from r197799

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

14 years agoMerge r202161 from head:
gavin [Fri, 5 Feb 2010 08:52:51 +0000 (08:52 +0000)]
Merge r202161 from head:

  Spell "Hz" correctly wherever it is user-visible.

PR: bin/142566
Submitted by: N.J. Mann   njm njm.me.uk

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

14 years agoMFC r202694:
mav [Fri, 5 Feb 2010 08:48:44 +0000 (08:48 +0000)]
MFC r202694:
- Add -v argument to `camcontrol identify` command. It makes camcontrol
print full identify data block.
- Improve identify result view a bit and add TRIM support.

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

14 years agoMFC r202789, r202796:
mav [Fri, 5 Feb 2010 08:36:33 +0000 (08:36 +0000)]
MFC r202789, r202796:
- Improve tracer, to handle more cases of input-to-output monitoring
loopback.
- Use "igain" mixer control for input-to-output monitoring loopback.
- Allow AD1981HD codecs to use playback mixer. Now driver should be able to
really use it.
- Fix bug in shared muters operation.

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

14 years agoMFC r202736:
mav [Fri, 5 Feb 2010 08:32:07 +0000 (08:32 +0000)]
MFC r202736:
Print playback channels paths in order of their sequence numbers, not nids.

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

14 years agoMFC r203359: active xrefs to gpib(3) now that it's actually there.
joerg [Thu, 4 Feb 2010 19:49:41 +0000 (19:49 +0000)]
MFC r203359: active xrefs to gpib(3) now that it's actually there.

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

14 years agoMFC r203356: add a manpage for gpib(3).
joerg [Thu, 4 Feb 2010 19:49:07 +0000 (19:49 +0000)]
MFC r203356: add a manpage for gpib(3).

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