]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
11 years agoMFC: Update import info based on recent experiences and sendmail 8.14.6 import.
gshapiro [Tue, 1 Jan 2013 18:45:22 +0000 (18:45 +0000)]
MFC: Update import info based on recent experiences and sendmail 8.14.6 import.

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

11 years agoMFC: Merge sendmail 8.14.6
gshapiro [Tue, 1 Jan 2013 18:29:04 +0000 (18:29 +0000)]
MFC: Merge sendmail 8.14.6

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

11 years agoMFC r244406:
delphij [Tue, 1 Jan 2013 07:06:17 +0000 (07:06 +0000)]
MFC r244406:

Update arcmsr(4) to vendor version 1.20.00.26, this adds
support for their new RAID adapter ARC-1214.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: 黃清隆 Ching-Lung Huang <ching2048 areca com tw>

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

11 years agoMFC r244369 (jimharris):
delphij [Tue, 1 Jan 2013 07:04:25 +0000 (07:04 +0000)]
MFC r244369 (jimharris):

Use CAM_DEV_NOT_THERE instead of CAM_SEL_TIMEOUT to report nonexistent
LUNs for the virtual processor device.  This removes lots of CAM warnings,
and follows similar recent changes to tws(4) and twa(4) drivers.

Also fix case where CAM_REQ_CMP was getting OR'd with CAM_DEV_NOT_THERE
in the nonexistent LUN case, resulting in different CAM status (CAM_UA_TERMIO)
getting reported to CAM.  This issue existing previously, but was more subtle
because it changed CAM_SEL_TIMEOUT to CAM_CMD_TIMEOUT.

Sponsored by: Intel
Reported and tested by: Willem Jan Withagen <wjw@digiware.nl>

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

11 years agoMFC r244600:
dim [Mon, 31 Dec 2012 14:21:41 +0000 (14:21 +0000)]
MFC r244600:

Fix a bug in ld --gc-sections: it strips out .note sections, while it
should never do so.  This can cause global constructors and destructors
to not be executed at run-time, resulting in crashes and other strange
behaviour.

Reported by: rene

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

11 years agoMFC r244900:
bz [Mon, 31 Dec 2012 12:05:34 +0000 (12:05 +0000)]
MFC r244900:

  Happy New Year 2013!

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

11 years agoAdd mergeinfo that I accidentally omitted in my last commit.
markj [Mon, 31 Dec 2012 03:48:23 +0000 (03:48 +0000)]
Add mergeinfo that I accidentally omitted in my last commit.

Approved by: emaste (co-mentor)

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

11 years agoAdd mergeinfo that I accidentally omitted in my last commit.
markj [Mon, 31 Dec 2012 03:47:50 +0000 (03:47 +0000)]
Add mergeinfo that I accidentally omitted in my last commit.

Approved by: emaste (co-mentor)

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

11 years agoMFC 244523:
markj [Mon, 31 Dec 2012 03:35:01 +0000 (03:35 +0000)]
MFC 244523:
- Make sure that errno isn't modified before calling logerror() in error
  conditions.
- Don't check for AF_INET6 when compiled without INET6 support.

Approved by: emaste (co-mentor)

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

11 years agoMFC r244522: Don't reload syslogd after rotating sendmail.st.
markj [Mon, 31 Dec 2012 03:34:23 +0000 (03:34 +0000)]
MFC r244522: Don't reload syslogd after rotating sendmail.st.

Approved by: emaste (co-mentor)

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

11 years agoMFC r244791:
gjb [Mon, 31 Dec 2012 00:52:16 +0000 (00:52 +0000)]
MFC r244791:
 - Fix wording nit.

PR: 174787
Submitted by: Cody Rank

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

11 years agoMFC: Add missing closing quote on commented out example
gshapiro [Sun, 30 Dec 2012 15:37:38 +0000 (15:37 +0000)]
MFC: Add missing closing quote on commented out example

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

11 years agoMFC: Properly define true/false when defining __bool_true_false_are_defined
gshapiro [Sat, 29 Dec 2012 19:12:38 +0000 (19:12 +0000)]
MFC: Properly define true/false when defining __bool_true_false_are_defined
     for filters which pull in mfapi.h before stdbool.h.  Issue reported by
     Petr Rehor, maintainer of amavisd-milter port.

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

11 years agoMFC r239055 and r239567:
hselasky [Sat, 29 Dec 2012 12:51:52 +0000 (12:51 +0000)]
MFC r239055 and r239567:

Add more USB ID's to FTDI driver.

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

11 years agoCopy sys/dev/usbdevs from head @ r244719 to simplify merging.
hselasky [Sat, 29 Dec 2012 12:48:03 +0000 (12:48 +0000)]
Copy sys/dev/usbdevs from head @ r244719 to simplify merging.

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

11 years agoMFC r235725, r239056, r241089, r243661 and r244252:
hselasky [Sat, 29 Dec 2012 12:33:32 +0000 (12:33 +0000)]
MFC r235725, r239056, r241089, r243661 and r244252:

Regenerate usb.conf

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

11 years agoMFC r244567:
hselasky [Sat, 29 Dec 2012 12:20:49 +0000 (12:20 +0000)]
MFC r244567:

Reduce stack usage in the USB audio driver by moving some large stack
elements to the USB audio softc structure.

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

11 years agoMFC r244237:
kib [Sat, 29 Dec 2012 02:36:08 +0000 (02:36 +0000)]
MFC r244237:
Remove a special case for XEN.

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

11 years agoMFC r244145:
mav [Wed, 26 Dec 2012 18:51:37 +0000 (18:51 +0000)]
MFC r244145:
Add quirks for AD1984A codec and Lenovo X300 laptop.

PR: kern/148741

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

11 years agoMFC r244104:
delphij [Tue, 25 Dec 2012 00:25:22 +0000 (00:25 +0000)]
MFC r244104:

In parse():

 - Only operate on copy, don't operate on source.
 - Eliminate home-rolled strsep().
 - Constify the parameter.

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

11 years agoMFC r244096:
delphij [Mon, 24 Dec 2012 00:46:34 +0000 (00:46 +0000)]
MFC r244096:

Sync pf.os with OpenBSD.

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

11 years agoMFC r244635: zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead
avg [Sun, 23 Dec 2012 20:03:53 +0000 (20:03 +0000)]
MFC r244635: zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead

This should fix build failure caused by r244623.

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

11 years agofix r243760 by accounting for cpuset vs cpumask differences
avg [Sun, 23 Dec 2012 16:11:43 +0000 (16:11 +0000)]
fix r243760 by accounting for cpuset vs cpumask differences

This is a direct commit.

Pointyhat to: avg

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

11 years agoMFC r242567: zfs_mount: drop vfs.zfs.rootpool.prefer_cached_config tunable
avg [Sun, 23 Dec 2012 12:19:22 +0000 (12:19 +0000)]
MFC r242567: zfs_mount: drop vfs.zfs.rootpool.prefer_cached_config tunable

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

11 years agoMFC r243502: zfs roopool: add support for multi-vdev configurations
avg [Sun, 23 Dec 2012 12:16:24 +0000 (12:16 +0000)]
MFC r243502: zfs roopool: add support for multi-vdev configurations

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

11 years agoMFC r243762: gfs_file_inactive: replace bad code with ugly code
avg [Sun, 23 Dec 2012 12:13:07 +0000 (12:13 +0000)]
MFC r243762: gfs_file_inactive: replace bad code with ugly code

PR: kern/151111

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

11 years agoMFC r243404: acpi_cpu: use fixed resource ids for cx state i/o resources
avg [Sun, 23 Dec 2012 12:09:52 +0000 (12:09 +0000)]
MFC r243404: acpi_cpu: use fixed resource ids for cx state i/o resources

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

11 years agoMFC r243761: acpi_cpu_notify: disable acpi_cpu_idle while updating
avg [Sun, 23 Dec 2012 12:07:52 +0000 (12:07 +0000)]
MFC r243761: acpi_cpu_notify: disable acpi_cpu_idle while updating
C-state data

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

11 years agoMFC r243760: acpi_cpu: change cpu_disable_idle to be a per-cpu flag
avg [Sun, 23 Dec 2012 12:06:12 +0000 (12:06 +0000)]
MFC r243760: acpi_cpu: change cpu_disable_idle to be a per-cpu flag

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

11 years agoMFC r243497: zfs: create devices/geoms from zvols after receiveing them
avg [Sun, 23 Dec 2012 11:56:28 +0000 (11:56 +0000)]
MFC r243497: zfs: create devices/geoms from zvols after receiveing them

PR: kern/167066

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

11 years agoMFC r243272,243499: assert_vop_locked should treat LK_EXCLOTHER as the
avg [Sun, 23 Dec 2012 11:52:46 +0000 (11:52 +0000)]
MFC r243272,243499: assert_vop_locked should treat LK_EXCLOTHER as the
not locked case

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

11 years agoMFC r244246:
mm [Sat, 22 Dec 2012 22:27:57 +0000 (22:27 +0000)]
MFC r244246:

illumos-gate 13894:f4af77f6bbd2
3397 zdb <pool> <objnum> output is too verbose
3398 zdb can't dump feature flags zap objects

References:
https://www.illumos.org/issues/3397
https://www.illumos.org/issues/3398

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

11 years agoMFC r244037:
eadler [Thu, 20 Dec 2012 18:13:04 +0000 (18:13 +0000)]
MFC r244037:
Add check for failure of mkstemp and setenv.

Approved by: cperciva (implicit)

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

11 years agoMFC r242996:
eadler [Thu, 20 Dec 2012 04:16:25 +0000 (04:16 +0000)]
MFC r242996:
Add support for CIR1000 - Cirrus Logic V34 to the sio driver

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

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

11 years agoMFC r243793:
eadler [Thu, 20 Dec 2012 00:40:59 +0000 (00:40 +0000)]
MFC r243793:
Add support for hdmi hda codec onboard nvidia gt 440 graphics card

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

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

11 years agoMFC r243890:
eadler [Thu, 20 Dec 2012 00:35:08 +0000 (00:35 +0000)]
MFC r243890:
Connect organization.dot to the build

Approved by: cperciva (implicit)

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

11 years agoMFC r244318:
eadler [Thu, 20 Dec 2012 00:32:43 +0000 (00:32 +0000)]
MFC r244318:
Minor wording improvments to some manual pages

Approved by: cperciva (implicit)

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

11 years agoMFC r243891:
eadler [Thu, 20 Dec 2012 00:30:48 +0000 (00:30 +0000)]
MFC r243891:
Add ability to mergemaster to permit the user to type
the absolute path to PAGER if mergemaster can not find
the one already set.

Approved by: cperciva (implicit)

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

11 years agoMFC r243894:
eadler [Thu, 20 Dec 2012 00:28:51 +0000 (00:28 +0000)]
MFC r243894:
Remove useless check for NULL prior to free.

Approved by: cperciva (implicit)

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

11 years agoMFC r243892:
eadler [Thu, 20 Dec 2012 00:26:46 +0000 (00:26 +0000)]
MFC r243892:
Remove pointless check for the existence of /usr/bin/less which exists
in all configurations.

Approved by: cperciva (implicit)

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

11 years agoMFC r243907:
dim [Wed, 19 Dec 2012 12:19:56 +0000 (12:19 +0000)]
MFC r243907:

Fix an old bug in devd, where it uses std::sort() to sort the various
lists it reads from its configuration files on the priority field.

Because some items in the lists have the same priority, and std::sort()
is not stable, the exact order in which the items are enumerated does
not have to correspond to the order they appear in the configuration
files.

Apparently this was never noticed with libstdc++, but with libc++ it
could cause the "uhid" entry from /etc/devd/usb.conf to be used instead
of the "ums" entry (which is earlier in the file).  This caused the
problem described in the PR: the USB mouse module was never loaded, and
the other actions (such as starting moused) were not executed.

To fix the problem, make devd use std:stable_sort() instead.

Reported by: Jan Beich <jbeich@tormail.org>
PR: bin/172958

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

11 years agoMFC r243807:
delphij [Mon, 17 Dec 2012 06:44:16 +0000 (06:44 +0000)]
MFC r243807:

Use SA_ZPL_CRTIME instead of SA_ZPL_CTIME for creation time.

Submitted by: phil.stone at gmx.com

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

11 years agoMFC r243834:
delphij [Mon, 17 Dec 2012 06:38:22 +0000 (06:38 +0000)]
MFC r243834:

Note that the manual page of less(1) says:

  Note  that  a preprocessor cannot output an empty file, since that
  is interpreted as meaning there is no replacement, and the  origi-
  nal file is used.  To avoid this, if LESSOPEN starts with two ver-
  tical bars, the exit status of the script becomes meaningful.   If
  the  exit  status is zero, the output is considered to be replace-
  ment text, even if it empty.  If the exit status is  nonzero,  any
  output  is ignored and the original file is used.  For compatibil-
  ity with previous versions of less, if LESSOPEN starts  with  only
  one vertical bar, the exit status of the preprocessor is ignored.

Use two pipe symbols for zless, so that zless'ing a compressed empty
file will give output rather than being interpreted as its compressed
form, which is typically a binary.

Thanks Mark Nudelman for pointing out this difference and the
suggested solution.

Reported by:  Matthias Meyser <meyser xenet.de>
PR:           bin/168839

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

11 years agoMFC r243320,r243474:
eadler [Sun, 16 Dec 2012 17:01:23 +0000 (17:01 +0000)]
MFC r243320,r243474:

Add 'w' flag to:

Use whitespace (spaces and tabs) as the delimiter.
Consecutive spaces and tabs count as one single field
separator.
Approved by: cperciva (implicit)

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

11 years agoMFC r227162:
eadler [Sun, 16 Dec 2012 16:59:59 +0000 (16:59 +0000)]
MFC r227162:
Add missing static keywords to cut(1)

Approved by: ed
Approved by: cperciva (implicit)

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

11 years agoMFC r236866,r236867:
eadler [Sun, 16 Dec 2012 16:55:40 +0000 (16:55 +0000)]
MFC r236866,r236867:
- Consistenly mention columns and fields
- Add -b to short error messages

Approved by: kevlo
Approved by: cperciva (implicit)

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

11 years agoMFC r244017:
eadler [Sat, 15 Dec 2012 14:36:40 +0000 (14:36 +0000)]
MFC r244017:
Sync with Library of Congress list.

Approved by: cperciva (implicit)

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

11 years agoMFC r243899:
eadler [Sat, 15 Dec 2012 14:34:32 +0000 (14:34 +0000)]
MFC r243899:
Use Bernard Baruch's full name.

The words "old than" seem to be quoted as "older than" by some sources,
so use the more likely and grammatically correct text.

PR: docs/173868
Approved by: cperciva (implicit)

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

11 years agoMFC r244027:
hselasky [Sat, 15 Dec 2012 10:30:06 +0000 (10:30 +0000)]
MFC r244027:
Add support for various Yamaha keyboards.

MFC after: 1 week
PR: usb/174254

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

11 years agoMRC r243021:
bapt [Fri, 14 Dec 2012 08:53:25 +0000 (08:53 +0000)]
MRC r243021:

return ERANGE if the buffer is too small to contain the login as documented in
the manpage

Reviewed by: cognet, kib

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

11 years agoMFC r232639
remko [Wed, 12 Dec 2012 07:22:50 +0000 (07:22 +0000)]
MFC r232639

Original commit:
Add support for the MosChip MCS9904 four serial ports
controller.

PR:  165804
Submitted by: Eugene Grosbein
MFC after: 1 week

Modified:
head/sys/dev/uart/uart_bus_pci.c

Modified: head/sys/dev/uart/uart_bus_pci.c
==============================================================================
--- head/sys/dev/uart/uart_bus_pci.c Wed Mar 7 06:25:17 2012 (r232638)
+++ head/sys/dev/uart/uart_bus_pci.c Wed Mar 7 06:42:21 2012 (r232639)
@@ -126,6 +126,8 @@ static struct pci_id pci_ns8250_ids[] =
"MosChip MCS9900 PCIe to Peripheral Controller", 0x10 },
{ 0x9710, 0x9901, 0xa000, 0x1000,
"MosChip MCS9901 PCIe to Peripheral Controller", 0x10 },
+{ 0x9710, 0x9904, 0xa000, 0x1000,
+ "MosChip MCS9904 PCIe to Peripheral Controller", 0x10 },
{ 0xdeaf, 0x9051, 0xffff, 0, "Middle Digital PC Weasel Serial Port", 0x10 },
{ 0xffff, 0, 0xffff, 0, NULL, 0, 0}
};

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

11 years agoMFC r243904:
jimharris [Wed, 12 Dec 2012 00:39:32 +0000 (00:39 +0000)]
MFC r243904:

Don't call bus_dmamap_load in CAM_DIR_NONE case, since there is nothing
to map, and technically this isn't allowed.

Functionally, it works OK (at least on x86) to call bus_dmamap_load with
a NULL data pointer and zero length, so this is primarily for correctness
and consistency with other drivers.

While here, remove check in isci_io_request_construct for nseg==0.
Previously, bus_dmamap_load would pass nseg==1, even for case where
buffer is NULL and length = 0, which allowed CAM_DIR_NONE CCBs
to get processed.  This check is not correct though, and needed to be
removed both for the changes elsewhere in this patch, as well as jeff's
preliminary bus_dmamap_load_ccb patch (which uncovered all of this in
the first place).

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

11 years agoMFC r217749: Use string literal format strings to quiet clang warnings.
emaste [Tue, 11 Dec 2012 13:03:33 +0000 (13:03 +0000)]
MFC r217749: Use string literal format strings to quiet clang warnings.

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

11 years agoMFC r242943: Do not unwind past a zero PC frame.
emaste [Tue, 11 Dec 2012 12:58:27 +0000 (12:58 +0000)]
MFC r242943: Do not unwind past a zero PC frame.

  This improves GDB usability when debugging code compiled with
  optimization.

  Upstream GDB revision f0031b6d3ae9b164b3747986ab898190bd4dcf8c (prior
  to GDB's switch to GPLv3), with frame_debug_got_null_frame expanded
  inline.

  | 2004-12-12  Andrew Cagney  <cagney@gnu.org>
  |
  | * frame.c (get_prev_frame): When unwinding normal frames, check
  | that the PC isn't zero.

Sponsored by: ADARA Networks

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

11 years agoMFC r242936: Set optimized_out instead of reporting an error.
emaste [Tue, 11 Dec 2012 12:57:08 +0000 (12:57 +0000)]
MFC r242936: Set optimized_out instead of reporting an error.

  This provides a better display when debugging code compiled with
  optimization on.

  GDB git revision e8395b4efd184f745070afb953f451f99e922be7 (prior to
  GDB's switch to GPLv3), modified for the interfaces provided by
  GDB 6.1.1.

  2005-02-28  Daniel Jacobowitz  <dan@codesourcery.com>

   * dwarf2loc.c (loclist_read_variable): Set optimized_out
   instead of reporting an error.
   * valprint.c (value_check_printable): New function.
   (common_val_print): New function.  Use value_check_printable.
   (value_print): Use value_check_printable.
   * value.h (common_val_print): Add prototype.
   * c-valprint.c (c_val_print): Use common_val_print.
   * cp-valprint.c (cp_print_value_fields): Likewise.
   (cp_print_hpacc_virtual_table_entries): Likewise.
   * f-valprint.c (f_val_print): Likewise.
   * jv-valprint.c (java_value_print, java_print_value_fields):
   Likewise.
   * scm-valprint.c (scm_value_print): Likewise.
   * stack.c (print_frame_args): Likewise.
   * varobj.c (c_value_of_variable): Likewise.
   * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
   (pascal_object_print_value_fields): Likewise.  Update call to
   pascal_object_print_static_field.
   (pascal_object_print_static_field): Remove TYPE argument.  Use
   common_val_print.

Sponsored by: ADARA Networks

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

11 years agoMFC recent ZFS changes from illumos:
mm [Mon, 10 Dec 2012 14:37:18 +0000 (14:37 +0000)]
MFC recent ZFS changes from illumos:
243503, 243524, 243525, 243560, 243561

MFC r243503:
Illumos 13879:4eac7a87eff2
3329 spa_sync() spends 10-20% of its time in spa_free_sync_cb()
3330 space_seg_t should have its own kmem_cache
3331 deferred frees should happen after sync_pass 1
3335 make SYNC_PASS_* constants tunable

New loader-only tunables:
vfs.zfs.sync_pass_deferred_free
vfs.zfs.sync_pass_dont_compress
vfs.zfs.sync_pass_rewrite

References:
https://www.illumos.org/issues/3329
https://www.illumos.org/issues/3330
https://www.illumos.org/issues/3331
https://www.illumos.org/issues/3335

MFC r243524:
Import the zio nop-write improvement from Illumos. To reduce I/O,
nop-write omits overwriting data if the checksum (cryptographically
secure) of new data matches the checksum of existing data.
It also saves space if snapshots are in use.

It currently works only on datasets with enabled compression, disabled
deduplication and sha256 checksums.

IllumOS 13887:196932ec9e6a and 13888:7204b3392a58
3236 zio nop-write

References:
https://www.illumos.org/issues/3236

MFC r243525:
Add loader(8) tunable to enable/disable nopwrite functionality:
vfs.zfs.nopwrite_enabled

MFC r243560:
Introduce a new dataset aclmode setting "restricted" to protect ACL's
being destroyed or corrupted by a drive-by chmod.

illumos-gate 13889:a67716f16746
3254 add support in zfs for aclmode=restricted

MFC r243561:
Update manpage dates in zfs.8 and zpool.8

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

11 years agoMFC r243238:
eadler [Mon, 10 Dec 2012 02:44:46 +0000 (02:44 +0000)]
MFC r243238:
Standardize EXIT STATUS instructions in man pages when possible.

Approved by: cperciva (implicit)

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

11 years agoMFC r243101:
eadler [Mon, 10 Dec 2012 02:40:06 +0000 (02:40 +0000)]
MFC r243101:
Using set -x produces output on stderr instead of stdout.
It also doesn't work with make -s.
Prefer the use of builtin make features.

PR: misc/126312
Approved by: cperciva (implicit)

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

11 years agoMFC r243077:
eadler [Mon, 10 Dec 2012 02:35:20 +0000 (02:35 +0000)]
MFC r243077:
Fix error code if file isn't readable.

Approved by: cperciva (implicit)

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

11 years agoMFC r243084:
eadler [Mon, 10 Dec 2012 02:33:16 +0000 (02:33 +0000)]
MFC r243084:
Add support for a -q flag.  While here make the custom argument parsing
use getopt instead of hacking on it more.  This change also fixes the
method of silencing the compiler warning about gfn being used
uninitialized.

Approved by: cperciva (implicit)

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

11 years agoMFC r240885:
mav [Sat, 8 Dec 2012 07:34:57 +0000 (07:34 +0000)]
MFC r240885:
Document ipv6 hook, present there for ages.

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

11 years agoMFC r243893:
eadler [Sat, 8 Dec 2012 00:28:16 +0000 (00:28 +0000)]
MFC r243893:
Remove hack to emulate effective uid and just use the EUID's name in the
first place.  I was unaware of this option when originally committing
this change.

I accidently merged this to only one directory last time :(

Approved by: cperciva (implicit)

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

11 years agoMFC r243893:
eadler [Sat, 8 Dec 2012 00:25:51 +0000 (00:25 +0000)]
MFC r243893:
Remove hack to emulate effective uid and just use the EUID's name in the
first place.  I was unaware of this option when originally committing
this change.

Approved by: cperciva (implicit)

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

11 years agoFix merge of r240605 (done in r243684).
melifaro [Thu, 6 Dec 2012 19:43:48 +0000 (19:43 +0000)]
Fix merge of r240605 (done in r243684).

Spotted by: Terry Kennedy<TERRY@tmk.com>

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

11 years agoMFC r239007:
mav [Thu, 6 Dec 2012 18:41:53 +0000 (18:41 +0000)]
MFC r239007:
Remove duplicate check.

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

11 years agoEarly MFC of portions of r243752 adding an auditdistd user to stable/8
rwatson [Thu, 6 Dec 2012 11:54:25 +0000 (11:54 +0000)]
Early MFC of portions of r243752 adding an auditdistd user to stable/8
in order to ease future upgrades; the remainder of r243752 is left for
a future MFC of the OpenBSM upgrade:

  Merge a number of changes required to hook up OpenBSM 1.2-alpha2's
  auditdistd (distributed audit daemon) to the build:

  - Manual cross references
  - Makefile for auditdistd
  - rc.d script, rc.conf entrie
  - New group and user for auditdistd; associated aliases, etc.

  The audit trail distribution daemon provides reliable,
  cryptographically protected (and sandboxed) delivery of audit tails
  from live clients to audit server hosts in order to both allow
  centralised analysis, and improve resilience in the event of client
  compromises: clients are not permitted to change trail contents
  after submission.

  Submitted by:   pjd
  Sponsored by:   The FreeBSD Foundation (auditdistd)

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

11 years agoMFC r242511: Print a newline after the error message.
jh [Thu, 6 Dec 2012 08:36:30 +0000 (08:36 +0000)]
MFC r242511: Print a newline after the error message.

PR: bin/168447

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

11 years agoMFC r242681 (ambrisko):
delphij [Mon, 3 Dec 2012 18:47:25 +0000 (18:47 +0000)]
MFC r242681 (ambrisko):

- Extend the prior commit to use the generic SCSI command building
  function use that for JBOD and Thunderbolt disk write command.  Now
  we only have one implementation in mfi.
- Fix dumping on Thunderbolt cards.  Polled IO commands do not seem to
  be normally acknowledged by changing cmd_status to MFI_STAT_OK.
  In order to get acknowledgement of the IO is complete, the Thunderbolt
  command queue needs to be run through.  I added a flag MFI_CMD_SCSI
  to indicate this command is being polled and to complete the
  Thunderbolt wrapper and indicate the result.  This flag needs to be
  set in the JBOD case in case if that us using Thunderbolt card.
  When in the polling loop check for completed commands.
- Remove mfi_tbolt_is_ldio and just do the check when needed.
- Fix an issue when attaching of disk device happens when a device is
  already scheduled to be attached but hasn't attached.
- add a tunable to allow raw disk attachment to CAM via:
        hw.mfi.allow_cam_disk_passthrough=1
- fixup aborting of commands (AEN and LD state change).  Use a generic
  abort function and only wait the command being aborted not both.
  Thunderbolt cards don't seem to abort commands so the abort times
  out.

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

11 years agoMFC r242497:
delphij [Mon, 3 Dec 2012 18:39:29 +0000 (18:39 +0000)]
MFC r242497:

Copy code from scsi_read_write() as mfi_build_syspd_cdb() to build SCSI
command properly.  Without this change, mfi(4) always sends 10 byte READ
and WRITE commands, which will cause data corruption when device is
larger than 2^32 sectors.

PR: kern/173291
Submitted by: Steven Hartland <steven.hartland multiplay.co.uk>
Reviewed by: mav

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

11 years agoMFC r242519:
delphij [Mon, 3 Dec 2012 18:30:52 +0000 (18:30 +0000)]
MFC r242519:

Replace log(3) with flsll(3) for watchdogd(8) and drop libm dependency.

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

11 years agoMFC r235038,241906:
delphij [Mon, 3 Dec 2012 18:28:54 +0000 (18:28 +0000)]
MFC r235038,241906:

netcat from OpenBSD 5.2.

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

11 years agoMFC r242728:
delphij [Mon, 3 Dec 2012 18:20:52 +0000 (18:20 +0000)]
MFC r242728:

ICMPV6_FILTER should read ICMP6_FILTER.

Submitted by: Frédéric Perrin <frederic.perrin resel.fr>

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

11 years agoMFC r242507:
delphij [Mon, 3 Dec 2012 18:10:30 +0000 (18:10 +0000)]
MFC r242507:

Sync strlcpy with userland version.

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

11 years agoMFC r242506:
delphij [Mon, 3 Dec 2012 18:03:06 +0000 (18:03 +0000)]
MFC r242506:

Sync strlen with userland implementation.

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

11 years agoMFC r243155:
eadler [Mon, 3 Dec 2012 01:02:29 +0000 (01:02 +0000)]
MFC r243155:
Correct spelling of "lily" [0]
Correct spelling of Camellia

PR: misc/173655 [0]
Approved by: cperciva (implicit)

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

11 years agoMFC r243270: zfs_remove: assert that delete_now case is never true on FreeBSD
avg [Sat, 1 Dec 2012 19:24:27 +0000 (19:24 +0000)]
MFC r243270: zfs_remove: assert that delete_now case is never true on FreeBSD

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

11 years agoMFC r243268: zfs_remove: set VV_NOSYNC flag if a node is unlinked
avg [Sat, 1 Dec 2012 19:22:18 +0000 (19:22 +0000)]
MFC r243268: zfs_remove: set VV_NOSYNC flag if a node is unlinked

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

11 years agoMFC r243501: spa_import_rootpool: initialize ub_version before calling
avg [Sat, 1 Dec 2012 19:20:19 +0000 (19:20 +0000)]
MFC r243501: spa_import_rootpool: initialize ub_version before calling
spa_config_parse

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

11 years agoMFC r243500: spa_import_rootpool: do not call spa_history_log_version
avg [Sat, 1 Dec 2012 19:16:57 +0000 (19:16 +0000)]
MFC r243500: spa_import_rootpool: do not call spa_history_log_version

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

11 years agoMFC r243498: opensolaris compat: terminate cmn_err mesages with a new line
avg [Sat, 1 Dec 2012 19:14:48 +0000 (19:14 +0000)]
MFC r243498: opensolaris compat: terminate cmn_err mesages with a new line

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

11 years agoMFC r242575: zfs_dirlook: bailout early if directory is unlinked
avg [Sat, 1 Dec 2012 19:12:55 +0000 (19:12 +0000)]
MFC r242575: zfs_dirlook: bailout early if directory is unlinked

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

11 years agoMFC r243271,243400: vnode_if: fix locking protocol description for
avg [Sat, 1 Dec 2012 19:05:47 +0000 (19:05 +0000)]
MFC r243271,243400: vnode_if: fix locking protocol description for
lookup and cachedlookup

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

11 years agoMFC r242183:
crees [Sat, 1 Dec 2012 15:53:19 +0000 (15:53 +0000)]
MFC r242183:

Allow spaces in _chroot

Approved by: hrs

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

11 years agoMFC r243649: cyrus-sasl 2.1.26 was released. In this version, the type
ume [Sat, 1 Dec 2012 11:08:46 +0000 (11:08 +0000)]
MFC r243649: cyrus-sasl 2.1.26 was released.  In this version, the type
of callback functions was changed from "unsigned long" to "size_t".

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

11 years agoMerge ZFS feature flags support and related bugfixes:
mm [Fri, 30 Nov 2012 22:38:42 +0000 (22:38 +0000)]
Merge ZFS feature flags support and related bugfixes:
236884, 237001, 237119, 237458, 237972, 238113, 238391, 238422, 238926,
238950, 238951, 239389, 239394, 239620, 239774, 239953, 239958, 239967,
239968, 240063, 240133, 240153, 240303, 240345, 240415, 240955, 241655,
243014, 243505, 243506

MFC r236884:
Introduce "feature flags" for ZFS pools (bump SPA version to 5000).
Add first feature "com.delphix:async_destroy" (asynchronous destroy
of ZFS datasets).
Implement features support in ZFS boot code.

Illumos revisions merged:
13700:2889e2596bd6
13701:1949b688d5fb
2619 asynchronous destruction of ZFS file systems
2747 SPA versioning with zfs feature flags

References:
  https://www.illumos.org/issues/2619
  https://www.illumos.org/issues/2747

MFC r237001:
Fix ZFS boot with pre-features pools (version <= 28) broken in r236884

MFC r237119 [1]:
Do not remount ZFS dataset if changing canmount property to "on" and
dataset is already mounted.

MFC r237458:
Import Illumos revision 13736:9f1d48e1681f
2901 ZFS receive fails for exabyte sparse files

References:
  https://www.illumos.org/issues/2901

MFC r237972:
Expose scrub and resilver tunables.
This allows the user to tune the priority trade-off between scrub/resilver
and other ZFS I/O.

MFC r238113 (pjd):
vdev_io_done stage is not used for ioctls.

MFC r238391:
Change behavior introduced in r237119 to vendor solution

References:
  https://www.illumos.org/issues/2883

MFC r238422:
Merge illumos commit 13749:df4cd82e2b60

1796 "ZFS HOLD" should not be used when doing "ZFS SEND" froma read-only pool
2871 support for __ZFS_POOL_RESTRICT used by ZFS test suite
2903 zfs destroy -d does not work
2957 zfs destroy -R/r sometimes fails when removing defer-destroyed snapshot

References:
  https://www.illumos.org/issues/1796
  https://www.illumos.org/issues/2871
  https://www.illumos.org/issues/2903
  https://www.illumos.org/issues/2957

MFC r238926:
Partial MFV (illumos-gate 13753:2aba784c276b)
2762 zpool command should have better support for feature flags

References:
  https://www.illumos.org/issues/2762

MFC r238950:
Fix reporting of root pool upgrade notice.

MFC r238951:
Fix wrong indent according to style(9)

MFC r239389:
Backport fix for vendor issue #3085
3085 zfs diff panics, then panics in a loop on booting

References:
  https://www.illumos.org/issues/3085

MFC r239394:
Update zfs(8) manpage with illumos version of "zfs diff"

Illumos issue:
  2399 zfs manual page does not document use of "zfs diff"

References:
  https://www.illumos.org/issues/2399

MFC r239620 [2]:
Merge recent vendor changes:
3086 unnecessarily setting DS_FLAG_INCONSISTENT on async destroyed datasets
3090 vdev_reopen() during reguid causes vdev to be treated as corrupt
3102 vdev_uberblock_load() and vdev_validate() may read the wrong label

Referenes:
  https://www.illumos.org/issues/3086
  https://www.illumos.org/issues/3090
  https://www.illumos.org/issues/3102

MFC r239774:
Merge recent vendor changes:
3100 zvol rename fails with EBUSY when dirty
3104 eliminate empty bpobjs
3120 zinject hangs in zfsdev_ioctl() due to uninitialized zc

References:
  https://www.illumos.org/issues/3100
  https://www.illumos.org/issues/3104
  https://www.illumos.org/issues/3120

MFC r239953 (joel):
Mdoc fixes.

MFC r239958 (joel):
Minor mdoc fixes.

MFC r239967 (joel):
Mdoc fixes.

MFC r239968 (joel):
Remove trailing whitespace.

MFC r240063 (gjb):
Add myself to copyright sections, per CDDL license.

MFC r240133:
Merge recent vendor changes and sync code:
1862 incremental zfs receive fails for sparse file > 8PB
3112 ztest does not honor ZFS_DEBUG
3122 zfs destroy filesystem should prefetch blocks
3129 'zpool reopen' restarts resilvers
3130 ztest failure: Assertion failed:
       0 == dmu_objset_destroy(name, B_FALSE) (0x0 == 0x10)

References:
  https://www.illumos.org/issues/1862
  https://www.illumos.org/issues/3112
  https://www.illumos.org/issues/3122
  https://www.illumos.org/issues/3129
  https://www.illumos.org/issues/3130

MFC r240153 (gjb) [3]:
Typo fix and minor word swap.

MFC r240303:
Add assfail() and assfail3() to the opensolaris module.
Remove obsoleted intermediate cddl/compat/opensolaris/sys/debug.h.

MFC r240345 (avg):
zfs: fix sa_modify_attrs handling of variable-sized attributes

- skip length_idx index for a replaced variable-sized attribute
- skip length_idx index for a removed variable-sized attribute
- also re-arranged code to make sure that length_idx is always
  incremented for variable-sized attributes
- additionally add an assertion that the number of actually produced
  attributes is the same as the expected number of resulting
  attributes

MFC r240415:
Merge recent zfs vendor changes, sync code and adjust userland DEBUG.

Illumos issued covered:
1884 Empty "used" field for zfs *space commands
3006 VERIFY[S,U,P] and ASSERT[S,U,P] frequently check if first argument
     is zero
3028 zfs {group,user}space -n prints (null) instead of numeric GID/UID
3048 zfs {user,group}space [-s|-S] is broken
3049 zfs {user,group}space -t doesn't really filter the results
3060 zfs {user,group}space -H output isn't tab-delimited
3061 zfs {user,group}space -o doesn't use specified fields order
3064 usr/src/cmd/zpool/zpool_main.c misspells "successful"
3093 zfs {user,group}space's -i is noop
3098 zfs userspace/groupspace fail without saying why when run as non-root

References:
  https://www.illumos.org/issues/ + [issue_id]

MFC r240955 (partial):
Merge recent vendor changes in ZFS.

Illumos issued covered:
3139 zdb dies when it tries to determine path of unlinked file
3189 kernel panic in ZFS test suite during hotspare_onoffline_004_neg
3208 moving zpool cross-endian results in incorrect user/group accounting

References:
  https://www.illumos.org/issues/ + [issue_id]

MFC r241655:
Add missing initialization for do_prefix.
Corrects porting error in r238391

Vendor issue and changeset reference:
2883 changing "canmount" property to "on" should not always remount dataset
https://www.illumos.org/issues/2883
Changeset 13743:95aba6e49b9f

MFC r243014:
Move zpool-features manual page from section 5 to section 7
and fix references

Reported by: pluknet

MFC r243505:
Illumos 13886:e3261d03efbf

3349 zpool upgrade -V bumps the on disk version number, but leaves
     the in core version

References:
  https://www.illumos.org/issues/3349

MFC r243506:
zfs sha256 checksum is missing in zfs.8 manpage

PR: kern/167905 [1], kern/170912 [2], kern/170914 [2], doc/171356 [3]

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

11 years agoMFC r243082:
eadler [Fri, 30 Nov 2012 03:48:45 +0000 (03:48 +0000)]
MFC r243082:
Fix memory leak in umount.c

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

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

11 years agoMFC r243078:
eadler [Fri, 30 Nov 2012 03:38:01 +0000 (03:38 +0000)]
MFC r243078:
Add deviceid to the disk output on boot to help debugging.

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

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

11 years agoMerge r226396, r240605
melifaro [Fri, 30 Nov 2012 00:13:31 +0000 (00:13 +0000)]
Merge r226396, r240605

Make systat(1) accept fractional number of seconds.
Make old alarm(3)-based code use select(2).

Ability to specify small intervals can be very handy while
debugging traffic microbursts.

Note that locale-aware strtod(3) is used to parse delay which
is slightly different from ping.

Fix whitespace inconsistencies in systat(1).

Approved by: ed (r226396)

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

11 years agoMFC r242323, r242328:
mav [Thu, 29 Nov 2012 18:23:21 +0000 (18:23 +0000)]
MFC r242323, r242328:
Add basic BIO_DELETE support to GEOM RAID class for all RAID levels.

If at least one subdisk in the volume supports it, BIO_DELETE requests
will be propagated down.  Unfortunatelly, for RAID levels with redundancy
unmapped blocks will be mapped back during first rebuild/resync process.

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

11 years agoMFC r243336:
ae [Thu, 29 Nov 2012 17:41:19 +0000 (17:41 +0000)]
MFC r243336:
  Remove opt_inet.h, it isn't required here.

MFC r243337:
  Connect ip6_mroute kernel module to the build.

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

11 years agoMFC r243380:
hselasky [Wed, 28 Nov 2012 18:15:38 +0000 (18:15 +0000)]
MFC r243380:
Fix uplcom clear stall logic for PL2303HX.

Submitted by: Mark Johnston

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

11 years agoMFC r238079, r238493, r238717 and r242906:
hselasky [Wed, 28 Nov 2012 17:55:18 +0000 (17:55 +0000)]
MFC r238079, r238493, r238717 and r242906:
Add new USB ID's.

PR: usb/169789, usb/173503

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

11 years agoMFC r241406, r241502, r241884.
melifaro [Tue, 27 Nov 2012 20:16:37 +0000 (20:16 +0000)]
MFC r241406, r241502, r241884.

Do not check if found IPv4 rte is dynamic if net.inet.icmp.drop_redirect is
enabled. This eliminates one mtx_lock() per each routing lookup thus improving
performance in several cases (routing to directly connected interface or routing
to default gateway).

Icmp redirects should not be used to provide routing direction nowadays, even
for end hosts. Routers should not use them too (and this is explicitly restricted
in IPv6, see RFC 4861, clause 8.2).

Current commit changes rnh_machaddr function to 'stock' rn_match (and back) for every
AF_INET routing table in given VNET instance on drop_redirect sysctl change.

Eliminate code checking if found IPv6 rte is dynamic. IPv6 redirects
are using (different) ND-based approach described in RFC 4861. This change
is similar to r241406 which conditionally skips the same check in IPv4.

Cleanup documentation: cloning route support has been removed in r186119.

This change is part of bigger patch eliminating rte locking.

Sponsored by: Yandex LLC

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

11 years agoMFC r241708: Explicitly specify 'np' so that getty(8) does not
peterj [Tue, 27 Nov 2012 19:33:25 +0000 (19:33 +0000)]
MFC r241708:  Explicitly specify 'np' so that getty(8) does not
simulate even parity on local.9600.

PR: 76226
Approved by: jhb (mentor)

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

11 years agoMFC r238991:
jh [Tue, 27 Nov 2012 16:37:36 +0000 (16:37 +0000)]
MFC r238991:

Disallow sectorsize larger than MAXPHYS and mediasize smaller than
sectorsize.

PR: 169947

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

11 years agoMFC r243234:
mjg [Tue, 27 Nov 2012 01:35:29 +0000 (01:35 +0000)]
MFC r243234:

Fix possible fp reference leak in posix_openpt

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

11 years agoMFC r243007:
mjg [Tue, 27 Nov 2012 01:30:12 +0000 (01:30 +0000)]
MFC r243007:
enterpgrp: get rid of pgrp2 variable and use KASSERT directly on pgfind result.

pgrp2 was used only for debugging, but pgrp2 = pgfind(..) was present in compiled code

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

11 years agoMFC r242546:
wblock [Mon, 26 Nov 2012 18:11:41 +0000 (18:11 +0000)]
MFC r242546:

Add an example showing the use of gnop(8) to skip over header data.

PR: kern/145999
Reviewed by: mjg

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

11 years agoMFC r238943:
mav [Mon, 26 Nov 2012 16:19:27 +0000 (16:19 +0000)]
MFC r238943:
Add several performance optimizations to acpi_cpu_idle().

For C1 and C2 states use cpu_ticks() to measure sleep time instead of much
slower ACPI timer. We can't do it for C3, as TSC may stop there. But it is
less important there as wake up latency is high any way.

For C1 and C2 states do not check/clear bus mastering activity status, as
it is important only for C3. As side effect it can make CPU enter C2 instead
of C3 if last BM activity was two sleeps back (unlike one before), but
that may be even good because of collecting more statistics. Premature BM
wakeup from C3, entered because of overestimation, can easily be worse then
entering C2 from both performance and power consumption points of view.

Together on dual Xeon E5645 system on sequential 512 bytes read test this
change makes cpu_idle_acpi() as fast as simplest cpu_idle_hlt() and only
few percents slower then cpu_idle_mwait(), while deeper states are still
actively used during idle periods.

To help with diagnostics, add C-state type into dev.cpu.X.cx_supported.

PR:             kern/170021

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

11 years agoMFC r243072:
eadler [Mon, 26 Nov 2012 05:13:57 +0000 (05:13 +0000)]
MFC r243072:
Follow the behavior as specified in POSIX:

if (exists AND (NOT f_option) AND
((not_writable AND input_is_terminal) OR i_option))
prompt

in particular, add the test for input_is_terminal

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

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