]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
12 years agoMFC r225659:
hselasky [Mon, 26 Sep 2011 07:38:01 +0000 (07:38 +0000)]
MFC r225659:
Implement missing USB debug information functions.

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

12 years agoFollow up to r225738 to fix the mismerge of share/man/man4/Makefile.
lstewart [Fri, 23 Sep 2011 05:35:24 +0000 (05:35 +0000)]
Follow up to r225738 to fix the mismerge of share/man/man4/Makefile.

This is an intentional direct commit to the 8-STABLE branch.

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

12 years agoMFC r225583:
lstewart [Fri, 23 Sep 2011 05:28:09 +0000 (05:28 +0000)]
MFC r225583:

Rename the cc.4 and cc.9 modular congestion control related man pages to
mod_cc.4 and mod_cc.9 respectively to avoid any possible confusion with the cc.1
gcc man page. Update references to these man pages where required.

Requested by: Grenville Armitage

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

12 years agoMFC r202992:
gabor [Thu, 22 Sep 2011 22:08:09 +0000 (22:08 +0000)]
MFC r202992:

Cache failing and opened catalogs in catopen() and related functions.
Continuous catopen() calls cause 4 failig stat(2) each, which means a lot
of overhead.  It is also a good idea to keep the opened catalogs in the memory
to speed up further catopen() calls to the same catalog since these catalogs
are not big at all.  In this case, we count references and only free() the
allocated space when the reference count reaches 0.  The reads and writes to
the cache are syncronized with an rwlock when these functions are called from
a threaded program.

MFC r202993, r203174, r203719, r204110:

Small fixes and style nits for the above change.

Approved by: delphij (mentor)

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

12 years agoMFC r225587:
jh [Thu, 22 Sep 2011 17:59:33 +0000 (17:59 +0000)]
MFC r225587:

Expose "log" in the default devfs rules. /etc/rc.d/jail creates /dev/log
as a symbolic link.

PR: conf/160711

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

12 years agoMFC r225516:
attilio [Thu, 22 Sep 2011 11:07:11 +0000 (11:07 +0000)]
MFC r225516:
Return ENOSPC rather than ENXIO when dump_write() cannot proceed in
order to correctl deal with consumers.

Sponsored by: Sandvine Incorporated

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

12 years agoMFC r225582:
kib [Thu, 22 Sep 2011 08:39:20 +0000 (08:39 +0000)]
MFC r225582:
Use the proper dynamic tls block to calculate the tls variable address
in case tls data generation was updated.

PR: misc/160721

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

12 years agoMFC r225452:
delphij [Thu, 22 Sep 2011 01:13:40 +0000 (01:13 +0000)]
MFC r225452:

Sync pf.os with OpenBSD:

 - Update OpenBSD fingerprints through OpenBSD 4.9
 - Fix typos.

Obtained from: OpenBSD

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

12 years agoMFC r225556:
hselasky [Wed, 21 Sep 2011 07:31:16 +0000 (07:31 +0000)]
MFC r225556:
Reduce USB memory usage during enumeration.

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

12 years agoMFC r225534:
kib [Tue, 20 Sep 2011 08:34:15 +0000 (08:34 +0000)]
MFC r225534:
Do not try to change the mode or ownership of the root of the mountpoint
when newly established mdmfs mount is readonly.

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

12 years agoMFC: r225533
brueffer [Tue, 20 Sep 2011 04:59:34 +0000 (04:59 +0000)]
MFC: r225533

Improve the sleep_delay sysctl description by specifying which unit
the number is in.

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

12 years agoMFC 225341:
jhb [Mon, 19 Sep 2011 16:28:36 +0000 (16:28 +0000)]
MFC 225341:
Clear the mountprog variable after each mountfs() call so that mountprog
options don't leak over into subsequent mounts listed in /etc/fstab.
While here, fix a memory leak in debug mode.

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

12 years agoMFC 225331:
jhb [Mon, 19 Sep 2011 16:25:37 +0000 (16:25 +0000)]
MFC 225331:
Move the logic to parse volume cache commands out into a separate function
and use a loop so that multiple cache commands can be strung together on
the command line into a single update to the volume's properties.

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

12 years agoMFC r225448:
attilio [Mon, 19 Sep 2011 11:08:31 +0000 (11:08 +0000)]
MFC r225448:
Improve busy buffers diagnostic on shutdown path.

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

12 years agoMFC 225200:
jhb [Fri, 16 Sep 2011 19:53:56 +0000 (19:53 +0000)]
MFC 225200:
- Replace references to sio(4) with uart(4) instead.
- We no longer use the same data structure in as NetBSD in pucdata.c.
- ppc(4) has had a puc(4) attachment for a while now.

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

12 years agoMFC 225017:
jhb [Fri, 16 Sep 2011 19:52:49 +0000 (19:52 +0000)]
MFC 225017:
Walk the zombproc list as well as the allproc list when enumerating threads
and processes in a kernel image.  This allows examination of threads that
have exited or are in the late stages of exiting.

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

12 years agoMFC 224942:
jhb [Fri, 16 Sep 2011 19:29:11 +0000 (19:29 +0000)]
MFC 224942:
Fix a regression where a rule containing a source port option after a
destination IP would incorrectly display the source port as a destination
port.

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

12 years agoMFC 225201:
jhb [Fri, 16 Sep 2011 18:41:19 +0000 (18:41 +0000)]
MFC 225201:
Enable the puc(4) driver on amd64 and i386 in GENERIC.  This allows
devices supported by puc(4) to work "out of the box" since puc.ko does
not work "out of the box".

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

12 years agoMFC 225194:
jhb [Fri, 16 Sep 2011 18:36:43 +0000 (18:36 +0000)]
MFC 225194:
Make NKPT a kernel option on amd64 so that it can be set to a non-default
value from kernel config files.

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

12 years agoMFC 225079:
jhb [Fri, 16 Sep 2011 18:26:40 +0000 (18:26 +0000)]
MFC 225079:
Add two new macros DRIVER_MODULE_ORDERED() and EARLY_DRIVER_MODULE_ORDERED()
that allow a module to use an order other than the default of
SI_ORDER_MIDDLE when registering a driver.  This can be useful for drivers
in a kld that contain multiple new-bus drivers as part of one logical device
driver.  A typical case would be to use SI_ORDER_LAST for the "main" driver
to ensure that any other "helper" drivers are registered and available
before the "main" driver attempts to attach.

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

12 years agoMFC 224733:
jhb [Fri, 16 Sep 2011 18:23:39 +0000 (18:23 +0000)]
MFC 224733:
Allow the NFS client to use a max file size larger than 1TB for v3 mounts.
It now allows files up to OFF_MAX subject to whatever limit the server
advertises.

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

12 years agoMFC 224228:
jhb [Fri, 16 Sep 2011 18:18:38 +0000 (18:18 +0000)]
MFC 224228:
Note that the "kernel" variable in loader.conf is the name of a directory
containing a kernel under /boot and that it's default value is "kernel"
not "/boot/kernel/kernel".

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

12 years agoMFC 224041:
jhb [Fri, 16 Sep 2011 17:47:12 +0000 (17:47 +0000)]
MFC 224041:
Support controllers whose option ROM is disabled in the BIOS by kicking
the firmware so that it boots.

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

12 years agoMFC 224039:
jhb [Fri, 16 Sep 2011 17:44:33 +0000 (17:44 +0000)]
MFC 224039:
Use MFI_STAT_* constants for cmd_status field values rather than magic
numbers in a few places.

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

12 years agoMFC 224062:
jhb [Fri, 16 Sep 2011 17:41:56 +0000 (17:41 +0000)]
MFC 224062:
Revert 130163 and let top use KERN_PROC_PROC when individual threads are
not displayed.  The KERN_PROC_PROC sysctl was fixed in 188764.

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

12 years agoMFC 223936,224205:
jhb [Fri, 16 Sep 2011 17:39:39 +0000 (17:39 +0000)]
MFC 223936,224205:
Allow per-CPU statistics to be toggled at runtime via the 'P' key.
While here, make -P a toggle similar to other options such as -I.

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

12 years agoMFC r225340:
delphij [Fri, 16 Sep 2011 05:57:01 +0000 (05:57 +0000)]
MFC r225340:

Fix a bug in ichwd(4) which prevents it from being enabled if the new
timeout is the same timeout.

Submitted by: Dmitrij Tejblum <tejblum yandex-team.ru>
PR: kern/139604

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

12 years agoMFC r225338:
delphij [Fri, 16 Sep 2011 05:45:13 +0000 (05:45 +0000)]
MFC r225338:

Fix the check in dircheck() on namlen.

The value of namlen is copied from on-disk d_namlen, which is a 8-bit
unsigned integer which can never exceed MAXNAMLEN (255) so the test is
always true.  Moreover, UFS does not allow d_namelen being zero.

Change namlen from u_int to u_int8_t, and replace the unneeded test
with a useful test.

PR: bin/160339
Submitted by: Eugene Grosbein <eugen grosbein.pp.ru>

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

12 years agoMerge r225570 from HEAD - Ensure that ta_pending doesn't overflow u_short by capping...
adrian [Fri, 16 Sep 2011 02:28:55 +0000 (02:28 +0000)]
Merge r225570 from HEAD - Ensure that ta_pending doesn't overflow u_short by capping its value at USHRT_MAX.

If it overflows before the taskqueue can run, the task will be
re-added to the taskqueue and cause a loop in the task list.

Submitted by: rstone@
Reviewed by:  jhb@

MFC after: 1 day

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

12 years agoMFC r225440:
yongari [Thu, 15 Sep 2011 17:20:20 +0000 (17:20 +0000)]
MFC r225440:
  vge(4) hardwares poll media status and generates an interrupt
  whenever the link state is changed.  Using software based polling
  for media status tracking is known to cause MII access failure
  under certain conditions once link is established so vge(4) used to
  rely on link status change interrupt.
  However DEVICE_POLLING completely disables generation of all kind
  of interrupts on vge(4) such that this resulted in not detecting
  link state change event.  This means vge(4) does not correctly
  detect established/lost link with DEVICE_POLLING.  Losing the
  interrupt made vge(4) not to send any packets to peer since vge(4)
  does not try to send any packets when there is no established link.

  Work around the issue by generating link state change interrupt
  with DEVICE_POLLING.

  PR: kern/160442

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

12 years agoMFC r225177,225181:
attilio [Thu, 15 Sep 2011 12:27:26 +0000 (12:27 +0000)]
MFC r225177,225181:
Introduce and use seldrain() function for dealing with fast
selrecord/selinfo destruction.

Sponsored by: Sandvine Incorporated

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

12 years agoMFC r223530: generic_stop_cpus: pull timeout logic from under DIAGNOSTIC
avg [Thu, 15 Sep 2011 11:17:07 +0000 (11:17 +0000)]
MFC r223530: generic_stop_cpus: pull timeout logic from under DIAGNOSTIC

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

12 years agoMFC r213736: generic_stop_cpus: prevent parallel execution
avg [Thu, 15 Sep 2011 10:51:31 +0000 (10:51 +0000)]
MFC r213736: generic_stop_cpus: prevent parallel execution

Addendum to the original commit message:
This is mostly useful to protect kdb_trap() from concurrent entry as it
doesn't have any protection like e.g. panic(9) has.  Even if kdb_trap()
had that protection there would still be a need for protection
between concurrect panic() and kdb_trap() entries.  That protection
could be implemented externally, but doing it in generic_stop_cpus()
seems to be OK as well (stopping CPUs on panic is in the works).

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

12 years agoMFC r209305,209358: Do not allow EOF token to be put back into input buffer.
avg [Thu, 15 Sep 2011 10:39:44 +0000 (10:39 +0000)]
MFC r209305,209358: Do not allow EOF token to be put back into input buffer.

PR: kern/159064
On behalf of: kan, marcel

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

12 years agoMFC r209030: In dtrace lexer, do not unput token if it is EOF.
avg [Thu, 15 Sep 2011 10:35:38 +0000 (10:35 +0000)]
MFC r209030: In dtrace lexer, do not unput token if it is EOF.

On behalf of: kan

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

12 years agoMFC r223356 (by delphij):
ae [Thu, 15 Sep 2011 04:34:59 +0000 (04:34 +0000)]
MFC r223356 (by delphij):
  Mod the offset padding by alignment.  Without this change we may
  pad too much when underlying GEOM object have a zero stripesize.

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

12 years agoMFC r225445:
ae [Thu, 15 Sep 2011 04:32:14 +0000 (04:32 +0000)]
MFC r225445:
  Don't use the whole free space when resizing  partition to a larger size
  on a disk with non zero stripesize (e.g. disks with 4k sector size)[1].
  Also do not use automatic alignment when size is exactly specified, but
  an alignment is not. Use automatic alignment only for case when user
  omits both "-s" and "-a" options.

  Reported by: Mikael Fridh <frimik at gmail> [1]

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

12 years agoMFC r222951:
attilio [Wed, 14 Sep 2011 10:27:23 +0000 (10:27 +0000)]
MFC r222951:
Fix races in handling flags at detach time for FIBs.

Sponsored by: Sandvine Incorporated

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

12 years agoMFC r225416:
kib [Tue, 13 Sep 2011 08:49:52 +0000 (08:49 +0000)]
MFC r225416:
Add -t switch for mdmfs to enable TRIM on the configured filesystem.
While there, fix minor style issues.

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

12 years agoMFC r225372:
attilio [Mon, 12 Sep 2011 11:18:54 +0000 (11:18 +0000)]
MFC r225372:
Disable the watchdog while a KDB backend is running and kick it again
just before to return KDB context.

Sponsored by: Sandvine Incorporated

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

12 years agoMFC r224002:
delphij [Mon, 12 Sep 2011 06:41:13 +0000 (06:41 +0000)]
MFC r224002:

Add a new option, -N to disable the default and recommended syslogd(8)
behavior, which binds to the well known UDP port.

This option implies -s.

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

12 years agoMFC r225380
thompsa [Sun, 11 Sep 2011 23:37:40 +0000 (23:37 +0000)]
MFC r225380

 On the first loop for generating a bridge MAC address use the local
 hostid, this gives a good chance of keeping the same address over
 reboots. This is intended to help IPV6 and similar which generate
 their addresses from the mac.

PR: kern/160300
Submitted by: mdodd

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

12 years agoMFC r223007,r223011,r223546,r224104: sh: New testcases that already work in
jilles [Sun, 11 Sep 2011 21:38:33 +0000 (21:38 +0000)]
MFC r223007,r223011,r223546,r224104: sh: New testcases that already work in
stable/8.

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

12 years agoMFC: r221407 (partial)
marius [Sun, 11 Sep 2011 20:38:33 +0000 (20:38 +0000)]
MFC: r221407 (partial)

- Let mii_phy_add_media() also announce the support of IFM_NONE.
- Add a PHY-specific reset routine is for lxtphy(4) which disables MII
  interrupts.
- Remove redundant checks in NIC drivers for mii->mii_instance not being
  zero before calling the reset routines because as soon as one PHY driver
  attaches mii->mii_instance is incremented and we hardly can end up in
  their media change callbacks etc if no PHY driver has attached as
  mii_attach() would have failed in that case and not attach a miibus(4)
  instance.
- Convert the mebers of the MII data structure to unsigned where
  appropriate. This is partly inspired by NetBSD/OpenBSD.
- Add MIIF_NOMANPAUSE and mii_phy_flowstatus() calls to drivers that
  weren't explicitly converted to support flow control before. It's
  unclear whether flow control actually works with these but typically
  it should and their net behavior should be more correct with these
  changes in place than without if the MAC driver sets MIIF_DOPAUSE.

Obtained from: NetBSD (partially)

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

12 years agoMFC r225414:
hselasky [Sat, 10 Sep 2011 16:56:38 +0000 (16:56 +0000)]
MFC r225414:
Fix precedence warning when compiling kernel with clang.

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

12 years agoMFC r225469:
hselasky [Sat, 10 Sep 2011 16:52:15 +0000 (16:52 +0000)]
MFC r225469:

Refactor auto-quirk solution so that we break as few external
drivers as possible.

PR: usb/160299
Suggested by: rwatson

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

12 years agoMFC: r225348
brueffer [Fri, 9 Sep 2011 19:39:54 +0000 (19:39 +0000)]
MFC: r225348

Remove an incorrect apostrophe.

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

12 years agoMFC r225350 and r225400:
hselasky [Fri, 9 Sep 2011 07:44:14 +0000 (07:44 +0000)]
MFC r225350 and r225400:

This patch adds automatic detection of USB mass storage devices
which does not support the no synchronize cache SCSI command.

The __FreeBSD_version version macro has been bumped and
external kernel modules needs to be recompiled after
this patch.

PR: usb/160299

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

12 years agoMFC r225199:
delphij [Fri, 9 Sep 2011 01:39:19 +0000 (01:39 +0000)]
MFC r225199:

Fix format strings for KTR_STATE in 4BSD ad ULE schedulers.

Submitted by: Ivan Klymenko <fidaj@ukr.net>
PR: kern/159904, kern/159905

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

12 years agoMFC r225446:
delphij [Thu, 8 Sep 2011 16:22:58 +0000 (16:22 +0000)]
MFC r225446:

Fix SSL memory handlig for (EC)DH cipher suites, in particular for
multi-threaded use of ECDH.

Security: CVE-2011-3210
Reviewed by: stas
Obtained from: OpenSSL CVS

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

12 years agoMFC: r225109
rmacklem [Thu, 8 Sep 2011 00:45:28 +0000 (00:45 +0000)]
MFC: r225109
Fix nfsstat(1) so that it prints out correct stats for the
new NFS server when the "-w" option is used. The problem was
spotted by hrs@ during testing where srvrpcnt[] must be indexed
by NFSV4OP_XXX and not NFSPROC_XXX.

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

12 years agoMFC: r225334
marius [Mon, 5 Sep 2011 17:45:22 +0000 (17:45 +0000)]
MFC: r225334

Fix alignment assumptions.

PR: 160289

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

12 years agoMFC: r198136
marius [Mon, 5 Sep 2011 12:39:14 +0000 (12:39 +0000)]
MFC: r198136

Support the specification of a range of destination ports e.g.

netsend 127.0.0.1 6666-7777 [payloadsize] [packet_rate] [duration]

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

12 years agoMFC: r198132
marius [Mon, 5 Sep 2011 12:36:10 +0000 (12:36 +0000)]
MFC: r198132

A small change to avoid calling gettimeofday() too often (hardwired to once
every 20us at most).

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

12 years agoMFC r224659, r224674 and r224765:
ed [Mon, 5 Sep 2011 11:08:33 +0000 (11:08 +0000)]
MFC r224659, r224674 and r224765:

  Remove NIS entries from /etc/nsswitch.conf for WITHOUT_NIS.

  We already modify various configuration files in /etc based on build
  configuration. This is not done for nsswitch.conf right now when setting
  WITHOUT_NIS. This breaks various utilities, including crond, that depend
  on working databases.

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

12 years agoMFC r225167, r225329:
mm [Mon, 5 Sep 2011 09:49:28 +0000 (09:49 +0000)]
MFC r225167, r225329:

MFC r225167:
Import bugfix for reading and extracting of FreeBSD ISO images with tar.

Vendor revision 3645 (merge of 3642):
Change the mechanism handling a rr_moved directory,
which is Rockridge extension that can exceed the limitation of
a maximum directory depth of ISO 9660.
  - Stop reading all entries at a time.
  - Connect "CL" entry to "RE" entry dynamically, which "CL" and "RE"
    have information to rebuild a full directory tree.
  - Tweak some related tests since we use Headsort for re-ordering
    entries and it cannot make a steady order when the keies of
    the entries are the same.

http://code.google.com/p/libarchive/issues/detail?id=168

MFC r225329:
Import additional bugfix for reading and extracting makefs-created
ISO images with tar.

Vendor revision 3648 (merge of 3647):
Additional fix to issue 168 because the change of r3642 was not sufficient.
  - Make sure "CL" entry appear after its "RE" entry which the "CL" entry
    should be connected with.
  - Give consideration to the case that the top level "RE" entry has
    already been exposed outside before its tree.

Obtained from: libarchive (release/2.8, svn rev 3645, 3648)

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

12 years agoMFC r225076:
kib [Mon, 5 Sep 2011 08:41:57 +0000 (08:41 +0000)]
MFC r225076:
Apply the limit to avoid the overflows in the radix tree subr_blist.c
after the conversion of the swap device size to the page size units,
not before.

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

12 years agoMFC r225330:
pluknet [Mon, 5 Sep 2011 07:57:56 +0000 (07:57 +0000)]
MFC r225330:

 Cosmetic cleanup: remove unused #define LIBMEMSTAT

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

12 years agoMFC r225234:
art [Mon, 5 Sep 2011 06:54:13 +0000 (06:54 +0000)]
MFC r225234:

Make sure RPC calls over UDP return RPC_INTR status if the process has
been interrupted in a restartable syscall. Otherwise we could end up
in an (almost) endless loop in clnt_reconnect_call().

PR: kern/160198
Reviewed by: rmacklem
Approved by: avg (mentor)

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

12 years agoMFC: r225228
brueffer [Sun, 4 Sep 2011 14:28:06 +0000 (14:28 +0000)]
MFC: r225228

Remove broken link to supported wifi cards. There doesn't appear to
be an equivalent list anywhere else.

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

12 years agoMFC: r225215
brueffer [Sat, 3 Sep 2011 20:46:30 +0000 (20:46 +0000)]
MFC: r225215

Fix memory leaks in error cases.

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

12 years agoMFC r225040:
kib [Sat, 3 Sep 2011 08:31:59 +0000 (08:31 +0000)]
MFC r225040:
Prevent the hiwatermark for the unix domain socket from becoming
effectively negative. Often seen as upstream fastcgi connection timeouts
in nginx when using sendfile over unix domain sockets for communication.

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

12 years agoinsta-mfh r225359: cosmetic nit in usage string.
des [Sat, 3 Sep 2011 03:13:35 +0000 (03:13 +0000)]
insta-mfh r225359: cosmetic nit in usage string.

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

12 years agoMFC: r225049
rmacklem [Sat, 3 Sep 2011 01:45:37 +0000 (01:45 +0000)]
MFC: r225049
Fix the NFSv4 server so that it returns NFSERR_SYMLINK when
an attempt to do an Open operation on any type of file other
than VREG is done. A recent discussion on the IETF working group's
mailing list (nfsv4@ietf.org) decided that NFSERR_SYMLINK
should be returned for all non-regular files and not just symlinks,
so that the Linux client would work correctly.
This change does not affect the FreeBSD NFSv4 client and is not
believed to have a negative effect on other NFSv4 clients.

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

12 years agoMFC: r225229
marius [Fri, 2 Sep 2011 16:17:52 +0000 (16:17 +0000)]
MFC: r225229

Since r221218 (MFC'ed to stable/8 in r223500) rman_manage_region(9)
actually honors rm_start and rm_end which may cause problems when these
contain garbage so zero the range descriptors embedding the rmans when
allocating them.

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

12 years agoMFC r226155:
mm [Fri, 2 Sep 2011 08:19:19 +0000 (08:19 +0000)]
MFC r226155:

Generalize ffs_pages_remove() into vn_pages_remove().

Remove mapped pages for all dataset vnodes in zfs_rezget() using
new vn_pages_remove() to fix mmapped files changed by
zfs rollback or zfs receive -F.

PR: kern/160035, kern/156933

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

12 years agoMFC r207662 (trasz):
mm [Fri, 2 Sep 2011 07:37:55 +0000 (07:37 +0000)]
MFC r207662 (trasz):
Move checking against RLIMIT_FSIZE into one place, vn_rlimit_fsize().

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

12 years agoMFH 221143, 221144: whitespace
des [Thu, 1 Sep 2011 19:39:10 +0000 (19:39 +0000)]
MFH 221143, 221144: whitespace
MFH 221232: make "-f" optional

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

12 years agoMFC r225140:
mav [Thu, 1 Sep 2011 15:53:59 +0000 (15:53 +0000)]
MFC r225140:
Add ID for ASMedia ASM1061 2-port PCIe 2.0 x1 6Gb/s SATA controller.

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

12 years agoMFH r221107, r221108: alphabetize command-line options
des [Wed, 31 Aug 2011 16:25:34 +0000 (16:25 +0000)]
MFH r221107, r221108: alphabetize command-line options
MFH r221233: add -E option (BIO_DELETE unused blocks)

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

12 years agoMFC r225057:
attilio [Wed, 31 Aug 2011 09:14:56 +0000 (09:14 +0000)]
MFC r225057:
Fix a race that can happen when switching spinlocks in
callout_cpu_switch() and curthread is preempted.

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

12 years agoMFC r225104:
ae [Wed, 31 Aug 2011 06:47:39 +0000 (06:47 +0000)]
MFC r225104:
  Fix lock leak.

  Reported by: Alex Lyashkov

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

12 years agoMFC 225142:
gjb [Wed, 31 Aug 2011 01:17:49 +0000 (01:17 +0000)]
MFC 225142:

Reword sentence noting UPDATING entries prior to October 2007[1] are
only available in older FreeBSD releases.

PR: 159220

[1] - October 2007 is specific to HEAD.  In stable/8 and stable/7,
the correct year is 2004, so that change is reflected here as well.

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

12 years agoMFC r225088:
yongari [Tue, 30 Aug 2011 17:20:34 +0000 (17:20 +0000)]
MFC r225088:
  Disable PHY hibernation until I get more detailed hibernation
  programming secret.  The PHY would go into sleep state when it
  detects no established link and it will re-establish link when the
  cable is plugged in.  Previously it failed to re-establish link
  when the cable is plugged in such that it required to manually down
  and up the interface again to make it work.  This came from
  incorrectly programmed hibernation parameters.  According to
  Atheros, each PHY chip requires different configuration for
  hibernation and different vendor has different settings for the
  same chip.
  Disabling hibernation may consume more power but establishing link
  looks more important than saving power.
  Special thanks to Atheros for giving me instructions that disable
  hibernation.

  PR: kern/148772

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

12 years agoMFC r224915:
kib [Tue, 30 Aug 2011 11:50:28 +0000 (11:50 +0000)]
MFC r224915:
Do not return success and a string "unknown" when vn_fullpath() was unable
to resolve the path of the text vnode of the process. The behaviour is
very confusing for any consumer of the procfs, in particular, java.

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

12 years agoMFC r225122:
marck [Tue, 30 Aug 2011 11:47:36 +0000 (11:47 +0000)]
MFC r225122:

 Add kern.cam.boot_delay description (with reasonable default) to
 default/loader.conf

 This should help people installing ${OS} to USB devices, where there are
 frequently cases where kernel tries to mount root before actual umass sensing
 is finished.

Reviewed by: mav
Approved by: kib

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

12 years agoMFC r225120:
delphij [Tue, 30 Aug 2011 01:25:12 +0000 (01:25 +0000)]
MFC r225120:

Honor WITHOUT_IPX when installing etc/rc.d/ipxrouted.

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

12 years agoMFC r225121:
mm [Mon, 29 Aug 2011 20:00:29 +0000 (20:00 +0000)]
MFC r225121:

Fix buffer overflow and possible ISO image corruption in wrong
handling of "." character case in makefs ISO level 1 and 2 filename
conversion.

Filed as NetBSD PR #45285
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45285

Reviewed by: Christos Zoulas <christos@netbsd.org>

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

12 years agoMFC r221096 (by obrien):
kib [Mon, 29 Aug 2011 10:29:05 +0000 (10:29 +0000)]
MFC r221096 (by obrien):
Reap old SPL comments.

MFC r225089:
Update some comments in swap_pager.c.

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

12 years agoMFC r225037 and r225041:
hselasky [Sat, 27 Aug 2011 14:03:27 +0000 (14:03 +0000)]
MFC r225037 and r225041:
Add new USB IDs.

PR: usb/159919, usb/159836

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

12 years agoMFC r225018:
mav [Fri, 26 Aug 2011 10:39:33 +0000 (10:39 +0000)]
MFC r225018:
Fix WWN printing in `camcontrol identify` output.

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

12 years agoMFC r225000:
hselasky [Fri, 26 Aug 2011 07:38:40 +0000 (07:38 +0000)]
MFC r225000:
USB clear stall fix for VM's.

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

12 years agoMFC r225003:
ae [Fri, 26 Aug 2011 04:58:33 +0000 (04:58 +0000)]
MFC r225003:
  Add new section "BOOTSTRAPPING" to the gpart(8), that describes
  bootstrap code images used to boot from MBR, GPT, BSD and VTOC8
  schemes.

MFC r225023:
  o Fix mdoc formatting for the '.Fx' macro. [1]
  o Add information about APM scheme and fix typos. [2]

  Submitted by: gjb [1], nwhitehorn [2]

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

12 years agoMFC: r225015
marius [Tue, 23 Aug 2011 14:37:39 +0000 (14:37 +0000)]
MFC: r225015

Revert r224157 (MFC'ed to stable/8 in r224401), re-enabling r222135 (MFC'ed
to stable/8 in r222371). The underlying problem keeping the latter from
working as expected was fixed in r225014 (MFC'ed to stable/8 in r225116).

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

12 years agoMFC: r225014
marius [Tue, 23 Aug 2011 14:32:53 +0000 (14:32 +0000)]
MFC: r225014

r221812 (MFC'ed to stable/8 in r222159) reveals that at least some Broadcom
PHYs default to being not only isolated but also powered down after a reset
and while they just work fine [sic] when both is the case they don't if they
are only deisolate but still powered down. So in order to put PHYs in an
overall normal operation mode for the common case, ensure in mii_phy_reset()
that they are not powered down after a reset. Unfortunately, this only helps
in case of BCM5421, while BCM5709S apparently only work when they remain
isolated and powered down after a reset. So don't call mii_phy_reset() in
brgphy_reset() and implement the reset locally leaving the problematic bits
alone. Effectively this bypasses r221812 for brgphy(4).
Thanks to Justin Hibbits for doing a binary search in order to identify
the problematic commit.

PR: 157405, 158156
Reviewed by: yongari (mii_phy_reset() part)

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

12 years agoMFC: r223688
marius [Tue, 23 Aug 2011 14:00:01 +0000 (14:00 +0000)]
MFC: r223688

Add detection for the Marvel 88E1149R and treat it just like the
88E1149.

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

12 years agoMFC r225009:
attilio [Tue, 23 Aug 2011 09:42:29 +0000 (09:42 +0000)]
MFC r225009:
Bump coretemp tollerable limit to 110 degrees.

Sponsored by: Sandvine Incorporated

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

12 years agoMFC r225038:
hselasky [Tue, 23 Aug 2011 07:42:04 +0000 (07:42 +0000)]
MFC r225038:
Fix for recursive locking in usb_close() after r224777 (9-current) and r224960 (8-stable).

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

12 years agoMFC r224903, r224917, r225035, r225090, r225091:
hselasky [Tue, 23 Aug 2011 07:35:21 +0000 (07:35 +0000)]
MFC r224903, r224917, r225035, r225090, r225091:
- Add missing API function to the LibUSB v1.0 API.
- Update LibUSB v1.0 manual page.

PR: docs/159898

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

12 years agoMFC r224791:
pjd [Tue, 23 Aug 2011 07:00:51 +0000 (07:00 +0000)]
MFC r224791:

Eliminate the zfsdev_state_lock entirely and replace it with the
spa_namespace_lock. This fixes LOR between the spa_namespace_lock and
spa_config lock. LOR can cause deadlock on vdevs removal/insertion.

Reported by: gibbs, delphij
Tested by: delphij

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

12 years agoMFC 224495:
jhb [Mon, 22 Aug 2011 18:57:59 +0000 (18:57 +0000)]
MFC 224495:
Properly initialize an error variable to avoid returning uninitialized
data when 'show drives' succeeds, often resulting in a failing exit code
even though the command worked fine.

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

12 years agoMFC 224898: Add device id for the Moxa CP-112UL dual-port serial adapters.
jhb [Mon, 22 Aug 2011 18:46:02 +0000 (18:46 +0000)]
MFC 224898: Add device id for the Moxa CP-112UL dual-port serial adapters.

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

12 years agoMFC 224986:
jhb [Mon, 22 Aug 2011 18:41:39 +0000 (18:41 +0000)]
MFC 224986:
One of the general principles of the sysctl(3) API is that a user can
query the needed size for a sysctl result by passing in a NULL old
pointer and a valid oldsize.  The kern.proc.args sysctl handler broke
this assumption by not calling SYSCTL_OUT() if the old pointer was NULL.

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

12 years agoMFC r224865: tail: Fix crash if -F'ed file's filesystem disappears.
jilles [Sun, 21 Aug 2011 20:59:51 +0000 (20:59 +0000)]
MFC r224865: tail: Fix crash if -F'ed file's filesystem disappears.

If tail notices that a file it is following no longer exists (because stat()
fails), it will output any final lines and then close the file. If the read
operation also causes an error, such as when the filesystem is forcefully
unmounted, it closes the file as well, leading to fclose(NULL) and a
segmentation fault.

PR: bin/159750

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

12 years agoMFC r224527: smp_rendezvous: master cpu should wait until all slaves are
avg [Sat, 20 Aug 2011 11:50:02 +0000 (11:50 +0000)]
MFC r224527: smp_rendezvous: master cpu should wait until all slaves are
fully done

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

12 years agoMFC r224632: fix a serious bug in libproc's proc_attach
avg [Sat, 20 Aug 2011 11:47:11 +0000 (11:47 +0000)]
MFC r224632: fix a serious bug in libproc's proc_attach

PR: bin/158431

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

12 years agoMFC r224529: fix a typo/tautology in the release documentation
avg [Sat, 20 Aug 2011 11:44:48 +0000 (11:44 +0000)]
MFC r224529: fix a typo/tautology in the release documentation

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

12 years agoMFC r224814, r224855:
mm [Sat, 20 Aug 2011 07:43:10 +0000 (07:43 +0000)]
MFC r224814, r224855:

MFC r224814 [1]:
Fix race between dmu_objset_prefetch() invoked from
zfs_ioc_dataset_list_next() and dsl_dir_destroy_check() indirectly
invoked from dmu_recv_existing_end() via dsl_dataset_destroy() by not
prefetching temporary clones, as these count as always inconsistent.
In addition, do not prefetch hidden datasets at all as we are not
going to process these later.

Filed as Illumos Bug #1346

MFC r224855:
zfs_ioctl.c: improve code readability in zfs_ioc_dataset_list_next()

zvol.c: fix calling of dmu_objset_prefetch() in zvol_create_minors()
by passing full instead of relative dataset name and prefetching all
visible datasets to be processed later instead of just the pool name

PR: kern/157728 [1]
Tested by: Borja Marcos <borjam@sarenet.es> [1], mm
Reviewed by: pjd

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

12 years agoMFC:
vanhu [Fri, 19 Aug 2011 13:41:00 +0000 (13:41 +0000)]
MFC:
fixed two race conditions when inserting/removing SAs via PFKey,
which can both lead to a kernel panic when adding/removing quickly
a lot of SAs.

Obtained from: NETASQ

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

12 years agoMFC: revision 224780
nyan [Fri, 19 Aug 2011 12:08:15 +0000 (12:08 +0000)]
MFC: revision 224780

  Allow to build a release for stable/[78] on a current box and vise versa.

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