]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r236044:
kib [Sat, 9 Jun 2012 08:09:16 +0000 (08:09 +0000)]
MFC r236044:
Implement SEEK_HOLE/SEEK_DATA for UFS.

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

11 years agoMFC r236691:
mav [Sat, 9 Jun 2012 08:06:49 +0000 (08:06 +0000)]
MFC r236691:
Remove declaration of scsi_interpret_sense(), removed 11 years ago.

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

11 years agoMFC r236043:
kib [Sat, 9 Jun 2012 08:04:08 +0000 (08:04 +0000)]
MFC r236043:
Add a vn_bmap_seekhole(9) vnode helper which can be used by any
filesystem which supports VOP_BMAP(9) to implement SEEK_HOLE/SEEK_DATA
commands for lseek(2).

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

11 years agor236666:
mav [Sat, 9 Jun 2012 07:53:57 +0000 (07:53 +0000)]
r236666:
ATA/SATA controllers have no idea about protocol of the connected device
until transport will do some probe actions (at least soft reset).
Make ATA/SATA SIMs to not report bogus and confusing PROTO_ATA protocol.
Make ATA/SATA transport to fill that gap by reporting protocol to SIM with
XPT_SET_TRAN_SETTINGS and patching XPT_GET_TRAN_SETTINGS results if needed.

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

11 years agoMFC r236552:
mav [Sat, 9 Jun 2012 07:48:08 +0000 (07:48 +0000)]
MFC r236552:
Remove some dead code that I doubt will ever be implemented.

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

11 years agoMFC r236437:
mav [Sat, 9 Jun 2012 07:43:11 +0000 (07:43 +0000)]
MFC r236437:
Rewrite enabling NCQ for SATA devices in a way more alike to SCSI TCQ.
This allows to control it with `camcontrol negotiate adaX -T (en|dis)able`
on the fly, same as for SCSI devices.

Sponsored by:   iXsystems, Inc.

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

11 years agoNFC r236393:
mav [Sat, 9 Jun 2012 07:31:04 +0000 (07:31 +0000)]
NFC r236393:
Use AC_GETDEV_CHANGED async to notify ada driver about DMA and NCQ status
change. Now that allows switching between PIO and DMA modes on the fly.

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

11 years agoMFC r236234:
mav [Sat, 9 Jun 2012 07:28:11 +0000 (07:28 +0000)]
MFC r236234:
Allow to change number of openings (used tags) for ATA/SATA devices
via `camcontrol tags ... -N ...`.  There is no need to tune it in
usual cases, but some users want to have it for debugging purposes.

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

11 years agoMFC r236228:
mav [Sat, 9 Jun 2012 07:18:13 +0000 (07:18 +0000)]
MFC r236228:
Plug request and references leak caused by race between invalidated
ond probe periph destruction and new incoming probe request.

This at least caused problems with SATA Port Multipliers hot-plug.

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

11 years agoMFC r235897:
mav [Sat, 9 Jun 2012 06:43:26 +0000 (06:43 +0000)]
MFC r235897:
 - Add low-level support for SATA Enclosure Management Bridge (SEMB)
devices -- SATA equivalents of the SCSI SES/SAF-TE devices.
 - Add some utility functions for SCSI SAF-TE devices access.

Sponsored by:   iXsystems, Inc.

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

11 years agoMFC r236122,r236595:
wblock [Sat, 9 Jun 2012 01:41:41 +0000 (01:41 +0000)]
MFC r236122,r236595:

Wording corrections and simplifications.

Approved by: gjb (mentor)

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

11 years agoMFC r235982:
mav [Fri, 8 Jun 2012 20:30:37 +0000 (20:30 +0000)]
MFC r235982:
Add tunable/sysctl kern.cam.pmp.hide_special, controlling whether special
PMP ports such as PMP configuration or SEMB should be exposed or hidden.
These ports were always hidden before as useless and sometimes promatic.
But with updated ses driver supporting SEMB it is no longer so straight.
Keep ports hidden by default to avoid probe request ttimeouts if SEP is
not connected to PMP's SEMB via I2C, that is very often situation.

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

11 years agoMFC: r231544
fjoe [Fri, 8 Jun 2012 10:03:37 +0000 (10:03 +0000)]
MFC: r231544

Include target names in diagnostic output.

Submitted by: Garrett Cooper

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

11 years agoMFC r236619:
mav [Fri, 8 Jun 2012 05:53:25 +0000 (05:53 +0000)]
MFC r236619:
Add missing newlines into XML output.

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

11 years agoMFC r236412,236418,236420,236591,236624
sbruno [Thu, 7 Jun 2012 19:12:49 +0000 (19:12 +0000)]
MFC r236412,236418,236420,236591,236624

Doc updates for bce(4) tuneables

Note that for 7/8/9 the strict_rx_mtu variable is named
loose_rx_mtu.

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

11 years agoUpdate mergeinfo from r236323 that was missed in the code MFC commit
sbruno [Thu, 7 Jun 2012 18:58:59 +0000 (18:58 +0000)]
Update mergeinfo from r236323 that was missed in the code MFC commit
at r236323

doh!

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

11 years agoMFC r236323
sbruno [Thu, 7 Jun 2012 18:44:06 +0000 (18:44 +0000)]
MFC r236323

Cosmetic nit.  If a configured volume has no label, don't emit an empty
string for the name during probe.  Simply indicate that it has no label.

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

11 years agoMFC r236571:
dim [Thu, 7 Jun 2012 06:41:09 +0000 (06:41 +0000)]
MFC r236571:

Make aicasm compile without warnings if -Wpointer-sign is enabled.

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

11 years agoMFC r236371:
yongari [Thu, 7 Jun 2012 05:35:43 +0000 (05:35 +0000)]
MFC r236371:
  Remove unnecessary device_printfs.

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

11 years agoMFC 233760:
jhb [Wed, 6 Jun 2012 21:49:31 +0000 (21:49 +0000)]
MFC 233760:
Export some more useful info about shared memory objects to userland
via procstat(1) and fstat(1):
- Change shm file descriptors to track the pathname they are associated
  with and add a shm_path() method to copy the path out to a caller-supplied
  buffer.
- Use the fo_stat() method of shared memory objects and shm_path() to
  export the path, mode, and size of a shared memory object via
  struct kinfo_file.
- Add a struct shmstat to the libprocstat(3) interface along with a
  procstat_get_shm_info() to export the mode and size of a shared memory
  object.
- Change procstat to always print out the path for a given object if it
  is valid.
- Teach fstat about shared memory objects and to display their path,
  mode, and size.

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

11 years agoMFC: r232272, r232273
oleg [Wed, 6 Jun 2012 18:00:19 +0000 (18:00 +0000)]
MFC: r232272, r232273

- lookup_dyn_rule_locked(): style(9) cleanup
- Refresh dynamic tcp rule only if both sides answered keepalive packets.
- Remove some useless assignments.

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

11 years agoMFC 228509,228620,228533:
jhb [Wed, 6 Jun 2012 16:00:31 +0000 (16:00 +0000)]
MFC 228509,228620,228533:
Add a helper API to allow in-kernel code to map portions of shared memory
objects created by shm_open(2) into the kernel's address space.  This
provides a convenient way for creating shared memory buffers between
userland and the kernel without requiring custom character devices.

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

11 years agoMFC r230053:
mav [Wed, 6 Jun 2012 12:16:54 +0000 (12:16 +0000)]
MFC r230053:
Add BIO_DELETE support for SCSI Direct Access devices (da).

Depending on device capabilities use different methods to implement it.
Currently used method can be read/set via kern.cam.da.X.delete_method
sysctls. Possible values are:
 NONE - no provisioning support reported by the device;
 DISABLE - provisioning support was disabled because of errors;
 ZERO - use WRITE SAME (10) command to write zeroes;
 WS10 - use WRITE SAME (10) command with UNMAP bit set;
 WS16 - use WRITE SAME (16) command with UNMAP bit set;
 UNMAP - use UNMAP command (equivalent of the ATA DSM TRIM command).
The last two methods (UNMAP and WS16) are defined by SBC specification and
the UNMAP method is the most advanced one. The rest of methods I've found
supported in Linux, and as soon as they were trivial to implement, then
why not? Hope they will be useful in some cases.

Unluckily I have no devices properly reporting parameters of the logical
block provisioning support via respective VPD pages (0xB0 and 0xB2). So
all info I have/use now is the flag telling whether logical block
provisioning is supported or not. As result, specific methods chosen now
by trying different ones in order (UNMAP, WS16, DISABLE) and checking
completion status to fallback if needed. I don't expect problems from this,
as if something go wrong, it should just disable itself. It may disable
even too aggressively if only some command parameter misfit.

Unlike Linux, which executes each delete with separate request, I've
implemented here the same request aggregation as implemented in ada driver.
Tests on SSDs I have show much better results doing it this way: above
8GB/s of the linear delete on Intel SATA SSD on LSI SAS HBA (mps).

Sponsored by: iXsystems, Inc.

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

11 years agoMFC r236289:
eadler [Wed, 6 Jun 2012 06:38:56 +0000 (06:38 +0000)]
MFC r236289:
Relax security permissions on '.seq' file creation - the strict,
but odd permissions resulted in a security alert from 110.neggrpperm

PR: bin/165533
Approved by: cperciva (implicit)

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

11 years agoMFC r236285:
eadler [Wed, 6 Jun 2012 06:35:09 +0000 (06:35 +0000)]
MFC r236285:
Add missing flag enable when certain arguments are parsed

PR: bin/163053
Approved by: cperciva (implicit)

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

11 years agoMFC r236377:
eadler [Wed, 6 Jun 2012 06:32:50 +0000 (06:32 +0000)]
MFC r236377:
Fix bug revealed by warning generated by clang:
warning: equality comparison with extraneous parentheses
       [-Wparentheses-equality]

Approved by: cperciva (implicit)

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

11 years agoMFC r236379:
eadler [Wed, 6 Jun 2012 04:38:25 +0000 (04:38 +0000)]
MFC r236379:
   Adding missing dependancies for loading hptiop(4), hptmv(4) and isp(4) as modules.

PR: kern/166239
Approved by: cperciva (implicit)

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

11 years agoMFC r236283:
eadler [Wed, 6 Jun 2012 04:26:03 +0000 (04:26 +0000)]
MFC r236283:
 Add support for newer garmin devices

PR: kern/163932
Approved by: cperciva (implicit)

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

11 years agoMFC r236282:
eadler [Wed, 6 Jun 2012 04:17:40 +0000 (04:17 +0000)]
MFC r236282:
Add support for Sun 1040 PCI Quad Serial

PR: kern/163450
Approved by: cperciva (implicit)

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

11 years agoMFC r236309:
kib [Wed, 6 Jun 2012 01:01:12 +0000 (01:01 +0000)]
MFC r236309:
Assert that TDP_NOFAULTING and TDP_NOSPEEPING thread flags do not leak
when thread returns from a syscall to usermode.

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

11 years agoMFC: r236491
marius [Tue, 5 Jun 2012 20:53:46 +0000 (20:53 +0000)]
MFC: r236491

Add missing prototypes. While at it, sort them alphabetically.

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

11 years agoMFC: r236488
marius [Tue, 5 Jun 2012 20:49:18 +0000 (20:49 +0000)]
MFC: r236488

Take advantage of nitems().

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

11 years agoMFC r235781:
trasz [Tue, 5 Jun 2012 20:27:41 +0000 (20:27 +0000)]
MFC r235781:

Fix enforcement of file size limit with O_APPEND on ZFS.

vn_rlimit_fsize takes uio->uio_offset and uio->uio_resid into account
when determining whether given write would exceed RLIMIT_FSIZE.

When APPEND flag is specified, ZFS updates uio->uio_offset to point to the
end of file.

But this happens after a call to vn_rlimit_fsize, so vn_rlimit_fsize check
can be rendered ineffective by thread that opens some file with O_APPEND
and lseeks below RLIMIT_FSIZE before calling write.

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

11 years agoMFC: r236486
marius [Tue, 5 Jun 2012 19:58:58 +0000 (19:58 +0000)]
MFC: r236486

Add nitems(), a macro for determining the number of elements in a
statically-allocated array.

Obtained from: OpenBSD (in principle)

MFC: r236489

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

11 years agoMFC r236237:
trasz [Tue, 5 Jun 2012 13:57:02 +0000 (13:57 +0000)]
MFC r236237:

Fix lock interaction table for rmlocks - by default they cannot sleep,
just like rwlocks.

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

11 years agoMerge r236148. This allows C++ code to include <cmath> after explicitly including...
theraven [Tue, 5 Jun 2012 11:42:34 +0000 (11:42 +0000)]
Merge r236148.  This allows C++ code to include <cmath> after explicitly including math.h.

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

11 years agoMFC r236575 (by emax):
bz [Tue, 5 Jun 2012 11:28:57 +0000 (11:28 +0000)]
MFC r236575 (by emax):

 Plug more refcount leaks and possible NULL deref for interface
 address list.

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

11 years agoMFC r236501 (by emax):
bz [Tue, 5 Jun 2012 11:26:43 +0000 (11:26 +0000)]
MFC r236501 (by emax):

  Plug reference leak.

  Interface addresses are refcounted as packets move through the stack,
  and there's garbage collection tied to it so that address changes can
  safely propagate while traffic is flowing. In our setup, we weren't
  changing or deleting any addresses, but the refcounting logic in
  ip6_input() was wrong and caused a reference leak on every inbound
  V6 packet. This eventually caused a 32bit overflow, and the resulting
  0 value caused the garbage collection to run on the active address.
  That then snowballed into the panic.

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

11 years agoMFC r236327 (by emax):
bz [Tue, 5 Jun 2012 11:23:56 +0000 (11:23 +0000)]
MFC r236327 (by emax):

  When we return deprecated addresses, we need to reference them.

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

11 years agoMFC r236444:
dim [Tue, 5 Jun 2012 06:43:45 +0000 (06:43 +0000)]
MFC r236444:

Install libcxxrt's C++ ABI and unwind headers.  This is done in libc++'s
Makefile, so these headers go into the same destination directory as
libc++'s own headers, currently /usr/include/c++/v1.

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

11 years agoMFC r236442:
dim [Tue, 5 Jun 2012 06:41:47 +0000 (06:41 +0000)]
MFC r236442:

Tabify libcxxrt and libc++'s Makefiles.

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

11 years agoUpgrade to 9.8.3-P1, the latest from ISC. This version contains
dougb [Mon, 4 Jun 2012 22:14:33 +0000 (22:14 +0000)]
Upgrade to 9.8.3-P1, the latest from ISC. This version contains
a critical bugfix:

    Processing of DNS resource records where the rdata field is zero length
    may cause various issues for the servers handling them.

    Processing of these records may lead to unexpected outcomes. Recursive
    servers may crash or disclose some portion of memory to the client.
    Secondary servers may crash on restart after transferring a zone
    containing these records. Master servers may corrupt zone data if the
    zone option "auto-dnssec" is set to "maintain". Other unexpected
    problems that are not listed here may also be encountered.

All BIND users are strongly encouraged to upgrade.

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

11 years agoMerge r235848 from head to stable/9:
issyl0 [Mon, 4 Jun 2012 14:11:49 +0000 (14:11 +0000)]
Merge r235848 from head to stable/9:
  Add two new locale-specific man pages:
  - libc/stdio/scanf_l.3
  - libc/stdio/printf_l.3

Approved by: gabor (mentor)

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

12 years agoMFC r234066:
mav [Mon, 4 Jun 2012 07:16:12 +0000 (07:16 +0000)]
MFC r234066:
Microoptimize cpu_search().

According to profiling, it makes one take 6% of CPU time on hackbench
with its million of context switches per second, instead of 8% before.

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

12 years agoMFC r232740:
mav [Mon, 4 Jun 2012 07:12:36 +0000 (07:12 +0000)]
MFC r232740:
Make kern.sched.idlespinthresh default value adaptive depending of HZ.
Otherwise with HZ above 8000 CPU may never skip timer ticks on idle.

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

12 years agoMFC r236184:
mav [Mon, 4 Jun 2012 07:07:46 +0000 (07:07 +0000)]
MFC r236184:
Make legacy ATA to not call device_add_child() with unit number but
without driver name.

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

12 years agoMFC r235333:
mav [Mon, 4 Jun 2012 07:03:56 +0000 (07:03 +0000)]
MFC r235333:
Add two functions xpt_batch_start() and xpt_batch_done() to the CAM SIM KPI
to allow drivers to handle request completion directly without passing
them to the CAM SWI thread removing extra context switch.
Modify all ATA/SATA drivers to use them.

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

12 years agoMFC r236388:
dim [Mon, 4 Jun 2012 06:45:49 +0000 (06:45 +0000)]
MFC r236388:

Make devd build with libc++.

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

12 years agoMFC r236387:
dim [Mon, 4 Jun 2012 06:43:01 +0000 (06:43 +0000)]
MFC r236387:

Fix dangling else in libc++'s __bit_reference header.  This has also
been sent upstream.

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

12 years agoMFC r236386:
dim [Mon, 4 Jun 2012 06:39:10 +0000 (06:39 +0000)]
MFC r236386:

Pull in r155978 from upstream llvm trunk:

  Fix unintentional use of operator bool.

This enables llvm's bugpoint tool to build with libc++.

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

12 years agoMFC: 234851, 235059
bapt [Sun, 3 Jun 2012 18:16:17 +0000 (18:16 +0000)]
MFC: 234851, 235059

Add two special directives to libmap.conf:
include <file>:
  Parse the contents of file before continuing with the current file.
includedir <dir>:
  Parse the contents of every file in dir that ends in .conf before continuing
  with the current file.
Any file or directory encountered while processing include or includedir
directives will be parsed exactly once, even if it is encountered multiple
times.

Approved by: des (mentor)

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

12 years agoOpenSSH: allow VersionAddendum to be used again
rea [Sun, 3 Jun 2012 18:00:38 +0000 (18:00 +0000)]
OpenSSH: allow VersionAddendum to be used again

Prior to this, setting VersionAddendum will be a no-op: one will
always have BASE_VERSION + " " + VERSION_HPN for VersionAddendum
set in the config and a bare BASE_VERSION + VERSION_HPN when there
is no VersionAddendum is set.

HPN patch requires both parties to have the "hpn" inside their
advertized versions, so we add VERSION_HPN to the VERSION_BASE
if HPN is enabled and omitting it if HPN is disabled.

VersionAddendum now uses the following logics:
 * unset (default value): append " " and VERSION_ADDENDUM;
 * VersionAddendum is set and isn't empty: append " "
   and VersionAddendum;
 * VersionAddendum is set and empty: don't append anything.

Approved by: des
Reviewed by: bz

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

12 years agoMFC: let netmap build as a module (but do not connect to the main build yet)
luigi [Sun, 3 Jun 2012 17:51:53 +0000 (17:51 +0000)]
MFC: let netmap build as a module (but do not connect to the main build yet)

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

12 years agoMFC: r233666
marius [Sun, 3 Jun 2012 17:48:04 +0000 (17:48 +0000)]
MFC: r233666

Fix build after changes to trap headers.

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

12 years agoMFC: r233635
marius [Sun, 3 Jun 2012 11:54:26 +0000 (11:54 +0000)]
MFC: r233635

Allow multiple inclusion of trap.h. This has always been broken, but
until recently never caused problems.

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

12 years agoMFC r236145, r236146:
mm [Sun, 3 Jun 2012 09:37:27 +0000 (09:37 +0000)]
MFC r236145, r236146:

MFC r236145 [1]:
Import illumos changeset 13564:cf89c0c60496
1946 incorrect formatting when listing output of multiple pools with
zpool iostat -v

MFC r236146 [2]:
Import illumos changeset 13605:b5c2b5db80d6 (partial)
763 FMD msg URLs should refer to something visible
Replace sun.com URL's with illumos.org

References:
https://www.illumos.org/issues/1946 [1]
https://www.illumos.org/issues/763 [2]

Obtained from: illumos (issue #1946 [1], #763 [2])

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

12 years agoMFC r236193: libfetch: Avoid SIGPIPE on network connections.
jilles [Sat, 2 Jun 2012 20:18:34 +0000 (20:18 +0000)]
MFC r236193: libfetch: Avoid SIGPIPE on network connections.

To avoid unexpected process termination from SIGPIPE when writing to a
closed network connection, enable SO_NOSIGPIPE on all network connections.

The POSIX standard MSG_NOSIGNAL is not used since it requires modifying all
send calls to add this flag. This is particularly nasty for SSL connections.

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

12 years agoMFC: r236328
marius [Sat, 2 Jun 2012 19:16:09 +0000 (19:16 +0000)]
MFC: r236328

Try to finally get the point in time at which bge_add_sysctls() is called
right; it needs to be called before bge_can_use_msi() but in turn requires
bge_flags to be properly set.

Submitted by: yongari

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

12 years agoMFC r235829: vm_pager_object_lookup: small performance optimization
avg [Sat, 2 Jun 2012 19:13:56 +0000 (19:13 +0000)]
MFC r235829: vm_pager_object_lookup: small performance optimization

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

12 years agoMFC: r236156
marius [Sat, 2 Jun 2012 19:11:44 +0000 (19:11 +0000)]
MFC: r236156

- Fix some typos in mmc_acquire_bus() and mmc_send_csd().
- Fix some math errors in mmc_decode_csd_sd().
- Fix incorrect arguments to mmc_send_app_op_cond() in mmc_go_discovery().
- Add reporting of CSD for debug purposes.
- Add detection (and skipping) of password-locked cards.
- Add setting of block length on card if necessary.

Submitted by: Patrick Kelsey

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

12 years agoMFC: r236070
marius [Sat, 2 Jun 2012 19:10:00 +0000 (19:10 +0000)]
MFC: r236070

Consistently use USB_PAGE_SIZE. Currently, this is cosmetic.

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

12 years agoMFC: r236069, r236073
marius [Sat, 2 Jun 2012 19:08:47 +0000 (19:08 +0000)]
MFC: r236069, r236073

Make the VIA workaround actually do its intended job.

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

12 years agoMFC: r236063
marius [Sat, 2 Jun 2012 19:06:01 +0000 (19:06 +0000)]
MFC: r236063

Remove extraneous empty lines.

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

12 years agoRevert changes accidentally committed as part of r236468.
marius [Sat, 2 Jun 2012 19:04:21 +0000 (19:04 +0000)]
Revert changes accidentally committed as part of r236468.

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

12 years agoMFC: r236061
marius [Sat, 2 Jun 2012 18:57:13 +0000 (18:57 +0000)]
MFC: r236061

- When creating the DMA tag for user data, don't ask for more segments
  than required for handling MAXPHYS and report the resulting maximum
  I/O size to CAM instead of implicitly limiting it to DFLTPHYS.
- Move the variables of sym_action2() out of nested scope as required
  by style(9) and remove extraneous curly braces.
- Replace a magic value for PCIR_COMMAND with the appropriate macro.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

Tested with a HBA donated by wilko.

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

12 years agoMFC r235479: zpool_find_import_impl: another /dev/dsk -> /dev fix
avg [Sat, 2 Jun 2012 18:56:41 +0000 (18:56 +0000)]
MFC r235479: zpool_find_import_impl: another /dev/dsk -> /dev fix

PR: bin/155104

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

12 years agoMFC r235478: zpool_do_import: use /dev instead of /dev/dsk as a default
avg [Sat, 2 Jun 2012 18:55:25 +0000 (18:55 +0000)]
MFC r235478: zpool_do_import: use /dev instead of /dev/dsk as a default

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

12 years agoMFC r235391: i386 bootinfo: re-arrange EFI fields for natural alignment
avg [Sat, 2 Jun 2012 18:36:29 +0000 (18:36 +0000)]
MFC r235391: i386 bootinfo: re-arrange EFI fields for natural alignment
and packing

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

12 years agoMFC 236333,236336
jpaetzel [Sat, 2 Jun 2012 18:28:34 +0000 (18:28 +0000)]
MFC 236333,236336

Let pkg_add use the ENV variable PACKAGESUFFIX. This
can be used to override the default .tbz package extension to
.txz .tgz or .tar

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

12 years agoMFC r235130: zfsboottest.sh: correctly check and suggest value of
avg [Sat, 2 Jun 2012 18:26:05 +0000 (18:26 +0000)]
MFC r235130: zfsboottest.sh: correctly check and suggest value of
vfs.root.mountfrom

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

12 years agoMFC r235129: zfsboottest.sh: gracefully handle default value of bootfs
avg [Sat, 2 Jun 2012 18:24:43 +0000 (18:24 +0000)]
MFC r235129: zfsboottest.sh: gracefully handle default value of bootfs
property

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

12 years agoMFC 236331
jpaetzel [Sat, 2 Jun 2012 18:22:38 +0000 (18:22 +0000)]
MFC 236331

Fix detecting available zpool names.

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

12 years agoMFC 236330:
jpaetzel [Sat, 2 Jun 2012 18:13:53 +0000 (18:13 +0000)]
MFC 236330:

Fix French Canadian console keyboard layout

Submitted by: kmoore
Obtained from: PC-BSD
Sponsored by: iXsystems

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

12 years agoRFC: 235276
bapt [Sat, 2 Jun 2012 16:16:03 +0000 (16:16 +0000)]
RFC: 235276

- Print package name in case an empty pkgdep line is found.

PR: bin/164378
Submitted by: Yuri <yuri AT tsoft.com> and many others
Approved by: des (mentor)

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

12 years agoMFC: 228545,229572
bapt [Sat, 2 Jun 2012 15:13:28 +0000 (15:13 +0000)]
MFC: 228545,229572

Modify pw_copy:
- if pw is NULL and oldpw is not NULL then the oldpw is deleted
- if pw->pw_name != oldpw->pw_name but pw->pw_uid == oldpw->pw_uid
then it renames the user

add new gr_* functions so now gr_util API is similar to pw_util API,
this allow to manipulate groups in a safe way.

Add new pw_make_v7 to make a passwd line (in v7 format) out of a struct passwd

Approved by: des (mentor)

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

12 years agoMFC r236313:
kib [Sat, 2 Jun 2012 11:44:50 +0000 (11:44 +0000)]
MFC r236313:
Capitalize start of sentence.

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

12 years agoMFC r236312:
kib [Sat, 2 Jun 2012 11:39:40 +0000 (11:39 +0000)]
MFC r236312:
Clarify that the v_lockf is advisory lock list.

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

12 years agoMFC r236274, r236278, r236279:
gjb [Sat, 2 Jun 2012 02:26:37 +0000 (02:26 +0000)]
MFC r236274, r236278, r236279:

r236274:
 - Fix an mdoc(7) formatting nit.

r236278:
 - Fix mdoc(7) style nits.

r236279:
 - Add '-width Pa' to src.conf.5 for mdoc(7) style consistency.

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

12 years agoMFC 236212:
gallatin [Fri, 1 Jun 2012 18:16:10 +0000 (18:16 +0000)]
MFC 236212:

  Update mxge(4) firmware to the latest version available from
  Myricom (1.4.55).

  Sponored by: Myricom, Inc.

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

12 years agoMFC: r236251
jkim [Fri, 1 Jun 2012 17:17:46 +0000 (17:17 +0000)]
MFC: r236251

Fix 32-bit shim for BIOCSETF to drop all packets buffered on the descriptor
and reset statistics as it should.

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

12 years agoMFC r235266:
kib [Fri, 1 Jun 2012 14:40:16 +0000 (14:40 +0000)]
MFC r235266:
According to SUSv4, realpath(3) must fail if
  [ENOENT]  A component of file_name does not name an existing file or
      file_name points to an empty string.
  [ENOTDIR] A component of the path prefix is not a directory, or the
      file_name argument contains at least one non- <slash> character
      and ends with one or more trailing <slash> characters and the last
      pathname component names an existing file that is neither a
      directory nor a symbolic link to a directory.
Add checks for the listed conditions, and set errno accordingly.

Update the realpath(3) manpage to mention SUS behaviour. Remove the
requirement to include sys/param.h before stdlib.h.

PR: 128933

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

12 years agoMFC r236220,236221:
iwasaki [Fri, 1 Jun 2012 12:47:13 +0000 (12:47 +0000)]
MFC r236220,236221:
- Fix the problem acpi_sleep_force() hang.
- Reorder resume procedures to avoid hang during AcpiLeaveSleepState()
  execution.

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

12 years agoMFC r236242:
hselasky [Fri, 1 Jun 2012 07:07:36 +0000 (07:07 +0000)]
MFC r236242:
Add AHCI quirk.

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

12 years agoMFC r235725:
hselasky [Fri, 1 Jun 2012 07:06:00 +0000 (07:06 +0000)]
MFC r235725:
Update usb.conf.

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

12 years agoMFC r236260:
dim [Fri, 1 Jun 2012 06:45:14 +0000 (06:45 +0000)]
MFC r236260:

Pull in r156591 from upstream llvm trunk:

  Allow unique_file to take a mode for file permissions, but default
  to user only read/write.

and r156592 from upstream clang trunk:

  For final output files create them with mode 0664 to match other
  compilers and expected defaults.

This should fix clang creating files with mode 0600.

Reported by: James <james@hicag.org>

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

12 years agoMFC r235481:
eadler [Fri, 1 Jun 2012 06:39:55 +0000 (06:39 +0000)]
MFC r235481:
Rework sample code which sets SSH_AUTH_SOCK to the user's ssh-agent
socket path if running

PR: 167932
Approved by: cperciva (implicit)

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

12 years agoMFV r236171, MFC r236196:
dougb [Fri, 1 Jun 2012 03:46:28 +0000 (03:46 +0000)]
MFV r236171, MFC r236196:

Upgrade to BIND version 9.8.3, the latest from ISC.

Feature Change

*  BIND now recognizes the TLSA resource record type, created to
   support IETF DANE (DNS-based Authentication of Named Entities)

Bug Fix

*  The locking strategy around the handling of iterative queries
   has been tuned to reduce unnecessary contention in a multi-
   threaded environment.

Other critical bug fixes are included.

All BIND users are encouraged to upgrade.

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

12 years agoMFC r235678:
jhibbits [Thu, 31 May 2012 23:05:07 +0000 (23:05 +0000)]
MFC r235678:

"nvram,flash" may not be the first in the compatible list property of the
nvram ofw node, so check all strings in the list.

Approved by: nwhitehorn (mentor)

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

12 years agoMFC r235949, r236198:
jamie [Thu, 31 May 2012 14:18:19 +0000 (14:18 +0000)]
MFC r235949, r236198:

   Don't try to set a null TERM environment.

   When writing the jid via the -i flag, do it right when the jail is created,
   before any commands run.  /etc/rc.d/jail depends on this.

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

12 years agoMFC r235204:
eadler [Thu, 31 May 2012 07:44:27 +0000 (07:44 +0000)]
MFC r235204:
Add some missing files to OLD_FILES

PR: conf/166460
Approved by: cperciva (implicit)

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

12 years agoMFC r235842
wblock [Thu, 31 May 2012 02:51:54 +0000 (02:51 +0000)]
MFC r235842

Mention the upper hard limit for -n option.  Patch slightly modified
from PR version.

PR: 168255
Submitted by: Andy Kosela
Approved by: gjb (mentor)

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

12 years agoMFC r235459 and r235471
rstone [Wed, 30 May 2012 23:22:52 +0000 (23:22 +0000)]
MFC r235459 and r235471

r235459:
 Implement the DTrace sched provider.  This implementation aims to be
 compatible with the sched provider implemented by Solaris and its open-
 source derivatives.  Full documentation of the sched provider can be found
 on Oracle's DTrace wiki pages.

 Note that for compatibility with scripts originally written for Solaris,
 serveral probes are defined that will never fire.  These probes are defined
 to fire when Solaris-specific features perform certain actions.  As these
 features are not present in FreeBSD, the probes can never fire.

 Also, I have added a two probes that are not defined in Solaris, lend-pri
 and load-change.  These probes have been added to make it possible to
 collect schedgraph data with DTrace.

 Finally, a few probes are defined in Solaris to take a cpuinfo_t *
 argument.  As it was not immediately clear to me how to translate that to
 FreeBSD, currently those probes are passed NULL in place of a cpuinfo_t *.

 Sponsored by: Sandvine Incorporated

r235471:
 Fix typo in function name SDT_PROBE4 and unbreak 4BSD UP.

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

12 years agoMFC r228862, 228880, 228882, 228906, 228977, 229332, 229575, 229591, 229704,
theraven [Wed, 30 May 2012 19:21:54 +0000 (19:21 +0000)]
MFC r228862, 228880, 228882, 228906, 228977, 229332, 229575, 229591, 229704,
229716, 230062, 230225, 230267, 234958

This brings stdatomic.h into -STABLE and includes improvements to tgmath.h that
significantly decrease compile times on a C11 compiler (such as the clang in
the base system).

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

12 years agoMFC 235833:
jhb [Wed, 30 May 2012 16:30:51 +0000 (16:30 +0000)]
MFC 235833:
Only check to see if a memory resource is a PCI ROM BAR when activating
and deactivating PCI resources.  Previously, if a device had more than
48 MSI interrupts, then activating message 48 (which has a rid == PCIR_BIOS)
would incorrectly try to enable the PCI ROM BAR.

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

12 years agoMFC 234501:
jhb [Wed, 30 May 2012 16:13:10 +0000 (16:13 +0000)]
MFC 234501:
The amr(4) firmware contains a rather dubious "feature" where it
assumes for small buffers (< 64k) that the OS driver is actually using
a buffer rounded up to the next power of 2.  It also assumes that the
buffer is at least 4k in size.  Furthermore, there is at least one
known instance of megarc sending a request with a 12k buffer where the
firmware writes out a 24k-ish reply.

To workaround the data corruption triggered by this "feature", ensure
that buffers for user commands use a minimum size of 32k, and that
buffers between 32k and 64k use a 64k buffer.

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

12 years agoMFC 234099:
jhb [Wed, 30 May 2012 16:04:10 +0000 (16:04 +0000)]
MFC 234099:
Properly parse 40G media types from newer Mellanox adapters that are
40G capable.  For now, map all 40G links to 40GBase-CR4.

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

12 years agoUpdate the previous openssl fix. [12:01]
bz [Wed, 30 May 2012 12:01:28 +0000 (12:01 +0000)]
Update the previous openssl fix. [12:01]

Fix a bug in crypt(3) ignoring characters of a passphrase. [12:02]

Security: FreeBSD-SA-12:01.openssl (revised)
Security: FreeBSD-SA-12:02.crypt
Approved by: so (bz, simon)

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

12 years agoMFC r236149:
dim [Wed, 30 May 2012 06:53:09 +0000 (06:53 +0000)]
MFC r236149:

Pull in r157212 from upstream clang trunk:

  Revert r115805. An array type is required to have a range type,
  however, the range can be unknown for the upper bound.

  Testcase to follow.

  Part of rdar://11457152

This should fix ctfconvert producing error messages during kernel
builds, similar to:

  ERROR: scsi_all.c: die 24561: failed to retrieve array bounds

These were caused by incorrect debug information for flexible array
members of structs.

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

12 years agoMFC r235851:
kib [Wed, 30 May 2012 04:54:39 +0000 (04:54 +0000)]
MFC r235851:
Add 'cow' keyword to show per-process cow count.

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

12 years agoMFC r235850:
kib [Wed, 30 May 2012 04:51:23 +0000 (04:51 +0000)]
MFC r235850:
Calculate the count of per-process cow faults.  Export the count to
userspace using the obscure spare int field in struct kinfo_proc.

MFC r236136:
Fix ki_cow for compat32 binaries.

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