]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r206686:
dougb [Sat, 8 May 2010 21:18:22 +0000 (21:18 +0000)]
MFC r206686:

Make 'stop' work even if ${name}_enable is not set.

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

14 years agoMFC r204051 (by imp):
kib [Sat, 8 May 2010 18:54:47 +0000 (18:54 +0000)]
MFC r204051 (by imp):
n64 has a different size for KINFO_PROC_SIZE.

Approved by: imp

MFC r207152:
Move the constants specifying the size of struct kinfo_proc into
machine-specific header files. Add KINFO_PROC32_SIZE for struct
kinfo_proc32 for architectures providing COMPAT_FREEBSD32. Add
CTASSERT for the size of struct kinfo_proc32.

MFC r207269:
Style: use #define<TAB> instead of #define<SPACE>.

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

14 years agoMFC r207511:
mav [Sat, 8 May 2010 16:10:54 +0000 (16:10 +0000)]
MFC r207511:
Enable PCI busmastering explicitly to be sure.

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

14 years agoMFC r207499:
mav [Sat, 8 May 2010 16:06:54 +0000 (16:06 +0000)]
MFC r207499:
Make SATA XPT negotiate and enable some additional SATA features, such as:
 - device initiated power management (some devices support only this way);
 - Automatic Partial to Slumber Transition (more power saving);
 - DMA auto-activation (expected to slightly improve performance).
More features could be added later, when hardware supports.

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

14 years agoMFC r207498:
mav [Sat, 8 May 2010 13:12:52 +0000 (13:12 +0000)]
MFC r207498:
Add -d and -f arguments to `camcontrol cmd`, to execute DMA ATA commands.

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

14 years agoMFC r207433:
mav [Sat, 8 May 2010 13:09:36 +0000 (13:09 +0000)]
MFC r207433:
Revert r198705.
As scottl@ noticed, max_target/max_lun was intended to be only a hint for
existing bus scanner. Some FC/SAS SIMs report fake values there, that are
smaller then maximum supported IDs. In that case this check makes impossible
manual scan outside hinted range.

For ATA/SATA SIMs respective check was instead implemented at SIM level.
Newer SCSI SIMs expected to have these checks at driver or firmware level.
Some older SCSI SIMs have no this check and the issues will get back there.

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

14 years agoMFC r207432:
mav [Sat, 8 May 2010 13:07:50 +0000 (13:07 +0000)]
MFC r207432:
Add Target/LUN ID checks.

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

14 years agoMFC r207431:
mav [Sat, 8 May 2010 13:05:27 +0000 (13:05 +0000)]
MFC r207431:
Add Target/LUN ID checks and deny access to targets 1-14 when PMP absent.

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

14 years agoMFC r207430:
mav [Sat, 8 May 2010 13:02:52 +0000 (13:02 +0000)]
MFC r207430:
Add Target/LUN ID checks and deny access to targets 1-14 when PMP absent.
Enforce PMA bit clearing when PMP detached to avoid further scan timeouts.

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

14 years agoMFC r207428:
mav [Sat, 8 May 2010 12:58:22 +0000 (12:58 +0000)]
MFC r207428:
Report PMP absence using target 15, same as for precence (not a wildcard),
to not confuse target ID checks at SIMs.

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

14 years agoMFC r207463:
kib [Sat, 8 May 2010 12:40:38 +0000 (12:40 +0000)]
MFC r207463:
Remove debugging code that was not used once since commit.

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

14 years agoMFC r207449: telnet: Fix infinite loop if local output generates SIGPIPE.
jilles [Fri, 7 May 2010 20:58:50 +0000 (20:58 +0000)]
MFC r207449: telnet: Fix infinite loop if local output generates SIGPIPE.

Instead of catching SIGPIPE and jumping out of the signal handler with
longjmp, ignore it and handle write errors to the local output by exiting
from there. I have changed the error message to mention the local output
instead of NetBSD's wrong "Connection closed by foreign host". Write errors
to the network were already handled by exiting immediately and this now
applies to EPIPE too.

The code assumed that SIGPIPE could only be generated by the network
connection; if it was generated by the local output, it would longjmp out of
the signal handler and write an error message which caused another SIGPIPE.

PR: 19773
Obtained from: NetBSD

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

14 years agoMFC 206758, 206840, 206891, 206892, 207099, 207191, 207197
tuexen [Fri, 7 May 2010 20:02:36 +0000 (20:02 +0000)]
MFC 206758, 206840, 206891, 206892, 207099, 207191, 207197
* Fix a bug where SACKs are not sent when they should.
* Get delayed SACK working again.
* Really print the nr_mapping array when it should be printed.
* Update highest_tsn variables when sliding mapping arrays.
* Sending a FWDTSN chunk should not affect the retran count.
* Cleanups.

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

14 years agoMFC r207606:
kib [Fri, 7 May 2010 11:11:58 +0000 (11:11 +0000)]
MFC r207606:
Fix typo in comment.

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

14 years agoMFC r207447:
yongari [Thu, 6 May 2010 18:52:59 +0000 (18:52 +0000)]
MFC r207447:
  Marvell 88E8059(Yukon Optima) is now supported.

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

14 years agoMFC r207446:
yongari [Thu, 6 May 2010 18:50:23 +0000 (18:50 +0000)]
MFC r207446:
  Add Marvell PHYG65G Gigabit PHY which is found on 88E8059 Yukon Optima.

  Tested by: James LaLagna < jameslalagna <> gmail dot com >

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

14 years agoMFC r207445:
yongari [Thu, 6 May 2010 18:47:16 +0000 (18:47 +0000)]
MFC r207445:
  Add basic support for Marvell 88E8059 Yukon Optima.

  Tested by: James LaLagna < jameslalagna <> gmail dot com >

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

14 years agoMFC r207409,207442:
yongari [Thu, 6 May 2010 18:43:00 +0000 (18:43 +0000)]
MFC r207409,207442:
r207409:
  Both RX_GMF_LP_THR and RX_GMF_UP_THR must be 16 bits register. If
  it is 8bits register then RX FIFO size can't exceed 2KB which is
  not true for almost all Yukon II controller.

r207442:
  Disable non-ASF packet flushing on Yukon Extreme as vendor's driver
  does. Without this change, Yukon Extreme seems to generate lots of
  RX FIFO overruns even though controller has available RX buffers.
  These excessive RX FIFO overruns generated lots of pause frames
  which in turn killed devices plugged into switch. It seems there is
  still occasional RX frame corruption on Yukon Extreme but this
  change seems to fix the pause frame storm.

  Reported by: jhb
  Tested by: jhb

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

14 years agoMFC r207381:
yongari [Thu, 6 May 2010 18:37:39 +0000 (18:37 +0000)]
MFC r207381:
  Now sge(4) supports hardware VLAN tag insertion/stripping.

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

14 years agoMFC r207380:
yongari [Thu, 6 May 2010 18:34:15 +0000 (18:34 +0000)]
MFC r207380:
  Enable VLAN hardware tag insertion/stripping. Due to lack of SiS190
  controller, I'm not sure whether this is also applicable to SiS190
  so this feature is only activated on SiS191 controller.
  In theory, controller reinitialization is not needed when VLAN tag
  configuration is changed, but xclin said controller was not stable
  whenever toggling VLAN tag bit. To address that, sge(4)
  reinitialize controller for VLAN configuration which seems to work
  as expected. VLAN tag information for TX/RX descriptor and
  configure bit of RxMacControl register was found by xclin.

  Submitted by: xclin <xclin <> cs dot nctu dot edu dot tw > (initial version)
  Tested by: xclin <xclin <> cs dot nctu dot edu dot tw >

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

14 years agoMFC r207379:
yongari [Thu, 6 May 2010 18:30:46 +0000 (18:30 +0000)]
MFC r207379:
  Enable FCS stripping and padding 10 bytes bit of RX MAC control
  register. Due to lack of SiS190 controller, I'm not sure whether
  this is also applicable to SiS190 so this feature is only activated
  on SiS191 controller.
  The controller can pad 10 bytes before DMAing a received frame to
  RX buffer and received bytes include the padded bytes. This padding
  is very useful on strict-alignment architectures because driver
  does not have to copy received frame to align IP header on 4 bytes
  boundary. It also gives better RX performance on non-strict
  alignment architectures. Special thanks to xclin to give me
  valuable register information. Without his enthusiastic trial and
  errors this wouldn't be even possible.

  While I'm here tighten validity check of received frame. Controller
  clears RDS_CRCOK bit when it received bad CRC frames. xclin found
  that using loop back testing.

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

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

14 years agoMFC r207375-207377.
yongari [Thu, 6 May 2010 18:17:36 +0000 (18:17 +0000)]
MFC r207375-207377.
r207375:
  Preserve unknown bits of RX MAC control register when driver
  programs RX filter configuration. It seems RX MAC control register
  is one of key registers to get various offloading features as well
  as performance. Blindly clearing unrelated bits can result in
  unexpected results.

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

r207376:
  Remove wrong link state chage.

r207377:
  Explicitly marks SiS190 to differentiate it from SiS191.

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

14 years agoMFC r207382:
delphij [Thu, 6 May 2010 17:03:27 +0000 (17:03 +0000)]
MFC r207382:

bwn(4) will first appear in FreeBSD 8.1-RELEASE.

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

14 years agoMFC r207572:
zec [Thu, 6 May 2010 09:54:01 +0000 (09:54 +0000)]
MFC r207572:
  When destroying a vnet, shut down all netgraph nodes tied to that vnet
  before proceeding with dismantling other protocol domains.

  This change only affects options VIMAGE builds.

  Reviewed by:  julian, bz

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

14 years agoMFC r207475:
zec [Thu, 6 May 2010 09:52:32 +0000 (09:52 +0000)]
MFC r207475:
  Remove a redundant variable assignment.

  Reviewed by:  bz, rwatson

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

14 years agoMFC r207369:
bz [Thu, 6 May 2010 06:44:19 +0000 (06:44 +0000)]
MFC r207369:
  MFP4: @176978-176982, 176984, 176990-176994, 177441

  "Whitspace" churn after the VIMAGE/VNET whirls.

  Remove the need for some "init" functions within the network
  stack, like pim6_init(), icmp_init() or significantly shorten
  others like ip6_init() and nd6_init(), using static initialization
  again where possible and formerly missed.

  Move (most) variables back to the place they used to be before the
  container structs and VIMAGE_GLOABLS (before r185088) and try to
  reduce the diff to stable/7 and earlier as good as possible,
  to help out-of-tree consumers to update from 6.x or 7.x to 8 or 9.

  This also removes some header file pollution for putatively
  static global variables.

  Revert VIMAGE specific changes in ipfilter::ip_auth.c, that are
  no longer needed.

  Reviewed by: jhb
  Discussed with: rwatson
  Sponsored by: The FreeBSD Foundation
  Sponsored by: CK Software GmbH

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

14 years agoMFC r207570:
kib [Thu, 6 May 2010 04:57:10 +0000 (04:57 +0000)]
MFC r207570:
Style and comment adjustements.

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

14 years agoMFC: r207350
rmacklem [Thu, 6 May 2010 01:08:36 +0000 (01:08 +0000)]
MFC: r207350
For the experimental NFS client, it should always flush dirty
buffers before closing the NFSv4 opens, as the comment states.
This patch deletes the call to nfscl_mustflush() which would
return 0 for the case where a delegation still exists, which
was incorrect and could cause crashes during recovery from
an expired lease.

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

14 years agoMFC: r207349
rmacklem [Thu, 6 May 2010 00:49:10 +0000 (00:49 +0000)]
MFC: r207349
Delete a diagnostic statement that is no longer useful from
the experimental NFS client.

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

14 years agoMFC r206760: getcwd(3): Clarify that EACCES may or may not be checked.
jilles [Wed, 5 May 2010 22:17:17 +0000 (22:17 +0000)]
MFC r206760: getcwd(3): Clarify that EACCES may or may not be checked.

POSIX permits but does not require checking access on the current and parent
directories.

Because various programs do not like it if getcwd(3) fails, it seems best
to avoid checking access as much as possible. There are various reports in
GNATS about this (search for getcwd).

Our getcwd(3) implementation first queries the kernel for the pathname
directly, which does not check any permissions but sometimes fails, and then
falls back to reading all parent directories for the names.

PR: standards/44425

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

14 years agoMFC r207190: unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY
jilles [Wed, 5 May 2010 22:12:56 +0000 (22:12 +0000)]
MFC r207190: unlinkat(2): unlinkat(AT_REMOVEDIR) fails with ENOTEMPTY
like rmdir() for non-empty directories.

POSIX permits both ENOTEMPTY and EEXIST, but we use the clearer ENOTEMPTY,
following BSD tradition.

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

14 years agoMFC r207186: sysctl(3): Update description of various kern.* variables.
jilles [Wed, 5 May 2010 22:00:57 +0000 (22:00 +0000)]
MFC r207186: sysctl(3): Update description of various kern.* variables.
Also add xrefs for confstr(3) (as sysconf(3) but for strings) and kvm(3)
(which is a more convenient way to access some of the variables).

PR: 116480

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

14 years agoMerge r206423:
kensmith [Wed, 5 May 2010 16:58:29 +0000 (16:58 +0000)]
Merge r206423:

> Shift the version of perl used by the release build process over to
> perl-5.10.  This aligns the release build process with the current
> default version of perl in the ports tree.

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

14 years agoMerge r206422:
kensmith [Wed, 5 May 2010 16:25:57 +0000 (16:25 +0000)]
Merge r206422:

> Pass the HTTP_PROXY and FTP_PROXY environment variables through in addition
> to FTP_PASSIVE_MODE so release building works for a machine that needs
> to use a proxy.

PR: misc/137688
Submitted by: Michael Leun

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

14 years agoMerge r205386 from head:
gavin [Wed, 5 May 2010 12:39:44 +0000 (12:39 +0000)]
Merge r205386 from head:

  Fix command example, presumed leftovers of old markup.

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

14 years agoMerge r205155 from head:
gavin [Wed, 5 May 2010 12:38:22 +0000 (12:38 +0000)]
Merge r205155 from head:

  Add extra Xrefs

PR: docs/114184
Submitted by: Julian Stacey  <jhs berklix.org>

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

14 years agoMerge r203684 from head (mainly to make future merges easier for people):
gavin [Wed, 5 May 2010 12:37:07 +0000 (12:37 +0000)]
Merge r203684 from head (mainly to make future merges easier for people):

  Update .Dt on these man pages: the kernel modules and corresponding
  man pages are installed on more platforms than just i386.

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

14 years agoMFC r207009:
kib [Wed, 5 May 2010 09:29:34 +0000 (09:29 +0000)]
MFC r207009:
C language does not has references, it provides pointers.

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

14 years agoMFC r207282:
mav [Wed, 5 May 2010 05:18:08 +0000 (05:18 +0000)]
MFC r207282:
Update device identify data and serial number when device change detected.
Reprobe immediately following this should have fresh data.

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

14 years agoMFC r207490:
mav [Wed, 5 May 2010 05:11:12 +0000 (05:11 +0000)]
MFC r207490:
Add xpt_schedule_dev_sendq() call, lost at r203108. It is not needed in
usual operation, but required in some conditions to make queue running
after being shrinked.

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

14 years agoMFC r206973:
delphij [Wed, 5 May 2010 00:38:20 +0000 (00:38 +0000)]
MFC r206973:

When CPUTYPE is defined to any value, on amd64 platform "mmx" is
available through MACHINE_CPU, indicating the CPU supports that
feature, as done by revision 138685.

This changeset adds "mmx" into the default amd64 MACHINE_CPU list
when no CPUTYPE is specified to provide consistent behavior.

PR: amd64/145593
Submitted by: mm

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

14 years agoMFC r201797
thompsa [Tue, 4 May 2010 21:16:01 +0000 (21:16 +0000)]
MFC r201797

 Remove unused uhci_dump_qhs().

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

14 years agoMFC r196981, r200844, r201630, r203977, r203978, r204352:
delphij [Tue, 4 May 2010 19:18:00 +0000 (19:18 +0000)]
MFC r196981, r200844, r201630, r203977, r203978, r204352:

r196981 (rdivacky):

Add C/c/f/p/v switches plus a bunch of minor fixes and cleanups.

Obtained from: NetBSD

r200844 (jh):

Don't print the archive name with -p and -q options.

PR: bin/141280

r201630 (kientzle):

When restoring files, use the mode for the mode.

Thanks to: Jun Kuriyama for pointing this out

r203977 (gavin):

Implement the rename query, for when a file with the same name as the one
about to be extracted already exists.  The question, and interpretation
of the response is deliberately compatible with Info-Zip.

This change was originally obtained from NetBSD, but has three changes:
 - better compatibility with Info-Zip in the handling of ^D
 - Use getdelim() rather than getline()
 - bug fix: != changed to == in the "file rename" code

I suspect the latter is also a bug in NetBSD, but I can't easily confirm
this.

PR: bin/143307
Reviewed by: rdivacky (change to unzip.c only)
Obtained from: NetBSD src/usr.bin/unzip/unzip.c 1.8

r203978 (gavin):

Bump .Dd for r203977

r204352 (ru):

Fixed static linkage.

==

Requested by: Alex Kozlov <spam rm-rf kiev ua>

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

14 years agoMFC r207480:
mm [Tue, 4 May 2010 08:37:28 +0000 (08:37 +0000)]
MFC r207480:

Change description of tunable group vfs.zfs.txg to be more
understandable.

Approved by:    pjd, delphij (mentor)

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

14 years agoMFC of r201613, r201627
edwin [Tue, 4 May 2010 08:06:53 +0000 (08:06 +0000)]
MFC of r201613, r201627

Be able to specify a certain date and/or time for which to calculate
the phase of the moon.
While not worlds best improvements, it will help calendar(1) later on.

Also closed bin/79008

PR: bin/79008

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

14 years agoMFC r206893:
kib [Tue, 4 May 2010 05:34:18 +0000 (05:34 +0000)]
MFC r206893:
Slightly modernize realpath(3).

SUSv4 requires that implementation returns EINVAL if supplied path is NULL,
and ENOENT if path is empty string [1].
Bring prototype in conformance with SUSv4, adding restrict keywords.
Allow the resolved path buffer pointer be NULL, in which case realpath(3)
allocates storage with malloc().

MFC r206898:
Free() is not allowed to modify errno, remove safety brackets around it.
Add small optimization, do not copy a string to the buffer that is
to be freed immediately after.

MFC r206997:
Move realpath(3) prototype to a POSIX section.

MFC r206998:
Add standards section, improve wording, taking into account the handling
of NULL and changed type in declaration.

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

14 years agoMFC r206894:
kib [Tue, 4 May 2010 05:25:48 +0000 (05:25 +0000)]
MFC r206894:
The cache_enter(9) function shall not be called for doomed dvp.
Assert this.

Verify that dvp is not reclaimed before calling cache_enter().

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

14 years agoMFC r206264:
kib [Tue, 4 May 2010 05:14:43 +0000 (05:14 +0000)]
MFC r206264:
When OOM searches for a process to kill, ignore the processes already
killed by OOM. When killed process waits for a page allocation, try to
satisfy the request as fast as possible.

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

14 years agoMFC: r207461
imp [Tue, 4 May 2010 03:56:25 +0000 (03:56 +0000)]
MFC: r207461

  sparc64, and possibly other architectures, pads the length of the
  section holding the config file to sh_addralign bytes using NULs.
  This bogusly triggers an assert.  Break out of the loop when we hit an
  NUL within that many bytes of the end.

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

14 years agoMFC r205073
brooks [Mon, 3 May 2010 19:56:52 +0000 (19:56 +0000)]
MFC r205073

Regen:
* Hart: rev 671 of pcidevs.txt; 22-01-2008 (D-M-Y).
* Boemler: vendors.txt (2010-03126)

PR: kern/133733

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

14 years agoMFC r206881:
nwhitehorn [Mon, 3 May 2010 19:38:59 +0000 (19:38 +0000)]
MFC r206881:

Add gpart and glabel to the release CD mfsroot. Even if sysinstall
cannot partition disks on powerpc, this will allow the user to.

PR: powerpc/93203
Obtained from: ia64

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

14 years agoMFC r203874:
kib [Mon, 3 May 2010 12:43:17 +0000 (12:43 +0000)]
MFC r203874:
Rename fields to match better the msdosfs headers.

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

14 years agoMFC r203872:
kib [Mon, 3 May 2010 12:41:27 +0000 (12:41 +0000)]
MFC r203872:
Bug fixes from NetBSD.

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

14 years agoMFC r203871:
kib [Mon, 3 May 2010 12:39:27 +0000 (12:39 +0000)]
MFC r203871:
License changes from NetBSD.
Move to 2 clause license, approved by Wolfgang Solfrank.

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

14 years agoMFC r203869:
kib [Mon, 3 May 2010 12:37:33 +0000 (12:37 +0000)]
MFC r203869:
Rename variables to match msdosfs headers.

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

14 years agoMFC r203868:
kib [Mon, 3 May 2010 12:36:06 +0000 (12:36 +0000)]
MFC r203868:
Some cleanups from NetBSD.

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

14 years agoMFC r206838:
delphij [Mon, 3 May 2010 09:46:47 +0000 (09:46 +0000)]
MFC r206838:

Partially MFp4 #176265 by pjd@:

 - Properly initialize and destroy system_taskq.
 - Add a dummy implementation of taskq_create_proc().

Note: We do not currently use system_taskq in ZFS so this is mostly a
no-op at this time.  Proper system_taskq initialization is required
by newer ZFS code.

Ok'ed by: pjd

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

14 years agoMFC r207383:
delphij [Mon, 3 May 2010 09:35:40 +0000 (09:35 +0000)]
MFC r207383:

Add FreeBSD 8.1 to known list as it's being referenced by a couple of
manpages already.

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

14 years agoMFC r207275:
bms [Mon, 3 May 2010 09:31:51 +0000 (09:31 +0000)]
MFC r207275:
  Fix a regression where DVMRP diagnostic traffic, such as that used
  by mrinfo and mtrace, was dropped by the IGMP TTL check. IGMP control
  traffic must always have a TTL of 1.

Submitted by: Matthew Luckie

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

14 years agoMFC r207251:
yongari [Mon, 3 May 2010 01:04:44 +0000 (01:04 +0000)]
MFC r207251:
  It seems ale(4) controllers do not like to see TCP payload in the
  first descriptor in TSO case. Otherwise controller can generate bad
  frames during TSO. To address it, make sure to pull up ethernet +
  IP + TCP header with options in first buffer. Also ensure the
  buffer length of the first descriptor for TSO covers entire ethernet
  + IP + TCP with options and setup additional Tx descriptor if the
  first buffer includes TCP payload.

  Tested by: Amar Takhar <verm <> darkbeer dot org >

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

14 years agoMFC: r207151
marius [Sun, 2 May 2010 16:55:10 +0000 (16:55 +0000)]
MFC: r207151

Add a TestFloat based test suite for floating-point implementations
currently supporting sparc64. After a `make depend all` there are
three programs; testsoftfloat for testing against the SoftFloat in
src/lib/libc/softfloat for reference purposes, testemufloat for
testing the emulator source in src/lib/libc/sparc64/fpu and testfloat
for testing with the installed libc. Support for other architectures
can be added as needed.

PR: 144900
Submitted by: Peter Jeremy

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

14 years agoMFC: r206490, r206492
marius [Sun, 2 May 2010 16:52:23 +0000 (16:52 +0000)]
MFC: r206490, r206492

While SPARC V9 allows tininess to be detected either before or after
rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and
UltraSPARC processors defines that in all cases tininess is detected
before rounding therefore rounding up to the smallest normalized number
should set the underflow flag. This change is needed for using SoftFloat
on sparc64 for reference purposes.

PR: 144900
Submitted by: Peter Jeremy

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

14 years agoMFC: r206480
marius [Sun, 2 May 2010 16:47:50 +0000 (16:47 +0000)]
MFC: r206480

Update for UltraSPARC-IV{,+} and SPARC64 V, VI, VII and VIIIfx CPUs.

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

14 years agoMFC: r206450
marius [Sun, 2 May 2010 16:46:20 +0000 (16:46 +0000)]
MFC: r206450

Correct the DCR_IPE macro to refer to the right bit. Also improve the
associated comment as besides US-IV+ these bits are only available with
US-III++, i.e. the 1.2GHz version of the US-III+.

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

14 years agoMFC: r206449
marius [Sun, 2 May 2010 16:45:08 +0000 (16:45 +0000)]
MFC: r206449

Unlike the sun4v variant, the sun4u version of SUNW,set-trap-table
actually only takes one argument.

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

14 years agoMFC: r206448
marius [Sun, 2 May 2010 16:40:18 +0000 (16:40 +0000)]
MFC: r206448

Do as the comment suggests and determine the bus space based on the last
bus we actually mapped at rather than always based on the last bus we
encountered while moving upward in the tree. Otherwise we might use the
wrong bus space in case the bridge directly underneath the nexus doesn't
require mapping, i.e. was skipped as it's the case for ssm(4) nodes.

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

14 years agoMFC r207278:
bz [Sun, 2 May 2010 16:39:15 +0000 (16:39 +0000)]
MFC r207278:
  MFP4: @177254

  Add missing CURVNET_RESTORE() calls for multiple code paths, to stop
  leaking the currently cached vnet into callers and to the process.

Sponsored by: The FreeBSD Foundation
Sponsored by: CK Software GmbH

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

14 years agoMFC r207277:
bz [Sun, 2 May 2010 16:36:15 +0000 (16:36 +0000)]
MFC r207277:
  Enhance the historic behaviour of raw sockets and jails in a way
  that we allow all possible jail IPs as source address rather than
  forcing the "primary". While IPv6 naturally has source address
  selection, for legacy IP we do not go through the pain in case
  IP_HDRINCL was not set. People should bind(2) for that.

  This will, for example, allow ping(|6) -S to work correctly for
  non-primary addresses.

  Reported by:  (ten 211.ru)
  Tested by:    (ten 211.ru)

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

14 years agoMFC r207276:
bz [Sun, 2 May 2010 16:32:41 +0000 (16:32 +0000)]
MFC r207276:
  Make sure IPv6 source address selection does not change interface
  addresses while walking the IPv6 address list if in the jail case
  something is connecting to ::1.

  Reported by:  Pieter de Boer (pieter thedarkside.nl)
  Tested by:    Pieter de Boer (pieter thedarkside.nl)

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

14 years agoMFC r207116:
bz [Sun, 2 May 2010 15:58:25 +0000 (15:58 +0000)]
MFC r207116:
  Remove one zero from the double-0.
  This code doesn't have a license to kill.

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

14 years agoMFC r206989:
bz [Sun, 2 May 2010 15:55:29 +0000 (15:55 +0000)]
MFC r206989:
  Avoid memory access after free.  Use the (shortend) copy for the
  ipsec mtu lookup as well.

PR: kern/145736
Submitted by: Peter Molnar (peter molnar.cc)

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

14 years agoMFC r207189: symlink(7): Add lpathconf(2) and *at system calls.
jilles [Sun, 2 May 2010 13:36:23 +0000 (13:36 +0000)]
MFC r207189: symlink(7): Add lpathconf(2) and *at system calls.

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

14 years agoMFC r207222:
mav [Sun, 2 May 2010 12:50:29 +0000 (12:50 +0000)]
MFC r207222:
Move PI_TAG_ABLE check from ada driver to ATA XPT.

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

14 years agoMFC r206652:
mav [Sun, 2 May 2010 12:45:22 +0000 (12:45 +0000)]
MFC r206652:
Explicitly enable PCI busmastering on attach.
Now SiI3124 with siis(4) successfully works on sparc64 (SunBlade 100).

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

14 years agoMFC r205358:
mav [Sun, 2 May 2010 12:44:11 +0000 (12:44 +0000)]
MFC r205358:
Enable MSI by default for SiI3124.

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

14 years agoMFC r207188: symlink(7): The ownership of symlinks is used by the system,
jilles [Sun, 2 May 2010 12:43:18 +0000 (12:43 +0000)]
MFC r207188: symlink(7): The ownership of symlinks is used by the system,
in at least three ways, so do not say it is ignored:
* who may delete/rename a symlink in a sticky directory
* who may do lchflags(2)/lchown(2)/lchmod(2)
* whose inode quota is charged

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

14 years agoMFC r207221:
mav [Sun, 2 May 2010 12:40:54 +0000 (12:40 +0000)]
MFC r207221:
Mark ATA channel as idle on timeout in non-ATA_CAM mode.
This should fix possible duplicate request completion.

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

14 years agoMFC r206604:
mav [Sun, 2 May 2010 12:39:29 +0000 (12:39 +0000)]
MFC r206604:
For early ALI chips do not announce I/O sizes that require unsupported
48bit DMA commands.

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

14 years agoMFC r207187: kvm(3): Mention that some of the functions use sysctl(3)
jilles [Sun, 2 May 2010 12:38:59 +0000 (12:38 +0000)]
MFC r207187: kvm(3): Mention that some of the functions use sysctl(3)
instead of kmem.

Additionally, because of sysctl(3) use (which is generally good), behaviour
for crash dumps differs slightly from behaviour for live kernels and this
will probably never be fixed entirely, so weaken that claim.

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

14 years agoComment on new config version that's now required for amd64 and ia64.
imp [Sun, 2 May 2010 06:34:13 +0000 (06:34 +0000)]
Comment on new config version that's now required for amd64 and ia64.
Comment on the confusing error message from Apr 17th-May 2nd generated
by config(8) as well.

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

14 years agoRevert 207494: it was only for testing purposes.
imp [Sun, 2 May 2010 06:24:17 +0000 (06:24 +0000)]
Revert 207494: it was only for testing purposes.

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

14 years agoOoops. Bump the version to 600009, not 600008.
imp [Sun, 2 May 2010 06:23:15 +0000 (06:23 +0000)]
Ooops.  Bump the version to 600009, not 600008.

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

14 years agoMove to the new way of specifying compat options. The backs out the
imp [Sun, 2 May 2010 06:20:42 +0000 (06:20 +0000)]
Move to the new way of specifying compat options.  The backs out the
FOO = BAR form, in favor of listing the mapping in a separate file
for more compatibility with older versions of config.

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

14 years agoMFC r207265:
imp [Sun, 2 May 2010 06:18:57 +0000 (06:18 +0000)]
MFC r207265:
  Require the option that's mapped be listed in the options file.  This
  will allow people with old config options to either have it just work
  (if config is new enough), or get a version error (if their config is
  about 7.0 or newer) rather than getting a cryptic error about
  duplicated options in the options file, or getting an error about an
  unknown option, at which point they'd update their config file only to
  learn they need a new config, only to learn they didn't really need to
  update their config file...  All this because our version checking was
  in the wrong place for the past decade...

  # hopefully this is the last change, and we'll be able to config with an
  # 8.0 GENERIC file on stable/8 after I merge this change and add the
  # compat options.

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

14 years agoMFC r207263:
imp [Sun, 2 May 2010 06:18:08 +0000 (06:18 +0000)]
MFC r207263:

  Redo how we add compat options so as to be compatible with old
  versions of config.  Remove support for the syntax OLD = NEW form the
  options file, and instead have a new file $S/conf/options-compat.
  This file will be parsed as OLD NEW on each line.  Bump version of
  config.  Since nothing in -current ever used this, there's no hazards
  for current users, so I'm not bumping the version in the
  Makefiles.$MACHINE.  No need, really, for this version bump in
  -current, but this was introduced into -stable before I realized the
  version check was ineffective there, so the verison bump doesn't hurt
  here and keeps the two branches in sync, versionwise, after the MFC.

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

14 years agoMFC r207260:
imp [Sun, 2 May 2010 06:14:36 +0000 (06:14 +0000)]
MFC r207260:
  Move checking the version up from Makefile generation to just after
  we've parsed the config file.  Makefile generation is too late if
  we've introduce changes to the syntax of the metafiles to warn about
  version skew, since we have to try to parse them and we get an parse
  error that's rather baffling to the user rather than a 'your config is
  too old, upgrade' which we should get.

  We have to defer doing it until after we've read the user's config
  file because we define machinename there.  The version required to
  compile the kernel is encoded in Makefile.machinename.  There's no
  real reason for this to be the case, but changing it now would
  introduce some logistical issues that I'd rather avoid for the moment.
  I intend to revisit this if we're still using config in FreeBSD 10.

  This also means that we cannot introduce any config metafile changes
  that result in a syntax error or other error for the user until 9.0 is
  released.  Otherwise, we break the upgrade path, or at least reduce
  the usefulness of the error messages we generate.

  # This implies that the config file option mapping will need to be redone.

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

14 years agoMFC r207176:
weongyo [Sat, 1 May 2010 23:25:53 +0000 (23:25 +0000)]
MFC r207176:
  ifp->if_ipackets++ when RX packet interrupts are occurred.

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

14 years agoMFC r207070,r207343,r207345,r207347,r207348,r207371,r207372,r207390:
pjd [Sat, 1 May 2010 19:16:08 +0000 (19:16 +0000)]
MFC r207070,r207343,r207345,r207347,r207348,r207371,r207372,r207390:

r207070:

Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options.

Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>

r207343:

Don't assume that "resource" property is in metadata.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>

r207345:

Use WEXITSTATUS() to obtain real exit code.

r207347:

Mark temporary issues as such.

r207348:

Restart worker thread only if the problem was temporary.
In case of persistent problem we don't want to loop forever.

r207371:

Fix a problem where hastd will stuck in recv(2) after sending request to
secondary, which died between send(2) and recv(2). Do it by adding timeout
to recv(2) for primary incoming and outgoing sockets and secondary outgoing
socket.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>
Tested by: Mikolaj Golub <to.my.trociny@gmail.com>

r207372:

- Check if the worker process was killed by signal and restart it.
- Improve logging.

Pointed out by: Garrett Cooper <yanefbsd@gmail.com>

r207390:

Default connection timeout is way too long. To make it shorter we have to
make socket non-blocking, connect() and if we get EINPROGRESS, we have to
wait using select(). Very complex, but I know no other way to define
connection timeout for a given socket.

Reported by: hiroshi@soupacific.com

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

14 years agoMFC r207070:
pjd [Sat, 1 May 2010 19:12:37 +0000 (19:12 +0000)]
MFC r207070:

Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options.

Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>

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

14 years agoMFC r207068,r207334:
pjd [Sat, 1 May 2010 19:00:33 +0000 (19:00 +0000)]
MFC r207068,r207334:

r207068:

Allow to modify directory's content even if the ZFS_NOUNLINK (SF_NOUNLINK,
sunlnk) flag is set. We only deny dirctory's removal or rename.

PR: kern/143343
Reported by: marck

r207334:

Backport fix for 'zfs_znode_dmu_init: existing znode for dbuf' panic from OpenSolaris.

PR: kern/144402
Reported by: Alex Bakhtin <alex.bakhtin@gmail.com>
Tested by: Alex Bakhtin <alex.bakhtin@gmail.com>
Obtained from: OpenSolaris, Bug ID 6895088

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

14 years agoMFC r207168: builtin(1): Add missing escaping for !, . and : in the table.
jilles [Sat, 1 May 2010 14:49:20 +0000 (14:49 +0000)]
MFC r207168: builtin(1): Add missing escaping for !, . and : in the table.

This caused these commands to look differently (not bold) from the other
commands in the table (bold).

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

14 years agoMFC r207166: builtin(1): Mention [ sh builtin.
jilles [Sat, 1 May 2010 14:41:37 +0000 (14:41 +0000)]
MFC r207166: builtin(1): Mention [ sh builtin.

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

14 years agoMFC r207153: stat: Allow -f %Sf to display the file flags symbolically.
jilles [Sat, 1 May 2010 14:36:04 +0000 (14:36 +0000)]
MFC r207153: stat: Allow -f %Sf to display the file flags symbolically.

PR: 124349

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

14 years agoMFC r207021: ln: Allow a trailing slash when creating a link to a directory.
jilles [Sat, 1 May 2010 14:33:26 +0000 (14:33 +0000)]
MFC r207021: ln: Allow a trailing slash when creating a link to a directory.

In the 'ln source... directory' synopsis, the basename of each source
determines the name of the created link. Determine this using basename(3)
instead of strrchr(..., '/') which is incorrect if the pathname ends in a
slash.

PR: 121568

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

14 years agoMFC r206773: ln: Do not delete a file by hardlinking it to itself.
jilles [Sat, 1 May 2010 14:29:33 +0000 (14:29 +0000)]
MFC r206773: ln: Do not delete a file by hardlinking it to itself.

Two pathnames refer to the same directory entry iff the directories match
and the final components' names match.

Example: (assuming file1 is an existing file)
  ln -f file1 file1
This now fails while leaving file1 intact. It used to delete file1 and then
complain it cannot be linked because it is gone.

With -i, this error is detected before the question is asked.

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

14 years agoMFC: r207170
rmacklem [Sat, 1 May 2010 00:50:51 +0000 (00:50 +0000)]
MFC: r207170
An NFSv4 server will reply NFSERR_GRACE for non-recovery RPCs
during the grace period after startup. This grace period must
be at least the lease duration, which is typically 1-2 minutes.
It seems prudent for the experimental NFS client to wait a few
seconds before retrying such an RPC, so that the server isn't
flooded with non-recovery RPCs during recovery. This patch adds
an argument to nfs_catnap() to implement a 5 second delay
for this case.

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

14 years agoRemove 2 empty files, leftovers from previous MFCs.
bschmidt [Fri, 30 Apr 2010 18:39:07 +0000 (18:39 +0000)]
Remove 2 empty files, leftovers from previous MFCs.

Approved by: rpaulo (mentor)

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

14 years agoMFC r206443-206446, 206474-206477, 207001
bschmidt [Fri, 30 Apr 2010 18:13:11 +0000 (18:13 +0000)]
MFC r206443-206446, 206474-206477, 207001

r206443:
Small whitespace cleanup.

r206444 [1]:
- Rename bluetooth coexistence flags, no binary change.
- Enable DC calibration and crystal calibration on Centrino Advanced-N
  6250 parts.
- Workaround for a HW bug (does not affect 4965AGN) that may sporadically
  affect latency under some rare circumstances. From a similar commit to
  iwlwifi.
- Update sensitivity settings for 5000 series to workaround a performance
  bug in the DSP (1000 is not affected so we keep the old values for 5000).
- Update sensitivity settings for 6000 series.
- Set differential gains on 6250 too (but use a 1.0 factor, not 1.5).
- Init OFDM sensitivity with min value (which depends on the chip)
  instead of hardcoding it to 90.
- Read calibration version from ROM and set IWN_GP_DRIVER_CALIB_VER6
  bit on 6x50 if version >= 6.

r206445 [2]:
iwn4965_set_txpower() uses maxpwr from EEPROM to calculate the power to
set, it make sense to actually initialize that array.  This fixes some
issues with 4965 adapters where the TX power is crucial.

This got lost somewhere while merging with the OpenBSD code.

r206446:
Update firmware for the 6000 series Intel cards to version 9.193.4.1.

r206474:
Add some missing protoypes.

r206475:
iwn5000_reset_sched() is not used; #ifdef it.

r206476:
Hook ieee80211_media_change() to ieee80211_vap_attach().

r206477:
Declare all functions as static.

r207001 [3]:
Use correct bus_dma_tag_t for TX frames.

Approved by: rpaulo (mentor)
Obtained from: Openbsd [1], [2]
Reported by: Andreas Nilsson <andrnils at gmail.com> [3]

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

14 years agoMFC r206763-206767:
bschmidt [Fri, 30 Apr 2010 17:08:27 +0000 (17:08 +0000)]
MFC r206763-206767:

r206763:
Fix comment about ipw_assoc and remove some whitespaces; no functional
changes.

r206764:
Pass correct RSSI to ieee80211_input*().

r206765:
- Make ipw usable again by moving directly into ASSOC state.
- No need to manually switch to RUN state, assoc response takes care
  of that.

r206766:
Use iv_appie_wpa, with this commit WPA works again.

r206767:
Remove IPW_LOCK_DECL and fix various LORs.

Approved by: rpaulo (mentor)

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

14 years agoMFC: r207082
rmacklem [Thu, 29 Apr 2010 23:48:09 +0000 (23:48 +0000)]
MFC: r207082
When the experimental NFS client is handling an NFSv4 server reboot
with delegations enabled, the recovery could fail if the renew
thread is trying to return a delegation, since it will not do the
recovery. This patch fixes the above by having nfscl_recalldeleg()
fail with the I/O operations returning EIO, so that they will be
attempted later. Most of the patch consists of adding an argument
to various functions to indicate the delegation recall case where
this needs to be done.

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