]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC main build script and missing directory
luigi [Mon, 8 Mar 2010 13:37:14 +0000 (13:37 +0000)]
MFC main build script and missing directory

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

14 years agoMFC r204783:
fabient [Mon, 8 Mar 2010 07:53:44 +0000 (07:53 +0000)]
MFC r204783:
 Bug fixed:
 - no display on serial terminal in top mode.
 - display alignment for continuation string.
 - correct invalid value used for display limit.

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

14 years agoMFC qemu configuration
luigi [Sun, 7 Mar 2010 16:24:33 +0000 (16:24 +0000)]
MFC qemu configuration

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

14 years agoreduce diffs from HEAD
luigi [Sun, 7 Mar 2010 15:07:24 +0000 (15:07 +0000)]
reduce diffs from HEAD

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

14 years agoMFC r197137 and r200510, which fixes a problem in 8.0
luigi [Sun, 7 Mar 2010 14:29:12 +0000 (14:29 +0000)]
MFC r197137 and r200510, which fixes a problem in 8.0
with callouts firing one tick too late. See the logs for
the original patch for details.
RELENG_7 is not affected by the problem.

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

14 years agoMFC r204611, r204633: Comment and better sysctl documentation string for
ivoras [Sun, 7 Mar 2010 12:29:50 +0000 (12:29 +0000)]
MFC r204611, r204633: Comment and better sysctl documentation string for
VM guest detection variable and sysctl.

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

14 years agoMFC r204464:
kib [Sun, 7 Mar 2010 09:52:35 +0000 (09:52 +0000)]
MFC r204464:
Several fixes for miscellaneous clone handlers in if_tun and if_tap.

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

14 years agoMFC: Enable the use of nanosleep() instead of using pause() and signals.
gshapiro [Sun, 7 Mar 2010 02:02:07 +0000 (02:02 +0000)]
MFC: Enable the use of nanosleep() instead of using pause() and signals.
     This Makefile change can be removed when the next version of sendmail
     is imported as it will have this built in to the FreeBSD conf.h section.

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

14 years agoMFC revs 203696, 203783:
marcel [Sun, 7 Mar 2010 00:07:00 +0000 (00:07 +0000)]
MFC revs 203696, 203783:
Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can
obtain the memory map of the traced process.

Requested by: kib@

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

14 years agoMFC revs 203696, 203708, 203783 and 203788:
marcel [Sun, 7 Mar 2010 00:05:44 +0000 (00:05 +0000)]
MFC revs 203696, 203708, 203783 and 203788:
Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can
obtain the memory map of the traced process.

Requested by: kib@

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

14 years agoMFC r204413:
kib [Sat, 6 Mar 2010 12:35:33 +0000 (12:35 +0000)]
MFC r204413:
For kinfo_proc in kp->ki_siglist, return the set of the signals pending
in the process queue when gathering information for the process, and set
of signals pending for the thread, when gathering information for the
thread.

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

14 years agoMFC 204329 partially:
fabient [Fri, 5 Mar 2010 22:52:41 +0000 (22:52 +0000)]
MFC 204329 partially:
Fixed dependencies (make checkdpadd).

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

14 years agoMFC 203790:
fabient [Fri, 5 Mar 2010 22:40:31 +0000 (22:40 +0000)]
MFC 203790:
- Reorganize code in 'plugin' to share log processing.
- Kcachegrind (calltree) support with assembly/source
  code mapping and call count estimator (-F).
- Top mode for calltree and callgraph plugin (-T).

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

14 years agoMFC r203461:
delphij [Fri, 5 Mar 2010 00:33:05 +0000 (00:33 +0000)]
MFC r203461:

static'ify function prototypes and convert K&R to ANSI.

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

14 years agoMFC r203460:
delphij [Fri, 5 Mar 2010 00:32:22 +0000 (00:32 +0000)]
MFC r203460:

pukeText is an internal function so define it as static rather than
exporting it.

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

14 years agoMFC r203459:
delphij [Fri, 5 Mar 2010 00:31:03 +0000 (00:31 +0000)]
MFC r203459:

Plug two memory leaks in error case.

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

14 years agoMFC r204283
raj [Thu, 4 Mar 2010 20:22:48 +0000 (20:22 +0000)]
MFC r204283

Do not force verbose and single mode in non-metadata boot case.

We want to go multi-user by default also in case of booting without
loader(8).

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

14 years agoMFC r204317
raj [Thu, 4 Mar 2010 20:12:12 +0000 (20:12 +0000)]
MFC r204317

Fix handling of GPT disk partition index.

Obtained from: Semihalf

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

14 years agoMFC r204316
raj [Thu, 4 Mar 2010 20:07:59 +0000 (20:07 +0000)]
MFC r204316

Let loader(8) for U-Boot use default storage more flexibly.

Obtained from: Semihalf

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

14 years agoMFC r204315
raj [Thu, 4 Mar 2010 20:03:26 +0000 (20:03 +0000)]
MFC r204315

Enable U-Boot storage for PowerPC. While there fix loader(8) help file name.

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

14 years agoMFC r201853:
brooks [Thu, 4 Mar 2010 19:35:22 +0000 (19:35 +0000)]
MFC r201853:

Make options KGSSAPI build and add it to NOTES.

rpcsec_gss_prot.c:
  Use kernel printf and headers.

vc_rpcsec_gss.c:
  Use a local RPCAUTH_UNIXGIDS definition for 16 instead of using NGROUPS.

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

14 years agoMFC r204307:
kib [Thu, 4 Mar 2010 07:12:44 +0000 (07:12 +0000)]
MFC r204307:
Make pause(3) implementation not depended on the legacy sigcompat.c
interfaces. Do not block rt signals during and after pause(3) calls.
Use private libc namespace to call proper methods.

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

14 years agoMFC r204308:
kib [Thu, 4 Mar 2010 07:08:01 +0000 (07:08 +0000)]
MFC r204308:
Do not restrict the allowed signals that can be specified by number
to the list of signals that has symbolic name. It was impossible to
send rt signals with kill(1) due to the check.

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

14 years agoMFC r201959
brooks [Wed, 3 Mar 2010 21:47:25 +0000 (21:47 +0000)]
MFC r201959

Use the correct types to store uids and gids in the credential cache and
eliminate an inappropriate use of NGROUPS.

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

14 years agoAdd ah_eeprom_v4k.c
rpaulo [Wed, 3 Mar 2010 20:28:35 +0000 (20:28 +0000)]
Add ah_eeprom_v4k.c

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

14 years agoAdd ar9280.c and ar9280_attach.c.
rpaulo [Wed, 3 Mar 2010 20:08:12 +0000 (20:08 +0000)]
Add ar9280.c and ar9280_attach.c.

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

14 years agoMFC 204656:
rpaulo [Wed, 3 Mar 2010 20:06:50 +0000 (20:06 +0000)]
MFC 204656:
Add missing ar9285_reset.c file.

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

14 years agoMFC r204509:
mav [Wed, 3 Mar 2010 19:14:05 +0000 (19:14 +0000)]
MFC r204509:
- Add ALI M5228 PATA ID.
- Add missed DMA initialization for ALI SATA chips.

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

14 years agoMFC r204250:
mav [Wed, 3 Mar 2010 19:12:53 +0000 (19:12 +0000)]
MFC r204250:
Fix recursive lock attempt on hot-plug event in non-ATA_CAM mode.

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

14 years agoMFC r204210, r204216:
mav [Wed, 3 Mar 2010 19:11:39 +0000 (19:11 +0000)]
MFC r204210, r204216:
Add Intel PCH SATA controller IDs.

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

14 years agoMFC r204276:
jh [Wed, 3 Mar 2010 16:06:43 +0000 (16:06 +0000)]
MFC r204276:

Fix expansion of \W in prompt strings when the working directory is "/".
The prompt string was truncated after \W when the working directory was "/".

PR: bin/89410

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

14 years agoMFC r203823: kgdb: initialize n_type field of nlist entry for kvm_nlist
avg [Tue, 2 Mar 2010 18:38:00 +0000 (18:38 +0000)]
MFC r203823: kgdb: initialize n_type field of nlist entry for kvm_nlist

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

14 years agoMFC r204420
alc [Tue, 2 Mar 2010 16:29:08 +0000 (16:29 +0000)]
MFC r204420
  When running as a guest operating system, the FreeBSD kernel must assume
  that the virtual machine monitor has enabled machine check exceptions.
  Unfortunately, on AMD Family 10h processors the machine check hardware
  has a bug (Erratum 383) that can result in a false machine check exception
  when a superpage promotion occurs.  Thus, I am disabling superpage
  promotion when the FreeBSD kernel is running as a guest operating system
  on an AMD Family 10h processor.

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

14 years agoMFC 204427: Add the shutdown KEYWORD.
ume [Tue, 2 Mar 2010 16:25:07 +0000 (16:25 +0000)]
MFC 204427: Add the shutdown KEYWORD.

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

14 years agoMFC r197948 r203156 r203158 r203159 r203680 r203682 r203750 r203882 r203930
rpaulo [Tue, 2 Mar 2010 13:13:12 +0000 (13:13 +0000)]
MFC r197948 r203156 r203158 r203159 r203680 r203682 r203750 r203882 r203930
    r203933 r203959 r204521 r204578:

Atheros AR9285 support.

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

14 years agoMFC r204416:
kib [Tue, 2 Mar 2010 11:00:10 +0000 (11:00 +0000)]
MFC r204416:
Update man page for vm_page_alloc(9).

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

14 years agoMFC r204415:
kib [Tue, 2 Mar 2010 10:41:34 +0000 (10:41 +0000)]
MFC r204415:
Update comment for vm_page_alloc(9), listing all acceptable flags [1].
Note that the function does not sleep, it can block.

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

14 years agoMFC r204412:
kib [Tue, 2 Mar 2010 10:32:34 +0000 (10:32 +0000)]
MFC r204412:
Fix several style issues.
Define make_dev_credv() as static to match declaration.

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

14 years agoMFC of r204566, tzdata2010c:
edwin [Tue, 2 Mar 2010 10:05:20 +0000 (10:05 +0000)]
MFC of r204566, tzdata2010c:

Paraguay changes its DST schedule, postponing the March rule to
April and modifying the October date.

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

14 years agoMFC r197042: remove dpms.4.
delphij [Tue, 2 Mar 2010 07:48:12 +0000 (07:48 +0000)]
MFC r197042: remove dpms.4.

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

14 years agoMFC x86emu/x86bios emulator and make previously i386 only dpms and vesa
delphij [Tue, 2 Mar 2010 01:56:55 +0000 (01:56 +0000)]
MFC x86emu/x86bios emulator and make previously i386 only dpms and vesa
framebuffer driver, etc. work on FreeBSD/amd64.

A significant amount of improvements were done by jkim@ during the recent
months to make vesa(4) work better, over the initial code import.  This
work is based on OpenBSD's x86emu implementation and contributed by
paradox <ddkprog yahoo com> and swell.k at gmail com.

Hopefully I have stolen all their work to 8-STABLE :)

All bugs in this commit are mine, as usual.

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

14 years agoMFC: Fix spelling of EACCES.
jhb [Mon, 1 Mar 2010 21:04:01 +0000 (21:04 +0000)]
MFC: Fix spelling of EACCES.

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

14 years agoMFC r204351:
mav [Mon, 1 Mar 2010 19:43:26 +0000 (19:43 +0000)]
MFC r204351:
Fix bug in headphones audio redirection using separate DAC. It was exposed
by removing channel duplication during multichannel audio implementation.

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

14 years agoMFC r204354:
mav [Mon, 1 Mar 2010 19:36:19 +0000 (19:36 +0000)]
MFC r204354:
Make PUIS detection more strict. Previous implementation caused false
positives on VMWare's virtual CD-ROMs.

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

14 years agoMFC r204253:
mav [Mon, 1 Mar 2010 19:32:34 +0000 (19:32 +0000)]
MFC r204253:
Make xpt_rescan() more correct, as it was before r197208: do not use
XPT_SCAN_LUN for wildcard LUN, fall back to XPT_SCAN_BUS.

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

14 years agoMFC r204220, r204353:
mav [Mon, 1 Mar 2010 19:19:30 +0000 (19:19 +0000)]
MFC r204220, r204353:
Virtualize transport part of periph announcement.

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

14 years agoMFC r204195:
mav [Mon, 1 Mar 2010 19:16:34 +0000 (19:16 +0000)]
MFC r204195:
Improve output for controllers that doesn't report SATA speed.

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

14 years agoMFC of 204397: fix problems with fast posting handles
mjacob [Mon, 1 Mar 2010 17:36:45 +0000 (17:36 +0000)]
MFC of 204397: fix problems with fast posting handles

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

14 years agoMFC r204356:
mav [Mon, 1 Mar 2010 11:33:09 +0000 (11:33 +0000)]
MFC r204356:
Store path for rescan to the right place. This should fix panic on boot,
introduced by r203108.

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

14 years agoMFC r204197:
nwhitehorn [Mon, 1 Mar 2010 00:38:20 +0000 (00:38 +0000)]
MFC r204197:

Allow user programs to execute mfpvr instructions. Linux allows this, and
some math-related software like GMP expects to be able to use it to pick
a target appropriately.

Reported by: Jakob van Santen <vansanten at wisc dot edu>

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

14 years agoMFC r204129:
nwhitehorn [Mon, 1 Mar 2010 00:35:30 +0000 (00:35 +0000)]
MFC r204129:

Enable NETIF_OPEN_CLOSE_ONCE on PowerPC OFW. This fixes netbooting on
PowerPC Book-S hardware, which had been broken for a very long time.

Submitted by: Andreas Tobler

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

14 years agoMFC r203360
joerg [Sun, 28 Feb 2010 22:25:39 +0000 (22:25 +0000)]
MFC r203360

  GPIB overhaul, part #2: make the tnt4882 driver work with the newer
  TNT5004 IC.  This involved a major rewrite of a number of things, as
  this chip no longer supports the NAT7210 legacy mode but requires the
  host to use the (more modern) FIFO mode.

  In theory, this also ought to work on the older TNT4882C chip.  I'll
  probably add this as optional support (perhaps by a device.hints flag)
  later on.  By now, FIFO mode is *only* activates iff a TNT5004 chip
  has been detected (where the old code didn't work at all), while
  everything else is supposed to use the old code.

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

14 years agoMFC r203546: acpi_cpu: prefer _OSC over _PDC
avg [Sun, 28 Feb 2010 21:43:47 +0000 (21:43 +0000)]
MFC r203546: acpi_cpu: prefer _OSC over _PDC

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

14 years agoMFC r203430: acpi_cpu: correct capabilities arguments for Processor _OSC
avg [Sun, 28 Feb 2010 21:30:46 +0000 (21:30 +0000)]
MFC r203430: acpi_cpu: correct capabilities arguments for Processor _OSC

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

14 years agoMFC r203061: KASSERT contract of return value of interrupt filter
avg [Sun, 28 Feb 2010 21:28:24 +0000 (21:28 +0000)]
MFC r203061: KASSERT contract of return value of interrupt filter

X-MFCto7 after: 1 week

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

14 years agoMFC r203665:
jh [Sun, 28 Feb 2010 14:04:20 +0000 (14:04 +0000)]
MFC r203665:

Make sure that FTS_COMFOLLOW is not set when the -P option is in effect.
Otherwise the -i option will show the inode number of the referenced file
for symbolic links given on the command line. Similarly, the file color
was printed according to the link target in colorized output.

PR: bin/102394

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

14 years agoMerge r204166 from head:
gavin [Sun, 28 Feb 2010 11:14:29 +0000 (11:14 +0000)]
Merge r204166 from head:

  Document the interaction between /etc/devfs.conf and
  /etc/defaults/devfs.conf

PR: docs/117308
Submitted by: Mel <mel.xyzzy rachie.is-a-geek.net> (partially)

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

14 years agoMFC of 204384: Fix misallocation error in target mode
mjacob [Sun, 28 Feb 2010 06:07:53 +0000 (06:07 +0000)]
MFC of 204384: Fix misallocation error in target mode

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

14 years agoMFC rev 204182:
marcel [Sun, 28 Feb 2010 01:25:12 +0000 (01:25 +0000)]
MFC rev 204182:
Remove pm_active from struct pmap as it serves no purpose.

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

14 years agoMFC r203490: Introduce '[ipaddr]:path' notation.
ume [Sat, 27 Feb 2010 18:27:32 +0000 (18:27 +0000)]
MFC r203490: Introduce '[ipaddr]:path' notation.
Since the existing implementation searches ':' backward, a path which
includes ':' could not be mounted.  You can now mount such path by
enclosing an IP address by '[]'.
Though we should change to search ':' forward, it will break
'ipv6addr:path' which is currently working.  So, it still searches ':'
backward, at least for now.

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

14 years agoMFC r203433:
ume [Sat, 27 Feb 2010 18:19:13 +0000 (18:19 +0000)]
MFC r203433:

Add rc.d script for the rtsold(8) daemon.

The rtsol(8) handles just one RA then exit.  So, the OtherConfig flag
may not be handled well by rtsol(8) in the environment where there are
multiple RA servers on the segment.  In such case, rtsold(8) will be
your friend.

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

14 years agoMFC r203827:
kib [Sat, 27 Feb 2010 16:51:23 +0000 (16:51 +0000)]
MFC r203827:
- Add idempotency guards so the structures can be used in other utilities.
- Update bpb structs with reserved fields.
- In direntry struct join deName with deExtension. Although a
  fix was attempted in the past, these fields were being overflowed,
  Now this is consistent with the spec, and we can now share the
  WinChksum code with NetBSD.

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

14 years agoMFC r204106:
emaste [Sat, 27 Feb 2010 03:47:22 +0000 (03:47 +0000)]
MFC r204106:

  Avoid corrupting the list or queue if _REMOVE is invoked with a
  reference to the head.

PR: kern/119307

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

14 years agoMFC of 203763, 203764, 203768, 203769, 203770, 203782, and 203784.
mckusick [Fri, 26 Feb 2010 21:49:11 +0000 (21:49 +0000)]
MFC of 203763, 203764, 203768, 203769, 203770, 203782, and 203784.

These fixes correct a problem in the file system that treats large
inode numbers as negative rather than unsigned. For a default
(16K block) file system, this bug began to show up at a file system
size above about 16Tb.

These fixes also update newfs to ensure that it will never create a
filesystem with more than 2^32 inodes.

They also update libufs, tunefs, and growfs so that they properly
handle inode numbers as unsigned.

Reported by: Scott Burns, John Kilburg, and Bruce Evans
Followup by: Jeff Roberson
PR:          133980

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

14 years agoMFC r203695, r203751
rpaulo [Fri, 26 Feb 2010 20:25:30 +0000 (20:25 +0000)]
MFC r203695, r203751
  Fix spelling mistake and compile error.

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

14 years agoMFC r203683:
rpaulo [Fri, 26 Feb 2010 18:46:16 +0000 (18:46 +0000)]
MFC r203683:
 Add multicast key search support. This fixes corrupted mcast packets
 when we have more than one hostap vap.

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

14 years agoMFC 203052:
delphij [Fri, 26 Feb 2010 00:54:47 +0000 (00:54 +0000)]
MFC 203052:

Add interface description capability as inspired by OpenBSD.  Thanks for
rwatson@, jhb@, brooks@ and others for feedback to the old implementation!

Sponsored by: iXsystems, Inc.

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

14 years agoMFC: r204105
jkim [Fri, 26 Feb 2010 00:11:17 +0000 (00:11 +0000)]
MFC: r204105

Return partially filled buffer for non-blocking read(2)
in non-immediate mode.

PR: kern/143855
Submitted by: Guy Harris (guy at alum dot mit dot edu)

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

14 years agoMFC r204009
raj [Thu, 25 Feb 2010 13:28:05 +0000 (13:28 +0000)]
MFC r204009

Assorted fixes for mge(4).

- Use proper map for the busdma sync on mge descriptor.
- Remove unnecesary busdma sync.
- Eliminate redundant locking in mge_reinit_rx() (just assert).
- Kill unused variable.

Submitted by: Grzegorz Bernacki
Obtained from: Semihalf

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

14 years agoMFC r204205:
kib [Thu, 25 Feb 2010 10:40:52 +0000 (10:40 +0000)]
MFC r204205:
Remove write-only variable.

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

14 years agoMFC r202964:
delphij [Thu, 25 Feb 2010 00:46:51 +0000 (00:46 +0000)]
MFC r202964:

On FreeBSD, time_t is 64-bit for all platforms except i386 and powerpc,
where the type is 32-bit.  ZFS can handle 64-bit timestamp internally
but zfs_setattr() would check if the time value can fit, we change the
checking macros to match 64-bit timestamp if the platform supports it.

This change has some downsides like, while you can import zfs on 32-bit
platforms, the timestamp would overflow if they are out of the range.

This fixes the Y2.038K issue on platforms using 64-bit timestamps.

Reviewed by: pjd

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

14 years agoMFC r202143,202163,202341,202342,204278
brooks [Wed, 24 Feb 2010 22:16:16 +0000 (22:16 +0000)]
MFC r202143,202163,202341,202342,204278

  Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic
  kern.ngroups+1.  kern.ngroups can range from NGROUPS_MAX=1023 to
  somewhere in the neighborhood of INT_MAX/4 one a system with sufficent
  RAM and memory bandwidth.  Given that the Windows group limit is
  1024, this range should be sufficient for most applications

r202342:
  Only allocate the space we need before calling kern_getgroups instead
  of allocating what ever the user asks for up to "ngroups_max + 1".  On
  systems with large values of kern.ngroups this will be more efficient.

  The now redundant check that the array is large enough in
  kern_getgroups() is deliberate to allow this change to be merged to
  stable/8 without breaking potential third party consumers of the API.

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

14 years agoMFC 204090:
jhb [Wed, 24 Feb 2010 21:29:18 +0000 (21:29 +0000)]
MFC 204090:
Fix mptutil's method for locating disk devices attached to a specific
mpt(4) controller.  Previously, the code assumed that multiple match
patterns provided to an XPT_DEV_MATCH request were ANDed together.
Instead, they are ORed.  Instead, to match peripherals for a specific bus,
one query needs to be performed to lookup the path ID of the bus.  A second
query can then be performed matching peripherals attached to that path.
This approach also makes the code a bit cleaner as the returned match
results do not mix buses and perphierals.

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

14 years agoMFC 204086:
jhb [Wed, 24 Feb 2010 21:20:25 +0000 (21:20 +0000)]
MFC 204086:
- Don't emit a warning in 'show adapter' if the IOC2 or IOC6 pages are not
  present.  mpt(4) controllers that do not support RAID do not have an IOC6
  page, for example.
- Correct a check for a missing page error in a debug function.

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

14 years agoMFC r203924:
raj [Wed, 24 Feb 2010 20:20:02 +0000 (20:20 +0000)]
MFC r203924:

Call the proper linkup routine in PowerPC Book-E machdep.

Submitted by: attilio

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

14 years agoMFC r202945:
jh [Wed, 24 Feb 2010 15:27:31 +0000 (15:27 +0000)]
MFC r202945:

Fixes for ls(1) long format (-l) output:

- Allow -h option to work if the listing contains at least one device
  file.
- Align major and minor device numbers correctly to the size field.

PR: bin/125678

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

14 years agoMFC r201684.
pjd [Tue, 23 Feb 2010 16:46:34 +0000 (16:46 +0000)]
MFC r201684.

Teach the (gpt)zfsboot and zfsloader raidz code to use its buffers
more efficiently.

Before this patch, in the worst case memory use would increase
exponentially on the number of drives in the raidz vdev.

Submitted by: Matt Reimer <mattjreimer@gmail.com>
Sponsored by: VPOP Technologies, Inc.
Silence from: dfr

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

14 years agoMFC r202812:
emaste [Tue, 23 Feb 2010 01:00:15 +0000 (01:00 +0000)]
MFC r202812:

  Add H55 ID from Mike Tancsa, with minor rewording from avg@.

PR: kern/143068
Submitted by: Mike Tancsa (Sentex)

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

14 years agoMFC r203728:
delphij [Tue, 23 Feb 2010 00:40:02 +0000 (00:40 +0000)]
MFC r203728:

 - Return EAFNOSUPPORT instead of EINVAL for unsupported address family,
   this matches the Linux behavior.
 - Check if we have sufficient space allocated for socket structure, which
   fixes a buffer overflow when wrong length is being passed into the
   emulation layer. [1]

PR: kern/138860
Submitted by: Mateusz Guzik <mjguzik gmail com>
Reported by: Alexander Best [1]

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

14 years agoMFC r203533:
delphij [Mon, 22 Feb 2010 22:27:26 +0000 (22:27 +0000)]
MFC r203533:

Remove two files that are not needed by FreeBSD.

Approved by:  pjd

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

14 years ago- Factor out the code shared between NFS client and server into its own
marius [Mon, 22 Feb 2010 21:45:20 +0000 (21:45 +0000)]
- Factor out the code shared between NFS client and server into its own
  module so it's not present twice.
- Move nfs_realign() from the NFS client to the shared NFS code and
  remove the NFS server version in order to reduce code duplication.
  The shared version now uses a second parameter how, which is passed
  on to m_get(9) and m_getcl(9) as the server used M_WAIT while the
  client requires M_DONTWAIT, and replaces the the previously unused
  parameter hsiz.
- Change nfs_realign() to use nfsm_aligned() so as with other NFS code
  the alignment check isn't actually performed on platforms without
  strict alignment requirements for performance reasons because as the
  comment suggests unaligned data only occasionally occurs with TCP.
- Change fha_extract_info() to use nfs_realign() with M_DONTWAIT rather
  than M_WAIT because it's called with the RPC sp_lock held.

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

14 years agoMFC r203673:
bschmidt [Mon, 22 Feb 2010 17:10:47 +0000 (17:10 +0000)]
MFC r203673:
Ensure that tkip_mixing_phase1() is called after a rekeying event when
using plain s/w crypto.

PR: bin/142547
Approved by: rpaulo (mentor)

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

14 years agoMFC: r203919: Show when an ARP entry expires (now that this info
ru [Mon, 22 Feb 2010 16:00:55 +0000 (16:00 +0000)]
MFC: r203919: Show when an ARP entry expires (now that this info
cannot be obtained with netstat(1)).

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

14 years agoMFC: r204008: realloc() with a proper amount of memory.
ru [Mon, 22 Feb 2010 15:58:10 +0000 (15:58 +0000)]
MFC: r204008: realloc() with a proper amount of memory.

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

14 years agoMFC r203551:
jh [Sun, 21 Feb 2010 13:17:35 +0000 (13:17 +0000)]
MFC r203551:

- Cast intptr_t, pid_t and time_t values to intmax_t and use %jd with
  printf.
- Cast the system call return value to long and use %ld in a printf in
  ktrsysret().

PR: bin/123774

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

14 years agoMerge r200413 and r202755 from head to stable/8:
antoine [Sun, 21 Feb 2010 11:22:01 +0000 (11:22 +0000)]
Merge r200413 and r202755 from head to stable/8:
reduces white space diff between head and stable/8

Suggested by: ru@

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

14 years agoMFC r203866:
kib [Sun, 21 Feb 2010 11:13:15 +0000 (11:13 +0000)]
MFC r203866:
Invalid filesystem might cause the bp to be never read.

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

14 years agoMFC r203085
alc [Sun, 21 Feb 2010 04:10:25 +0000 (04:10 +0000)]
MFC r203085
  Optimize pmap_demote_pde() by using the new KPTmap to access a kernel
  page table page instead of creating a temporary mapping to it.

  Set the PG_G bit on the page table entries that implement the KPTmap.

  Locore initializes the unused portions of the NKPT kernel page table
  pages that it allocates to zero.  So, pmap_bootstrap() needn't zero
  the page table entries referenced by CMAP1 and CMAP3.

  Simplify pmap_set_pg().

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

14 years agoMFC rev 203883:
marcel [Sat, 20 Feb 2010 22:43:12 +0000 (22:43 +0000)]
MFC rev 203883:
o   Eliminate IA64_PHYS_TO_RR6 by calling bus_space_map() or pmap_mapdev().
o   Implement bus_space_map() in terms of pmap_mapdev().
o   Have ia64_pib hold the uncached virtual address of the PIB.

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

14 years agoMFC r203157, r203816:
jh [Sat, 20 Feb 2010 13:35:05 +0000 (13:35 +0000)]
MFC r203157, r203816:

Handle short reads when the -P option is used and remove some dead code.

PR: bin/121502

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

14 years agoMFC from head to stable/8:
antoine [Sat, 20 Feb 2010 12:48:44 +0000 (12:48 +0000)]
MFC from head to stable/8:
r202896:
  Unbreak world:
  - WITHOUT_OPENSSH (and WITH_KERBEROS)
  - WITHOUT_KERBEROS and WITH_GSSAPI

  PR: 137483
  Submitted by: bf
r203016 by ru@:
  Regen the list of prebuild libraries using tools/make_libdeps.sh.

Reviewed by: ru@

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

14 years agoMFC r203826:
kib [Sat, 20 Feb 2010 11:58:19 +0000 (11:58 +0000)]
MFC r203826:
Use M_ZERO instead of calling bzero().
Fix function name in the comment.

MFC r203828:
Fix function name in the comment in the second location too.

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

14 years agoMFC r203822:
kib [Sat, 20 Feb 2010 11:54:18 +0000 (11:54 +0000)]
MFC r203822:
Remove unused macros.

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

14 years agoMFC r203818:
kib [Sat, 20 Feb 2010 11:50:50 +0000 (11:50 +0000)]
MFC r203818:
Clear the bp pointer when buffer is already brelse()d.

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

14 years agoMFC r200291, r203529:
mav [Fri, 19 Feb 2010 18:15:45 +0000 (18:15 +0000)]
MFC r200291, r203529:
Increase Max Read Request Size for PCIe chips from 512 to 1024 bytes.
It gives those beasts additional 10% of write bandwidth.
Use new helper functions to do it.

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

14 years agoMFC r203528:
mav [Fri, 19 Feb 2010 18:07:51 +0000 (18:07 +0000)]
MFC r203528:
Add pci_get|set_max_read_req() helper functions to control maximum PCIe
read request size.

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

14 years agoMark r203870 as merged. It was accidentally committed before.
mav [Fri, 19 Feb 2010 18:01:32 +0000 (18:01 +0000)]
Mark r203870 as merged. It was accidentally committed before.

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

14 years agoMFC r203873:
mav [Fri, 19 Feb 2010 17:54:03 +0000 (17:54 +0000)]
MFC r203873:
With FBS enabled, we have no idea what command caused timeout.
Implement same logic as in siis(4) - wait for other commands
complete or timeout and then give some more time.

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

14 years agoMFC r203931:
mav [Fri, 19 Feb 2010 17:45:47 +0000 (17:45 +0000)]
MFC r203931:
Make CD driver a bit more robust and predictable to unreported errors.

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

14 years agoMFC: r203849
rmacklem [Fri, 19 Feb 2010 16:36:08 +0000 (16:36 +0000)]
MFC: r203849
Change the default value for vfs.newnfs.enable_locallocks to 0 for
the experimental NFS server, since local locking is known to be
broken and the patch to fix it is still a work in progress.

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