]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r248972:
trasz [Mon, 8 Apr 2013 12:09:53 +0000 (12:09 +0000)]
MFC r248972:

Mention that read_attributes, write_attributes, read_acl and write_acl
are always permitted for the file owner.

PR: kern/174948

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

11 years agoMFC r248969:
kib [Mon, 8 Apr 2013 08:29:52 +0000 (08:29 +0000)]
MFC r248969:
Do not call the VOP_LOOKUP() for the doomed directory vnode.

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

11 years agoMFC r248991:
dim [Mon, 8 Apr 2013 07:08:29 +0000 (07:08 +0000)]
MFC r248991:

Follow up to r247960 and rr247960 by also amending ctfmerge.  For the
only other case where STT_FILE symbols are used, in symit_next() in
cddl/contrib/opensolaris/tools/ctf/cvt/input.c, save the basename of the
symbol, instead of the full pathname.

Reported by: avg
Tested by: avg, jimharris

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

11 years agoMFC r230998,r233792: sh: Use vfork in a few common cases.
jilles [Sun, 7 Apr 2013 21:25:14 +0000 (21:25 +0000)]
MFC r230998,r233792: sh: Use vfork in a few common cases.

This uses vfork() for simple commands and command substitutions containing a
single simple command, invoking an external program under certain conditions
(no redirections or variable assignments, non-interactive shell, no job
control). These restrictions limit the amount of code executed in a vforked
child.

Various incarnations of this patch have been shown to bring performance
improvements:
http://lists.freebsd.org/pipermail/freebsd-hackers/2012-January/037581.html

The use of vfork() can be disabled by setting a variable named
SH_DISABLE_VFORK.

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

11 years agoMFC r246922 (pjd):
trociny [Sun, 7 Apr 2013 17:05:16 +0000 (17:05 +0000)]
MFC r246922 (pjd):

- Add support for 'memsync' mode. This is the fastest replication mode that's
  why it will now be the default.
- Bump protocol version to 2 and add backward compatibility for version 1.
- Allow to specify hosts by kern.hostid as well (in addition to hostname and
  kern.hostuuid) in configuration file.

Sponsored by: Panzura

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

11 years agoMFC r244052 and r245288:
ken [Fri, 5 Apr 2013 19:33:31 +0000 (19:33 +0000)]
MFC r244052 and r245288:

  r244052 | ken | 2012-12-09 12:53:21 -0700 (Sun, 09 Dec 2012) | 20 lines

  Fix a couple of CTL locking issues and clean up some duplicated code.

  ctl_frontend_cam_sim.c: Coalesce cfcs_online() and cfcs_offline()
   into a single function since these were
   identical except for one line.

   Make sure we hold the SIM lock around path
   creation, and calling xpt_rescan().

  scsi_ctl.c: In ctlfe_onoffline(), make sure we hold the
   SIM lock around path creation and free
   calls, as well as xpt_action().

   In ctlfe_lun_enable(), hold the SIM lock
   around path and peripheral operations that
   require it.

  Sponsored by: Spectra Logic Corporation
  MFC after: 1 week

  ------------------------------------------------------------------------
  r245228 | ken | 2013-01-09 10:02:08 -0700 (Wed, 09 Jan 2013) | 43 lines

  Make CTL work a little better with loading and unloading drivers.

  Previously CTL would leave individual LUNs enabled in the target
  driver, whether or not the port as a whole was enabled.  It would
  also leave the wildcard LUN enabled indefinitely.

  This change means that CTL will enable and disable any active LUNs,
  as well as the wildcard LUN, when enabling and disabling a port.

  Also, fix a bug that could crop up due to an uninitialized CCB
  type.

  ctl.c: Before calling ctl_frontend_online(), run through
   the LUN list and enable all active LUNs.

   After calling ctl_frontend_offline(), run through
   the LUN list and disble all active LUNs.

  scsi_ctl.c: Before bringing a port online, allocate the
   wildcard peripheral for that bus.  And after taking
   a port offline, invalidate the wildcard peripheral
   for that bus.

   Make sure that we hold the SIM lock around all
   calls to xpt_action() and other transport layer
   interfaces that require it.

   Use CAM_SIM_{LOCK|UNLOCK} consistently to acquire
   and release the SIM lock.

   Update a number of outdated comments.  Some of
   these should have been fixed long ago.

   Actually do LUN disbables now.  The newer drivers
   in the tree work correctly for this as far as I
   know.

   Initialize the CCB type to CTLFE_CCB_DEFAULT to
   avoid a panic due to uninitialized memory.

  Submitted by: Chuck Tuffli (partially)
  MFC after: 1 week

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

11 years agoMFC r247161:
mav [Fri, 5 Apr 2013 11:57:41 +0000 (11:57 +0000)]
MFC r247161:
Hide SEMB port of the SiI3826 Port Multiplier by default to avoid extra
errors while it tries to talk via I2C to usually missing external SEP.
There is tunable to enable it back when needed.

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

11 years agoMFC r247154:
mav [Fri, 5 Apr 2013 11:55:52 +0000 (11:55 +0000)]
MFC r247154:
Add DA_Q_NO_PREVENT quirk for Kingston DataTraveler G3 1.00 USB flash.

PREVENT ALLOW MEDIUM REMOVAL commands return errors on these devices
without returning sense data. In some cases unrelated following commands
start to return errors too, that makes device to be dropped by CAM.

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

11 years agoMFC r245310:
mav [Fri, 5 Apr 2013 11:53:53 +0000 (11:53 +0000)]
MFC r245310:
- Add missig xpt_schedule() call for cases when requested immediate CCB
priority is lower then payload/TUR one.

- Reduce TUR priority and avoid sending them if there are any other
outstanding commands, alike to DA driver.

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

11 years agoMFC r245306:
mav [Fri, 5 Apr 2013 11:52:33 +0000 (11:52 +0000)]
MFC r245306:
Do not schedule periph for payload/TUR requests if reprobe is in progress
to avoid sending extra READ CAPACITY requests by dastart().  Schedule periph
again on reprobe completion, or otherwise it may stuck indefinitely long.

This should fix USB explore thread hanging on device unplug, waiting for
periph destruction.

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

11 years agoMFC r245253 (by smh):
mav [Fri, 5 Apr 2013 11:50:05 +0000 (11:50 +0000)]
MFC r245253 (by smh):
Changed scsi_da device requests to use the sysctl tunable value for retry_count
and da_default_timeout where their current hardcoded values matched the current
default value for said tunables.

PR:             kern/169976

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

11 years agoMFC r245252 (by smh):
mav [Fri, 5 Apr 2013 11:48:35 +0000 (11:48 +0000)]
MFC r245252 (by smh):
Updates delete_method sysctl changes to always maintain disk d_flags
DISKFLAG_CANDELETE. While this change makes this layer consistent
other layers such as UFS and ZFS BIO_DELETE support may not notice
any change made manually via these device sysctls until the device
is reopened via a mount.

Also corrected var order in dadeletemethodsysctl

PR:             kern/169801

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

11 years agoMFC r245251 (by smh):
mav [Fri, 5 Apr 2013 11:45:52 +0000 (11:45 +0000)]
MFC r245251 (by smh):
Removes essentially unused variables from scsi_da probe setups

PR: kern/169835

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

11 years agoMFC r238886, r238892:
mav [Fri, 5 Apr 2013 11:41:56 +0000 (11:41 +0000)]
MFC r238886, r238892:
Implement media change notification for DA and CD removable media devices.
It includes three parts:
 1) Modifications to CAM to detect media media changes and report them to
disk(9) layer. For modern SATA (and potentially UAS) devices it utilizes
Asynchronous Notification mechanism to receive events from hardware.
Active polling with TEST UNIT READY commands with 3 seconds period is used
for incapable hardware. After that both CD and DA drivers work the same way,
detecting two conditions: "NOT READY: Medium not present" after medium was
detected previously, and "UNIT ATTENTION: Not ready to ready change, medium
may have changed". First one reported to disk(9) as media removal, second
as media insert/change. To reliably receive second event new
AC_UNIT_ATTENTION async added to make UAs broadcasted to all periphs by
generic error handling code in cam_periph_error().
 2) Modifications to GEOM core to handle media remove and change events.
Media removal handled by spoiling all consumers attached to the provider.
Media change event also schedules provider retaste after spoiling to probe
new media. New flag G_CF_ORPHAN was added to consumers to reflect that
consumer is in process of destruction. It allows retaste to create new
geom instance of the same class, while previous one is still dying.
 3) Modifications to some GEOM classes: DEV -- to report media change
events to devd; PART class already handles spoiling alike to orphan.

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

11 years agoMFC r244716 (by pjd):
mav [Fri, 5 Apr 2013 10:57:02 +0000 (10:57 +0000)]
MFC r244716 (by pjd):
Reset provider-specific fields when resending I/O request in low memory
conditions. This fixes assertion which checks those fields when kernel is
compiled with DIAGNOSTIC.

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

11 years agoMFC r240822, r241022 (by pjd):
mav [Fri, 5 Apr 2013 10:50:32 +0000 (10:50 +0000)]
MFC r240822, r241022 (by pjd):
Use the topology lock to protect list of providers while withering them.
It is possible that provider is destroyed while we are iterating over the
list.

Remove the topology lock from disk_gone(), it might be called with regular
mutexes held and the topology lock is an sx lock.

The topology lock was there to protect traversing through the list of providers
of disk's geom, but it seems that disk's geom has always exactly one provider.

Change the code to call g_wither_provider() for this one provider, which is
safe to do without holding the topology lock and assert that there is indeed
only one provider.

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

11 years agoMFC r238198 (by trasz):
mav [Fri, 5 Apr 2013 10:35:36 +0000 (10:35 +0000)]
MFC r238198 (by trasz):
Fix orphan() methods of several GEOM classes to not assume that there
is an error set on the provider.  With GEOM resizing, class can become
orphaned when it doesn't implement resize() method and the provider size
decreases.

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

11 years agoMFC r228204:
mav [Fri, 5 Apr 2013 10:30:37 +0000 (10:30 +0000)]
MFC r228204:
Close race between geom destruction on g_vfs_close() when softc destroyed
and g_vfs_orphan() call that tries to access softc, intruced at r227015.

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

11 years agoMFC r227015:
mav [Fri, 5 Apr 2013 10:29:14 +0000 (10:29 +0000)]
MFC r227015:
Add mutex and two flags to make orphan() call properly asynchronous:
 - delay consumer closing and detaching on orphan() until all I/Os complete;
 - prevent new I/Os submission after orphan() called.
Previous implementation could destroy consumers still having active
requests and worked only because of global workaround made on GEOM level.

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

11 years agoMFC r226998, r227004:
mav [Fri, 5 Apr 2013 10:27:05 +0000 (10:27 +0000)]
MFC r226998, r227004:
Refactor disk disconnection and geom destruction handling sequences.
Do not close/destroy opened consumer directly in case of disconnect. Instead
keep it existing until it will be closed in regular way in response to
upstream provider destruction. Delay geom destruction in the same way.
Previous implementation could destroy consumers still having active
requests and worked only because of global workaround made on GEOM level.

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

11 years agoMFC r226737 (by pjd):
mav [Fri, 5 Apr 2013 10:22:22 +0000 (10:22 +0000)]
MFC r226737 (by pjd):
Allow upper layers to discover than BIO_DELETE and/or BIO_FLUSH is not
supported by returning EOPNOTSUPP instead of 0 or ENODEV.

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

11 years agoMFC r226736:
mav [Fri, 5 Apr 2013 10:13:44 +0000 (10:13 +0000)]
MFC r226736:
Improve style a bit.

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

11 years agoMFC r226735 (by pjd):
mav [Fri, 5 Apr 2013 10:10:39 +0000 (10:10 +0000)]
MFC r226735 (by pjd):
Simplify disk_alloc().

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

11 years agoMFC r237689 (by imp):
mav [Fri, 5 Apr 2013 09:02:04 +0000 (09:02 +0000)]
MFC r237689 (by imp):
Add a sysctl to set the cdrom timeout.  Data recovery operations from
a CD or DVD drive with a damaged disc often benefit from a shorter
timeout.  Also, when retries are set to 0, an application is expecting
errors and recovering them so do not print the error into the log.
The number of expected errors can literally be in the hundreds of
thousands which significantly slows data recovery.

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

11 years agoMFC r237478:
mav [Fri, 5 Apr 2013 08:51:05 +0000 (08:51 +0000)]
MFC r237478:
Add scsi_extract_sense_ccb() -- wrapper around scsi_extract_sense_len().
It allows to remove number of duplicate checks from several places.

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

11 years agoMFC r234177, r234374 (by trasz):
mav [Fri, 5 Apr 2013 08:46:20 +0000 (08:46 +0000)]
MFC r234177, r234374 (by trasz):
Refactor da(4) to remove one of two code paths used to query capacity
data.

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

11 years agoMFC r227293 (by ed):
mav [Fri, 5 Apr 2013 08:22:11 +0000 (08:22 +0000)]
MFC r227293 (by ed):
Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.

This means that their use is restricted to a single C file.

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

11 years agoMFC r247834:
kib [Thu, 4 Apr 2013 05:47:50 +0000 (05:47 +0000)]
MFC r247834:
Import the drm_global references helpers.

MFC r247839 (by dumbbell):
Destroy sx in drm_global_release().

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

11 years agoMFC r247833:
kib [Thu, 4 Apr 2013 05:39:37 +0000 (05:39 +0000)]
MFC r247833:
Import the drm_mm_debug_table() function.

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

11 years agoMFC r247832:
kib [Thu, 4 Apr 2013 05:36:11 +0000 (05:36 +0000)]
MFC r247832:
Import the likely() compat macro.

MFC r247838:
Correct the r247832.

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

11 years agoMFC r248815:
kib [Thu, 4 Apr 2013 05:29:37 +0000 (05:29 +0000)]
MFC r248815:
Release the v_writecount reference on the vnode in case of error,
before the vnode is vput() in vm_mmap_vnode().

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

11 years agoMFC r248567:
kib [Thu, 4 Apr 2013 05:26:22 +0000 (05:26 +0000)]
MFC r248567:
Do not call vnode_pager_setsize() while a NFS node mutex is
locked. vnode_pager_setsize() might sleep waiting for the page after
EOF be unbusied.

Call vnode_pager_setsize() both for the regular and directory vnodes.

MFC r248581:
Initialize the variable to avoid (false) compiler warning about
use of an uninitialized local.

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

11 years agoMFC r248967:
kib [Thu, 4 Apr 2013 05:20:52 +0000 (05:20 +0000)]
MFC r248967:
Strip the unnneeded spaces, mostly at the end of lines.

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

11 years agoMFC r248968:
kib [Thu, 4 Apr 2013 05:04:48 +0000 (05:04 +0000)]
MFC r248968:
Record the correct error in the trace.

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

11 years agoMFC r248563:
kib [Wed, 3 Apr 2013 15:38:44 +0000 (15:38 +0000)]
MFC r248563:
Increment the write ref counter for the buffer object before calling
bundirty().

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

11 years agoMFC r248562:
kib [Wed, 3 Apr 2013 15:34:25 +0000 (15:34 +0000)]
MFC r248562:
Move the vn_start_write() call in the dounmount() before setting the
MNTK_UNMOUNT flag.

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

11 years agoMFH (r247285): always bootstrap liby along with yacc.
des [Wed, 3 Apr 2013 12:20:08 +0000 (12:20 +0000)]
MFH (r247285): always bootstrap liby along with yacc.

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

11 years agoMFH (r247810): correctly parse mixed quoted / unquoted text.
des [Wed, 3 Apr 2013 12:17:35 +0000 (12:17 +0000)]
MFH (r247810): correctly parse mixed quoted / unquoted text.

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

11 years agoMFH (r247270, r247271): allow starting rtadvd without any interfaces.
des [Wed, 3 Apr 2013 11:51:11 +0000 (11:51 +0000)]
MFH (r247270, r247271): allow starting rtadvd without any interfaces.

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

11 years agoMFH (r246358): load pfsync.ko if necessary.
des [Wed, 3 Apr 2013 11:00:50 +0000 (11:00 +0000)]
MFH (r246358): load pfsync.ko if necessary.

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

11 years agoMFC r248802:
dim [Wed, 3 Apr 2013 06:48:47 +0000 (06:48 +0000)]
MFC r248802:

Similar to r239870 and r239872, teach the other binutils tools about the
DW_FORM_flag_present dwarf attribute, so they do not print errors or
warnings on files that contain it.  (This attribute can be emitted by
newer versions of clang and gcc.)

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

11 years agoMFC r248697:
ae [Tue, 2 Apr 2013 06:49:44 +0000 (06:49 +0000)]
MFC r248697:
  When we are removing a specific set, call ipfw_expire_dyn_rules only once.

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

11 years agoMFC r248642: fbt_getargdesc: correctly handle types for return probes
avg [Sun, 31 Mar 2013 14:10:19 +0000 (14:10 +0000)]
MFC r248642: fbt_getargdesc: correctly handle types for return probes

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

11 years agoMFC r248640: fbt_typoff_init: fix an off by one in determining required
avg [Sun, 31 Mar 2013 14:02:28 +0000 (14:02 +0000)]
MFC r248640: fbt_typoff_init: fix an off by one in determining required
memory size

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

11 years agoMFC r246293: zfs: fix, improve and re-organize page_lookup and page_unlock
avg [Sun, 31 Mar 2013 13:54:44 +0000 (13:54 +0000)]
MFC r246293: zfs: fix, improve and re-organize page_lookup and page_unlock

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

11 years agoMFC r248854:
jamie [Sun, 31 Mar 2013 04:10:37 +0000 (04:10 +0000)]
MFC r248854:

  Reverse the order of some implicit commands (FS mounts and ifconfigs)
  when stopping jails.  This matters particularly for nested filesystem
  mounts.

PR: kern/177325
Submitted by: Harald Schmalzbauer

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

11 years agoRemove (harmless) duplicate entry for VersionAddendum.
des [Fri, 29 Mar 2013 21:08:20 +0000 (21:08 +0000)]
Remove (harmless) duplicate entry for VersionAddendum.

Noticed by: dim@
MFC after: 1 week

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

11 years agoMerge 248070.
melifaro [Fri, 29 Mar 2013 16:24:20 +0000 (16:24 +0000)]
Merge 248070.

Fix long-standing issue with interface routes being unprotected:
Use RTM_PINNED flag to mark route as immutable.
Forbid deleting immutable routes without special rtrequest1_fib() flag.
Adding interface address with prefix already in route table is handled
by atomically deleting old prefix and adding interface one.

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

11 years agoMFC r248857:
gjb [Fri, 29 Mar 2013 14:18:49 +0000 (14:18 +0000)]
MFC r248857:
 - Update hardware notes to reflect that amd64 is no longer "young"
 - Bump copyright year

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

11 years agoMFC r248325:
kib [Fri, 29 Mar 2013 13:24:19 +0000 (13:24 +0000)]
MFC r248325:
Add my copyright for the 2012 year work, in particular vn_io_fault()
and f_offset locking.  Add required Foundation notice for r248319.

MFC r248329:
Separate the copyright lines and the informational block by a blank line.

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

11 years agoMFC r248319:
kib [Fri, 29 Mar 2013 13:17:34 +0000 (13:17 +0000)]
MFC r248319:
Merge vn_io_fault_pgmove().

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

11 years agoMFC r248226:
yongari [Fri, 29 Mar 2013 00:21:36 +0000 (00:21 +0000)]
MFC r248226:
  r241438 broke IPMI access on Sun Fire X2200 M2(BCM5715).
  Fix the IPMI regression by sending BGE_FW_DRV_STATE_UNLOAD to
  ASF/IPMI firmware in driver attach phase.  Sending heartheat to
  ASF/IPMI is enabled only after upping interface so
  setting driver state to BGE_FW_DRV_STATE_START in attach phase
  broke IPMI access.
  While I'm here, add NVRAM arbitration lock before performing
  controller reset. ASF/IPMI firmware may be able to access the NVRAM
  while controller reset is in progress.  Without the arbitration
  lock before resetting the controller, ASF/IPMI may not initialize
  properly.

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

11 years agoMFC r244183 by glebius:
emaste [Thu, 28 Mar 2013 20:48:40 +0000 (20:48 +0000)]
MFC r244183 by glebius:

  Fix problem in r238990 (MFC'd in r240313).  The LLE_LINKED flag should be
  tested prior to entering llentry_free(), and in case if we lose the race,
  we should simply perform LLE_FREE_LOCKED().  Otherwise, if the race is
  lost by the thread performing arptimer(), it will remove two references
  from the lle instead of one.

  Reported by: Ian FREISLICH <ianf clue.co.za>

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

11 years agoMFC 247266
mjacob [Thu, 28 Mar 2013 14:25:09 +0000 (14:25 +0000)]
MFC 247266

Don't try and negotiate sync mode if either period or offset are zero.

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

11 years agoMFC r248280:
kib [Thu, 28 Mar 2013 06:31:04 +0000 (06:31 +0000)]
MFC r248280:
Add pmap function pmap_copy_pages().

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

11 years agoMFC r248277:
kib [Thu, 28 Mar 2013 06:22:43 +0000 (06:22 +0000)]
MFC r248277:
Remove excessive and inconsistent initializers for the various kernel
maps and submaps.

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

11 years agoMFC r248276:
kib [Thu, 28 Mar 2013 06:20:13 +0000 (06:20 +0000)]
MFC r248276:
Rewrite the vfs_bio_clrbuf(9) to not access the b_data for B_VMIO
buffers directly, use pmap_zero_page_area(9) for each zeroing page
region instead.

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

11 years agoMFC r248788 (erwin):
delphij [Thu, 28 Mar 2013 05:39:45 +0000 (05:39 +0000)]
MFC r248788 (erwin):

Update BIND to 9.8.4-P2

Removed the check for regex.h in configure in order
to disable regex syntax checking, as it exposes
BIND to a critical flaw in libregex on some
platforms. [RT #32688]

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

11 years agoMFC r245266:
mav [Wed, 27 Mar 2013 14:23:50 +0000 (14:23 +0000)]
MFC r245266:
Remove not very useful printf, that can be too chatty.

ASUS P8Z77-V board reports _AC2, _AC3 and _AC4 setpoints as 0C.  With active
cooling already automatically set to _AC2, that still caused driver to print
two useless lines about temperature above _AC3 and _AC4 every ten seconds.
Three setponts of 0C is probably a board bug, but the same spam could happen
also in correct case if system is runnign not with the lowest cooling level.

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

11 years agoMFC r248672:
dim [Wed, 27 Mar 2013 07:58:29 +0000 (07:58 +0000)]
MFC r248672:

Compile contrib/tzcode/stdtime/localtime.c with -fwrapv, since it relies
on signed integer overflow wrapping.  Otherwise mktime(3) and timegm(3)
can hang, in case the timestamp passed in struct tm is not representable
in a time_t.  Specifically, any timestamp after 2038-01-19 03:14:07, in
combination with a 32-bit time_t.

Note that it would be better to change the code to not rely on undefined
behaviour, but it is contributed code, and it is not entirely trivial to
fix the issue properly.

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

11 years agoPermit changing MTU in 6to4 relay.
melifaro [Tue, 26 Mar 2013 18:57:25 +0000 (18:57 +0000)]
Permit changing MTU in 6to4 relay.

This behavior is recommended by RFC 4213 clause 3.2.

Sometimes fragmentation is the least evil.
For example, some Linux IPVS kernels forwards
ICMPv6 checksums to real servers incorrectly.

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

11 years agoMFC r248446: find: Include nanoseconds when comparing timestamps of files.
jilles [Sun, 24 Mar 2013 12:35:12 +0000 (12:35 +0000)]
MFC r248446: find: Include nanoseconds when comparing timestamps of files.

When comparing to the timestamp of a given file using -newer, -Xnewer and
-newerXY (where X and Y are one of m, c, a, B), include nanoseconds in the
comparison.

The primaries that compare a timestamp of a file to a given value (-Xmin,
-Xtime, -newerXt) continue to compare times in whole seconds.

Note that the default value 0 of vfs.timestamp_precision almost always
causes the nanoseconds part to be 0. However, touch -d can set a timestamp
to the microsecond regardless of that sysctl.

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

11 years agoMFC r248422:
kib [Sun, 24 Mar 2013 07:41:36 +0000 (07:41 +0000)]
MFC r248422:
Remove negative name cache entry pointing to the target name, which
could be instantiated while tdvp was unlocked.

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

11 years agoMFC r247387:
kib [Sat, 23 Mar 2013 22:41:48 +0000 (22:41 +0000)]
MFC r247387:
Inode block must not be read or written while cg block buffer is owned.

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

11 years agoMFC of 246876 and 246877
mckusick [Sat, 23 Mar 2013 21:56:19 +0000 (21:56 +0000)]
MFC of 246876 and 246877

MFC: 246876:

Add barrier write capability to the VFS buffer interface. A barrier
write is a disk write request that tells the disk that the buffer
being written must be committed to the media along with any writes
that preceeded it before any future blocks may be written to the drive.

Barrier writes are provided by adding the functions bbarrierwrite
(bwrite with barrier) and babarrierwrite (bawrite with barrier).

Following a bbarrierwrite the client knows that the requested buffer
is on the media. It does not ensure that buffers written before that
buffer are on the media. It only ensure that buffers written before
that buffer will get to the media before any buffers written after
that buffer. A flush command must be sent to the disk to ensure that
all earlier written buffers are on the media.

Reviewed by: kib
Tested by:   Peter Holm

MFC 246877:

The UFS2 filesystem allocates new blocks of inodes as they are needed.
When a cylinder group runs short of inodes, a new block for inodes is
allocated, zero'ed, and written to the disk. The zero'ed inodes must
be on the disk before the cylinder group can be updated to claim them.
If the cylinder group claiming the new inodes were written before the
zero'ed block of inodes, the system could crash with the filesystem in
an unrecoverable state.

Rather than adding a soft updates dependency to ensure that the new
inode block is written before it is claimed by the cylinder group
map, we just do a barrier write of the zero'ed inode block to ensure
that it will get written before the updated cylinder group map can
be written. This change should only slow down bulk loading of newly
created filesystems since that is the primary time that new inode
blocks need to be created.

Reported by: Robert Watson
Reviewed by: kib
Tested by:   Peter Holm

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

11 years agoMFC r246824,r246952: setbuf(3): Bring BUGS section up to date.
jilles [Sat, 23 Mar 2013 16:06:20 +0000 (16:06 +0000)]
MFC r246824,r246952: setbuf(3): Bring BUGS section up to date.

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

11 years agoMFC r248252: libc: Avoid SIGPIPE when nscd closes the connection
jilles [Sat, 23 Mar 2013 16:02:49 +0000 (16:02 +0000)]
MFC r248252: libc: Avoid SIGPIPE when nscd closes the connection
unexpectedly.

It is almost always a bug if nscd closes the connection unexpectedly but
programs should not be killed with SIGPIPE for it.

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

11 years agoMFC r246641: fts: Use O_DIRECTORY when opening name that might be changed by
jilles [Sat, 23 Mar 2013 15:50:34 +0000 (15:50 +0000)]
MFC r246641: fts: Use O_DIRECTORY when opening name that might be changed by
attacker.

There are uncommon cases where fts_safe_changedir() may be called with a
non-NULL name that is not "..". Do not block or worse if an attacker put (a
symlink to) a fifo or device where a directory used to be.

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

11 years agoMFC r246823:
pluknet [Sat, 23 Mar 2013 03:28:20 +0000 (03:28 +0000)]
MFC r246823:

Remove write only assignments and thus fix the build after struct bufarea
TAILQ conversion (r246812).

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

11 years agoMFS of 246812:
mckusick [Fri, 22 Mar 2013 22:50:48 +0000 (22:50 +0000)]
MFS of 246812:

Update fsck_ffs buffer cache manager to use TAILQ macros.
No functional changes.

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

11 years agoMFS of 246289:
mckusick [Fri, 22 Mar 2013 22:40:16 +0000 (22:40 +0000)]
MFS of 246289:

For UFS2 i_blocks is unsigned. The current "sanity" check that it
has gone below zero after the blocks in its inode are freed is a
no-op which the compiler fails to warn about because of the use of
the DIP macro. Change the sanity check to compare the number of
blocks being freed against the value i_blocks. If the number of
blocks being freed exceeds i_blocks, just set i_blocks to zero.

Reported by: Pedro Giffuni (pfg@)

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

11 years agoMFC r240870 (pjd):
mm [Fri, 22 Mar 2013 07:57:28 +0000 (07:57 +0000)]
MFC r240870 (pjd):
It is possible to recursively destroy snapshots even if the snapshot
doesn't exist on a dataset we are starting from. For example if we
have the following configuration:

tank
tank/foo
tank/foo@snap
tank/bar
tank/bar@snap

We can execute:

# zfs destroy -t tank@snap

eventhough tank@snap doesn't exit.

Unfortunately it is not possible to do the same with recursive rename:

# zfs rename -r tank@snap tank@pans
cannot open 'tank@snap': dataset does not exist

...until now. This change allows to recursively rename snapshots even if
snapshot doesn't exist on the starting dataset.

Sponsored by: rsync.net

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

11 years agoMFC r248493:
mm [Fri, 22 Mar 2013 07:30:36 +0000 (07:30 +0000)]
MFC r248493:
Plug memory leak in dsl_check_snap_cb()
This was unnoticed because the function is very rarely used.

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

11 years agoMFV r248595:
delphij [Thu, 21 Mar 2013 23:37:35 +0000 (23:37 +0000)]
MFV r248595:

 - Integrate OpenSSL revisions
   fb092ef4fca897344daf7189526f5f26be6487ce,
   a93cc7c57333f4538cbcdedd2e961a5a38caa52d, and
   76c61a5d1adb92388f39e585e4af860a20feb9bb.

   This removes the newly added orig_len field of SSL3_RECORD and
   restored ABI.

Approved by: benl

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

11 years ago- Fix two possible overflows when testing if ELF program headers are on
tijl [Thu, 21 Mar 2013 16:15:34 +0000 (16:15 +0000)]
- Fix two possible overflows when testing if ELF program headers are on
  the first page:
  1. Cast uint16_t operands in a multiplication to unsigned int because
     otherwise the implicit promotion to int results in a signed
     multiplication that can overflow and the behaviour on integer
     overflow is undefined.
  2. Replace (offset + size > PAGE_SIZE) with (size > PAGE_SIZE - offset)
     because the sum may overflow.
- Use the same tests to see if the path to the interpreter is on the first
  page. There's no overflow here because size is already limited by
  MAXPATHLEN, but the compiler optimises the new tests better. Also fix an
  off-by-one error.
- Simplify tests to see if an ELF note program header is on the first page.
  This also fixes an off-by-one error.

Reviewed by: kib

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

11 years agoMFC r248180:
ae [Wed, 20 Mar 2013 09:12:28 +0000 (09:12 +0000)]
MFC r248180:
  Take the inpcb rlock before calculating checksum, it was accidentally
  moved in r191672.

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

11 years agoMFC r242845, r247592:
mm [Wed, 20 Mar 2013 08:26:16 +0000 (08:26 +0000)]
MFC r242845, r247592:

MFC r242845 (delphij):
  Illumos r13840:97fd5cdf328a:
    3145 single-copy arc
    3212 ztest: race condition between vdev_online() and spa_vdev_remove()

  Illumos r13849:3468a95b27cd:
    3258 ztest's use of file descriptors is unstable

MFC r247592 (delphij):
  Import a fix tighten assertion on SPA versions from vendor (Illumos).

  Illumos ZFS issue:
    3543 Feature flags causes assertion in spa.c to miss certain cases

Approved by: delphij

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

11 years agoMerge r247842.
melifaro [Wed, 20 Mar 2013 07:20:00 +0000 (07:20 +0000)]
Merge r247842.

Write lock is not required for find&compare operation.

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

11 years agoMFC 247870:
bryanv [Wed, 20 Mar 2013 05:49:09 +0000 (05:49 +0000)]
MFC 247870:

    Remove the virtio dependency entry for the VirtIO device drivers. This
    will prevent the kernel from linking if the device driver are included
    without the virtio module. Remove pci and scbus for the same reason.

    Also explain the relationship and necessity of the virtio and virtio_pci
    modules. Currently in FreeBSD, we only support VirtIO PCI, but it could
    be replaced with a different interface (like MMIO) and the device
    (network, block, etc) will still function.

Approved by: grehan (mentor)

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

11 years agoRegen for r248532.
jkim [Tue, 19 Mar 2013 20:20:00 +0000 (20:20 +0000)]
Regen for r248532.

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

11 years agoMFC: r234352
jkim [Tue, 19 Mar 2013 20:18:30 +0000 (20:18 +0000)]
MFC: r234352

Implement pipe2 syscall for Linuxulator.

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

11 years agoRevert r248352:
brooks [Tue, 19 Mar 2013 20:00:34 +0000 (20:00 +0000)]
Revert r248352:

>   Replace all known uses of ln in the build process with appropriate
>   install -l invocations via new INSTALL_LINK and INSTALL_SYMLINK
>   variables.

This breaks the assumption mergemaster and etcupdate that no new
features of tools will be required to run "make distribution" or it's
prerequisites.

Plotting a way forward will take some time and nothing in 9-STABLE
depends on INSTALL_LINK and INSTALL_SYMLINK yet so backing this out seem
like the right short-term approach.

PR: misc/177055

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

11 years agoMerge r248112.
melifaro [Tue, 19 Mar 2013 13:36:19 +0000 (13:36 +0000)]
Merge r248112.

Document netstat -Q flags meaning.

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

11 years agoMerge r247666, r247712, r247811.
melifaro [Tue, 19 Mar 2013 13:29:01 +0000 (13:29 +0000)]
Merge r247666, r247712, r247811.

Fix ipfw table argument parsing/printing.
Fix style.

PR: kern/175909
Submitted by: Daniel Hagerty <hag@linnaean.org>

Implement buffer size checking in ipfw(8) add cmd.

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

Do not suddenly fail on some rulesets if -n (syntax check only) is specified
and ipfw(4) module is not loaded.

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

11 years agoMFC r247626.
melifaro [Tue, 19 Mar 2013 12:42:14 +0000 (12:42 +0000)]
MFC r247626.

Fix callout expiring dynamic rules.

PR: kern/175530
Submitted by: Vladimir Spiridenkov <vs@gtn.ru>

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

11 years agoMFC r247279
sbruno [Tue, 19 Mar 2013 11:07:12 +0000 (11:07 +0000)]
MFC r247279

The 5300 series ciss(4) board does not work in performant mode with our
currnet initialization sequence.  Set it to simple mode only so that
systems can be updated from stable/7 to newer installations.

At some point, we should figure out why we cannot initialize performant
mode on this board.

PR: kern/153361
Reviewed by: scottl
Obtained from: Yahoo! Inc.

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

11 years agoMFC r248279:
delphij [Mon, 18 Mar 2013 20:36:25 +0000 (20:36 +0000)]
MFC r248279:

Correct type for DIOCGSTRIPESIZE.  Without this there
would be a stack overflow which will crash the program
later.

PR: bin/176953
Submitted by: r4721 tormail org

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

11 years agoMFH (r248465): revert upstream decommissioning of authorized_keys2
des [Mon, 18 Mar 2013 15:27:59 +0000 (15:27 +0000)]
MFH (r248465): revert upstream decommissioning of authorized_keys2

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

11 years agoMFC r247187,247265,247348,247398,247540,247585,247852,248265,248267
mm [Sat, 16 Mar 2013 08:16:11 +0000 (08:16 +0000)]
MFC r247187,247265,247348,247398,247540,247585,247852,248265,248267
Merge various ZFS improvements and bugfixes

MFC r247187:
  Import vendor change to avoid "unitialized variable" warnings.

  Illumos ZFS issues:
  3522 zfs module should not allow uninitialized variables

MFC r247265:
  Merge the ZFS I/O deadman thread from vendor (illumos).
  This feature panics the system on hanging ZFS I/O, helps debugging
  and resumes failed service.

  The panic behavior can be controlled with the loader-only tunables:
  vfs.zfs.deadman_enabled (enable or disable panic on stalled ZFS I/O)
  vfs.zfs.deadman_synctime (expiration time for stalled ZFS I/O)

  By default, ZFS I/O deadman is enabled by default on amd64 and i386
  excluding virtual guest machines.

MFC r247348:
  Be more verbose on ZFS deadman I/O panic
  Patch suggested upstream.

MFC r247398:
  Import metaslab_sync() speedup from vendor (illumos).

  Illumos ZFS issues:
  3552 condensing one space map burns 3 seconds of CPU in spa_sync() thread
  3564 spa_sync() spends 5-10% of its time in metaslab_sync() (when not
   condensing)
  3578 transferring the freed map to the defer map should be constant time
  3579 ztest trips assertion in metaslab_weight()

MFC r247540:
  Fix the zfs_ioctl compat layer to support zfs_cmd size change introduced
  in r247265 (ZFS deadman thread). Both new utilities now support the old
  kernel and new kernel properly detects old utilities.

  For future backwards compatibility, the vfs.zfs.version.ioctl read-only
  sysctl has been introduced. With this sysctl zfs utilities will be able
  to detect the ioctl interface version of the currently loaded zfs module.

MFC r247585:
  Merge new read-only zfs properties from vendor (illumos)

  Illumos ZFS issues:
  3588 provide zfs properties for logical (uncompressed) space used and
       referenced

MFC r247852:
  Import ZFS bpobj bugfix from vendor.

  Illumos ZFS issues:
  3603 panic from bpobj_enqueue_subobj()
  3604 zdb should print bpobjs more verbosely

MFC r248265:
  Update zfs.8 manpage date (missing in r247585)

MFC r248267:
  Import minor ZFS changes from vendor

  Illumos ZFS issues:
  3604 zdb should print bpobjs more verbosely (fix zdb hang)
  3606 zpool status -x shouldn't warn about old on-disk format

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

11 years agoMFC r245887
brooks [Fri, 15 Mar 2013 22:31:51 +0000 (22:31 +0000)]
MFC r245887

Only install manpages and html documentation in the ncurses/*w (wchar)
builds so that it is only installed once.  This is consistent with the
existing decision to only install headers in the that case.

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

11 years agoMFC r245886,245911
brooks [Fri, 15 Mar 2013 22:26:19 +0000 (22:26 +0000)]
MFC r245886,245911

Don't install telnet.h if it will be installed by libtelnet.

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

11 years agoMFC: 242030
alfred [Fri, 15 Mar 2013 22:24:34 +0000 (22:24 +0000)]
MFC: 242030

Show how many times we are blocked waiting for mbufs.

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

11 years agoMFC r245882,245898
brooks [Fri, 15 Mar 2013 22:20:45 +0000 (22:20 +0000)]
MFC r245882,245898

Reorder so that NO_MAN is declared before bsd.own.mk is included and thus
has an effect (not installed a g++.1 manpage over the g++.1(.gz) link
created in ../cc).

bsd.own.mk needs to be included before Makefil.inc so MK_ARM_EABI is defined

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

11 years agoMFC r245853:
brooks [Fri, 15 Mar 2013 22:14:41 +0000 (22:14 +0000)]
MFC r245853:

manctl is conditionally added to SUBDIRS later on.  Don't unconditionally
include in the main list.

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

11 years agoMFC r245753:
brooks [Fri, 15 Mar 2013 21:45:49 +0000 (21:45 +0000)]
MFC r245753:

Install the template info directory with mode 644 instead of 444 to
allow it to be updated by its owner without resorting to privilege.

This is required by upcoming changes to allow installworld to work as
a non-root user.

Sponsored by:   DARPA, AFRL

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

11 years agoMFC r245752,246913,247162
brooks [Fri, 15 Mar 2013 21:32:40 +0000 (21:32 +0000)]
MFC r245752,246913,247162

Replace all known uses of ln in the build process with appropriate
install -l invocations via new INSTALL_LINK and INSTALL_SYMLINK
variables.

Sponsored by: DARPA, AFRL

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

11 years agoMFC r245571,245580:
brooks [Fri, 15 Mar 2013 20:52:00 +0000 (20:52 +0000)]
MFC r245571,245580:

In preparation for logging metadata about each filesystem object,
refactor the link section of distrib-dirs to alwasy install to a full
path (the link contents remain relative as they should).

Eliminate the use of the "rm -r[f] <foo>; ln -s <bar> <foo>" pattern in
favor of "ln -sfh <bar> <foo>".  None of these links could be directories
on a system installed in the last decade.

Sponsored by:   DARPA, AFRL

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

11 years agoMFC r245561,245885:
brooks [Fri, 15 Mar 2013 20:34:10 +0000 (20:34 +0000)]
MFC r245561,245885:

Add a new LIBRARIES_ONLY make variable to disable the build and install
of files other than the actual libraries.

Use LIBRARIES_ONLY to supress the inclusion of files in the lib32
distribution that are duplicates of files in base.

Sponsored by: DARPA, AFRL
Reviewed by: emaste

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

11 years agoMFC r241311:
brooks [Fri, 15 Mar 2013 20:26:51 +0000 (20:26 +0000)]
MFC r241311:

Change 32-bit library builds by removing use of make -E and passing AS,
CC, CXX and LD on the commandline of the sub-make instead of in the
environment of the sub-make.

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

11 years agoMFC r245513,245514,245515:
brooks [Fri, 15 Mar 2013 19:50:21 +0000 (19:50 +0000)]
MFC r245513,245514,245515:

The last section 1aout manpage was installed no later than July 2002.
Remove all support for them.

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