freebsd.git
9 years agoRevert r268984:
pfg [Tue, 22 Jul 2014 18:37:59 +0000 (18:37 +0000)]
Revert r268984:
Check for __SAPP flag before calling sflush.   This avoids
performance degradation compared to the previous approach.

Submitted by: ache
MFC after: 2 weeks

9 years agoIn r264504, we prevented doing I/O for more than MAXPHYS by making
marcel [Tue, 22 Jul 2014 17:30:05 +0000 (17:30 +0000)]
In r264504, we prevented doing I/O for more than MAXPHYS by making
the assumption that consumers would respect bio_completed and/or
bio_resid to detect short reads. This assumption proved false and
file corruption was the result.
Create as many bios as we need to satisfy the original request.
Check the cached chunk every time we need to do I/O to increase the
hit rate.

Obtained from: junipre Networks, Inc.
MFC after: 1 week

9 years agoMostly cosmetic cleanups.
pfg [Tue, 22 Jul 2014 16:39:11 +0000 (16:39 +0000)]
Mostly cosmetic cleanups.

In fputs() avoid implcit casting on iov.iov_len.

MFC after: 3 days

9 years agoftello: return 1 when seeking offset on an append stream.
pfg [Tue, 22 Jul 2014 16:19:01 +0000 (16:19 +0000)]
ftello: return 1 when seeking offset on an append stream.

Obtained from: Apple Inc. (Libc 997.90.3)
Phabric: D442
MFC after: 2 weeks

9 years agorewind: always clear error indicator.
pfg [Tue, 22 Jul 2014 16:10:56 +0000 (16:10 +0000)]
rewind: always clear error indicator.

Required by POSIX:
http://pubs.opengroup.org/onlinepubs/009695399/functions/rewind.html

Obtained from: Apple Inc. (Libc 997.90.3)
MFC after: 1 week

9 years agoDon't pass null kmdp to preload_search_info
emaste [Tue, 22 Jul 2014 13:58:33 +0000 (13:58 +0000)]
Don't pass null kmdp to preload_search_info

On Xen PVH guests kmdp == NULL.

Submitted by: royger
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove #ifdef-s to reduce difference to upstream.
ray [Tue, 22 Jul 2014 08:52:49 +0000 (08:52 +0000)]
Remove #ifdef-s to reduce difference to upstream.

Pointed by: kib

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoCorrect typo introduced with r268855.
delphij [Tue, 22 Jul 2014 08:37:01 +0000 (08:37 +0000)]
Correct typo introduced with r268855.

MFC after: 10 days
X-MFC with: r268855

9 years agoDon't save entropy inside jails.
delphij [Tue, 22 Jul 2014 06:40:27 +0000 (06:40 +0000)]
Don't save entropy inside jails.

As of r126744, we no longer feed the entropy device in jails upon
start, and collecting them is no longer useful.

PR: conf/126744
Submitted by: Eugene Grosbein <eugen grosbein net> (with minor changes)
MFC after: 1 week
Approved by: so (des)

9 years agocopyin/copyout should return 0 if they are truly emulating copyin/copyout behavior.
sbruno [Tue, 22 Jul 2014 04:47:19 +0000 (04:47 +0000)]
copyin/copyout should return 0 if they are truly emulating copyin/copyout behavior.

remove stray %s in printf

rewrite printf to display 64bit type without warning.

9 years agoEnable Freescale i.MX I2C driver for i.MX6.
br [Tue, 22 Jul 2014 04:39:32 +0000 (04:39 +0000)]
Enable Freescale i.MX I2C driver for i.MX6.

9 years agoRemove boot1.efi during clean target.
sbruno [Tue, 22 Jul 2014 04:38:28 +0000 (04:38 +0000)]
Remove boot1.efi during clean target.

9 years agoSupress clang warning for FreeBSD printf %b and %D formats
sbruno [Tue, 22 Jul 2014 04:37:47 +0000 (04:37 +0000)]
Supress clang warning for FreeBSD printf %b and %D formats

MFC after: 2 weeks

9 years agoRename i.MX I2C driver file.
br [Tue, 22 Jul 2014 03:59:14 +0000 (03:59 +0000)]
Rename i.MX I2C driver file.

9 years agoSimplify r267600, there's no need to distinguish between allocated and
np [Tue, 22 Jul 2014 02:02:39 +0000 (02:02 +0000)]
Simplify r267600, there's no need to distinguish between allocated and
inlined mbufs.

MFC after: 1 week

9 years agobsd.lib.mk does not add OBJS etc to CLEANFILES so does not automatically
sjg [Tue, 22 Jul 2014 00:42:55 +0000 (00:42 +0000)]
bsd.lib.mk does not add OBJS etc to CLEANFILES so does not automatically
get them flagged as .NOPATH.  This hurts people who don't use obj dirs.
Since its clean target seprate rm's for things, use NOPATH_FILES as list
to collect things that need .NOPATH.

bsd.obj.mk will add CLEANFILES to NOPATH_FILES and do the deed if needed.

Reviewed by: sbruno

9 years agoMerge serf-1.3.6
peter [Mon, 21 Jul 2014 22:10:29 +0000 (22:10 +0000)]
Merge serf-1.3.6
+  Revert r2319 from serf 1.3.5: this change was making serf call handle_response
+    multiple times in case of an error response, leading to unexpected behavior.

9 years agoRun mtree for BSD.tests.dist during make xdev-install, if the tests are
dim [Mon, 21 Jul 2014 21:26:10 +0000 (21:26 +0000)]
Run mtree for BSD.tests.dist during make xdev-install, if the tests are
enabled (which they are in the default configuration).  Otherwise, it
will fail because ${XDDESTDIR}/usr/include/atf-c does not exist.

MFC after: 3 days

9 years agoMerge change from upstream linux kernel submitted by OpenBSD:
sbruno [Mon, 21 Jul 2014 19:33:08 +0000 (19:33 +0000)]
Merge change from upstream linux kernel submitted by OpenBSD:

drm/radeon: fix-up some float to fixed conversion thinkos

Spotted by Brad Smith when porting to OpenBSD.
Noticed-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
ref: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1cd73ff7

Remove #ifdef DUMBBELL_WIP in favor of upstream fix.

Phabric: https://phabric.freebsd.org/D423
Reviewed by: dumbbell, jkim
MFC after: 2 weeks

9 years agoRemove redundant return statement after errx
emaste [Mon, 21 Jul 2014 17:43:37 +0000 (17:43 +0000)]
Remove redundant return statement after errx

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoUse the standard way of printing the usage string
emaste [Mon, 21 Jul 2014 17:18:00 +0000 (17:18 +0000)]
Use the standard way of printing the usage string

Sponsored by: The FreeBSD Foundation

9 years agoHide syscons-specific workaround under DEV_SC
emaste [Mon, 21 Jul 2014 16:38:05 +0000 (16:38 +0000)]
Hide syscons-specific workaround under DEV_SC

This change is a bit ugly, but so is the coupling between the i915
driver and syscons.  It isn't worth developing a more elegant solution
only to support the legacy syscons console.

9 years agoFix hdestroy() compliance issue.
pfg [Mon, 21 Jul 2014 15:44:59 +0000 (15:44 +0000)]
Fix hdestroy() compliance issue.

The hcreate(3) implementation and related functions we inherited
from NetBSD used to free() the key value, something that is not
supported by the standard implementation.

This would cause a segmentation fault when attempting to run
the examples from the opengroup and linux manpages.  NetBSD
has added non-standard calls to provide the previous
behaviour but hdestroy is not very commonly used so at this
time it seems excessive to bring those to FreeBSD.

Bump the __FreeBSD_version as this is an ABI change.

Reference:
http://bugs.dragonflybsd.org/issues/1398

MFC after: 2 weeks

9 years agoUpdate license.
pfg [Mon, 21 Jul 2014 15:26:52 +0000 (15:26 +0000)]
Update license.

NetBSD has removed the advertisement clause from this file.

Obtained from: NetBSD (CVS rev. 1,8)

9 years agoAdd re-entrant versions of the hash functions based on the GNU api.
pfg [Mon, 21 Jul 2014 15:22:48 +0000 (15:22 +0000)]
Add re-entrant versions of the hash functions based on the GNU api.

While testing this I found a conformance issue in hdestroy()
that will be fixed in a subsequent commit.

Obtained from: NetBSD (hcreate.c, CVS Rev. 1.7)

9 years agoFixed fallout from previous change.
pluknet [Mon, 21 Jul 2014 08:47:54 +0000 (08:47 +0000)]
Fixed fallout from previous change.

9 years ago[mdoc] cleanup
pluknet [Mon, 21 Jul 2014 08:42:35 +0000 (08:42 +0000)]
[mdoc] cleanup

9 years agoAdd the PCBGROUPS manpage.
adrian [Mon, 21 Jul 2014 04:48:02 +0000 (04:48 +0000)]
Add the PCBGROUPS manpage.

Thanks to wblock for helping me with this manpage.

9 years agoCorrect spelling errors in ctld.8. While here, correct similar errors
wblock [Sun, 20 Jul 2014 22:13:51 +0000 (22:13 +0000)]
Correct spelling errors in ctld.8.  While here, correct similar errors
in ctl.conf.5 and fix a couple of contractions.

PR: 191984
Submitted by: olgeni
MFC after: 1 week

9 years agoAdjust errno on failed prepwrite.
pfg [Sun, 20 Jul 2014 21:24:29 +0000 (21:24 +0000)]
Adjust errno on failed prepwrite.

Obtained from: Apple Inc. (Libc 997.90.3)
Phabric: D442
MFC after: 1 week

9 years agoAdd new device ID.
hselasky [Sun, 20 Jul 2014 21:02:35 +0000 (21:02 +0000)]
Add new device ID.

MFC after: 1 week
PR: 191959

9 years agoConst-ify a character string.
pfg [Sun, 20 Jul 2014 20:29:28 +0000 (20:29 +0000)]
Const-ify a character string.

Obtained from: Apple Inc. (Libc 997.90.3)
MFC after: 3 days

9 years agosh: Allow arbitrarily large numbers in break and continue.
jilles [Sun, 20 Jul 2014 20:29:09 +0000 (20:29 +0000)]
sh: Allow arbitrarily large numbers in break and continue.

The argument is capped to loopnest, so strtol()'s [ERANGE] can be ignored.

9 years agoUse a correct errno in freopen.
pfg [Sun, 20 Jul 2014 20:14:15 +0000 (20:14 +0000)]
Use a correct errno in freopen.

Use EBADF instead of EINVAL when working around incorrect O_ACCMODE.

Phabric: D442
Obtained from: Apple Inc. (Libc 997.90.3)
Reviewed by: jilles
MFC after: 1 week

9 years agoIn "procstat -v" (VM), spell out 'FL' to 'FLAG' since there are two extra
rwatson [Sun, 20 Jul 2014 20:11:34 +0000 (20:11 +0000)]
In "procstat -v" (VM), spell out 'FL' to 'FLAG' since there are two extra
columns available anyway.  Also left align as we tend to do for flags
fields, although you can't see that currently as the string fully fills
that available columns.

MFC after: 3 days
Sponsored by: DARPA, AFRL

9 years agoUpdate fflush(3) to return success on a read-only stream.
pfg [Sun, 20 Jul 2014 20:05:39 +0000 (20:05 +0000)]
Update fflush(3) to return success on a read-only stream.

This has small changes to what Apple uses for compliance
with SUSv3. The changes cause no secondary effects in the
gnulib tests (we pass them).

Obtained from: Apple Inc. (Libc 997.90.3 with changes)
Reviewed by: bde
Phabric: D440

9 years agoFix the build when DTrace isn't enabled.
markj [Sun, 20 Jul 2014 18:44:56 +0000 (18:44 +0000)]
Fix the build when DTrace isn't enabled.

Reported by: stefanf
X-MFC-With: r268600

9 years agoFix build without INVARIANTS defined by getting rid of unused variable 'exc'.
neel [Sun, 20 Jul 2014 16:34:35 +0000 (16:34 +0000)]
Fix build without INVARIANTS defined by getting rid of unused variable 'exc'.

Reported by: adrian, stefanf

9 years agoOlder versions of flex (like the one used in FreeBSD <= 9) expect the
des [Sun, 20 Jul 2014 14:49:24 +0000 (14:49 +0000)]
Older versions of flex (like the one used in FreeBSD <= 9) expect the
output file name to follow the -o flag immediately, with no intervening
whitespace.

Reported by: ian@
MFC after: 1 week

9 years agosh: Remove prefix() function. Use strncmp() instead.
jilles [Sun, 20 Jul 2014 12:06:52 +0000 (12:06 +0000)]
sh: Remove prefix() function. Use strncmp() instead.

9 years agoAdd the UDP hash -> RSS mbuf hash type for the ixgbe(4) driver.
adrian [Sun, 20 Jul 2014 08:43:53 +0000 (08:43 +0000)]
Add the UDP hash -> RSS mbuf hash type for the ixgbe(4) driver.

9 years agoTeach ixgbe(4) about rss_gethashconfig().
adrian [Sun, 20 Jul 2014 07:45:48 +0000 (07:45 +0000)]
Teach ixgbe(4) about rss_gethashconfig().

If RSS is enabled, ixgbe(4) will query the RSS API for the types of hashes
which should be used.  It'll then only enable hashes that are exposed via
the RSS layer.

This way it won't try to do things like enable UDP hashing if RSS explicitly
states that it isn't supported in lookups.

Tested:

* 82599EB ixgbe(4) NIC

9 years agoDisable the ixgbe(4) UDP 4-tuple hashing for the time being.
adrian [Sun, 20 Jul 2014 07:43:41 +0000 (07:43 +0000)]
Disable the ixgbe(4) UDP 4-tuple hashing for the time being.

A mix of fragmented and non-fragmented UDP in a single stream will end up
being hashed differently, resulting in out-of-order behaviour in the receive
path.

This was done in the linux e1000 driver in 2011.

Discussed with: jfv

9 years agoWhen it's time to do 4-tuple UDP IPv6 hashing, make sure this is a known
adrian [Sun, 20 Jul 2014 07:39:54 +0000 (07:39 +0000)]
When it's time to do 4-tuple UDP IPv6 hashing, make sure this is a known
type.

9 years agoMake the PCBGROUPS code aware of IPv4 UDP 4-tuple.
adrian [Sun, 20 Jul 2014 07:38:38 +0000 (07:38 +0000)]
Make the PCBGROUPS code aware of IPv4 UDP 4-tuple.

9 years agoAdd hash awareness of the IPv4 and IPv6 UDP 4-tuple.
adrian [Sun, 20 Jul 2014 07:37:47 +0000 (07:37 +0000)]
Add hash awareness of the IPv4 and IPv6 UDP 4-tuple.

Note: it would be nice if the supported hash check would be used here!

9 years agoImplement rss_gethashconfig() - return the currently supported hash methods
adrian [Sun, 20 Jul 2014 07:36:59 +0000 (07:36 +0000)]
Implement rss_gethashconfig() - return the currently supported hash methods
by the stack.

Right now the stack isn't really setup for RSS with 4-tuple UDP hashing
for either IPv4 and IPv6.

The specifics:

* The UDP init path udp_init() and udplite_init() specify the hash as
  2-tuple, so the PCBGROUPS code only tries a 2-tuple check;
* The PCBGROUPS and RSS code doesn't know about the UDP hash types
  just yet, so they're never treated as valid hashes.
* For correctness, 4-tuple can't be enabled in the general case because
  UDP datagrams can be more fragmented than IP datagrams may be.

Strictly speaking, TCP datagrams may also be fragmented and this could
cause issues with PCBGROUPS/RSS until the IP defragment path grows some
code to re-calculate the RSS hash.

I'll follow this commit up with awareness of the UDP 4-tuple for those
who wish to configure it, but for now it'll stay disabled.

No drivers (yet) know to use this function when RSS is enabled.

9 years agoUpdate the comment to be more concise.
adrian [Sun, 20 Jul 2014 07:31:55 +0000 (07:31 +0000)]
Update the comment to be more concise.

9 years agoCorrectly program the RSS redirection table entries.
adrian [Sun, 20 Jul 2014 04:11:18 +0000 (04:11 +0000)]
Correctly program the RSS redirection table entries.

Without this, the RSS bucket assignments aren't correct - they're
DCBA instead of ABCD in each DWORD.

Tested: 82599EB ixgbe(4), TCP and UDP RSS

9 years agoFix allocation of 128MB extended memory region, broken since some careless
nwhitehorn [Sun, 20 Jul 2014 00:08:50 +0000 (00:08 +0000)]
Fix allocation of 128MB extended memory region, broken since some careless
modifications in December.

MFC after: 3 days

9 years agoEnable X11 via xf86-video-scfb on the Playstation 3. This commit made from
nwhitehorn [Sat, 19 Jul 2014 23:39:17 +0000 (23:39 +0000)]
Enable X11 via xf86-video-scfb on the Playstation 3. This commit made from
an xterm running for the first time on said Playstation.

9 years agoAdd dl_unwind_find_exidx() for ARM EABI, required for C++ exception
ian [Sat, 19 Jul 2014 22:13:27 +0000 (22:13 +0000)]
Add dl_unwind_find_exidx() for ARM EABI, required for C++ exception
handling.  For statically linked apps this uses the __exidx_start/end
symbols set up by the linker.  For dynamically linked apps it finds the
shared object that contains the given address and returns the location and
size of the exidx section in that shared object.

The dl_unwind_find_exidx() name is used by other BSD projects and Android,
and is mentioned in clang 3.5 comments as "the BSD interface" for finding
exidx data.  GCC (in libgcc_s) expects the exact same API and functionality
to be provided by a function named __gnu_Unwind_Find_exidx(), so we provide
that with an alias ("strong reference").

Reviewed by: kib@
MFC after: 1 week

9 years agoAdd support for the "account" facility.
des [Sat, 19 Jul 2014 21:04:21 +0000 (21:04 +0000)]
Add support for the "account" facility.

PR: 115164
MFC after: 1 week

9 years agoHandle nested exceptions in bhyve.
neel [Sat, 19 Jul 2014 20:59:08 +0000 (20:59 +0000)]
Handle nested exceptions in bhyve.

A nested exception condition arises when a second exception is triggered while
delivering the first exception. Most nested exceptions can be handled serially
but some are converted into a double fault. If an exception is generated during
delivery of a double fault then the virtual machine shuts down as a result of
a triple fault.

vm_exit_intinfo() is used to record that a VM-exit happened while an event was
being delivered through the IDT. If an exception is triggered while handling
the VM-exit it will be treated like a nested exception.

vm_entry_intinfo() is used by processor-specific code to get the event to be
injected into the guest on the next VM-entry. This function is responsible for
deciding the disposition of nested exceptions.

9 years agoCheck if the specified group is the user's primary group before
des [Sat, 19 Jul 2014 20:55:13 +0000 (20:55 +0000)]
Check if the specified group is the user's primary group before
iterating over the (possibly empty) list of members.  Otherwise, we
get a false negative when the target group has no members listed in
/etc/group.  This went mostly unnoticed because root is explicitly
listed as a member of wheel, so the bug is never triggered in the most
common use case, which is su(8).

PR: 109416
MFC after: 1 week

9 years agoClean up the libunbound build to avoid accidentally regenerating the
des [Sat, 19 Jul 2014 18:38:48 +0000 (18:38 +0000)]
Clean up the libunbound build to avoid accidentally regenerating the
configuration lexer and parser during buildworld.  Instead of being
included in the source as it is in the upstream distribution, the code is
now always generated (in ${.OBJDIR}) at build time.

PR: 190739
MFC after: 1 week

9 years agoAllow mappings of memory not previously direct-mapped by the kernel when
nwhitehorn [Sat, 19 Jul 2014 15:11:58 +0000 (15:11 +0000)]
Allow mappings of memory not previously direct-mapped by the kernel when
calling mmap on /dev/mem and add a handler for the possible userland
machine checks that may result. Remove some pointless and wrong copy/paste
that has been in here for a decade as well.

This results in a /dev/mem with identical semantics to the x86 version.

MFC after: 1 week

9 years agoBetter align headers and data for 'procstat -f' with and without '-C'.
rwatson [Sat, 19 Jul 2014 15:09:53 +0000 (15:09 +0000)]
Better align headers and data for 'procstat -f' with and without '-C'.

MFC after: 3 days
Sponsored by: DARPA, AFRL

9 years agoClean r268867.
pfg [Sat, 19 Jul 2014 14:34:06 +0000 (14:34 +0000)]
Clean r268867.

Proposed by: bde

9 years agoUse -o (output to file) instead of -t (print to stdout) and a redirect.
des [Sat, 19 Jul 2014 14:26:04 +0000 (14:26 +0000)]
Use -o (output to file) instead of -t (print to stdout) and a redirect.

MFC after: 1 week

9 years agoMerge libucl 20140718 (fixes a bug in the parser)
bapt [Sat, 19 Jul 2014 14:10:31 +0000 (14:10 +0000)]
Merge libucl 20140718 (fixes a bug in the parser)

9 years agoImport libucl 20140718 (fixes a bug in the parser)
bapt [Sat, 19 Jul 2014 14:07:49 +0000 (14:07 +0000)]
Import libucl 20140718 (fixes a bug in the parser)

9 years agosh: Deduplicate some code in ulimit builtin.
jilles [Sat, 19 Jul 2014 14:06:23 +0000 (14:06 +0000)]
sh: Deduplicate some code in ulimit builtin.

9 years agoUse a C wrapper for trap() instead of checking and calling the DTrace trap
markj [Sat, 19 Jul 2014 02:27:31 +0000 (02:27 +0000)]
Use a C wrapper for trap() instead of checking and calling the DTrace trap
hook in assembly.

Suggested by: kib
Reviewed by: kib (original version)
X-MFC-With: r268600

9 years agoUse unsigned optlen in getsourcefilter()
pfg [Sat, 19 Jul 2014 01:53:52 +0000 (01:53 +0000)]
Use unsigned optlen in getsourcefilter()

Sizes can not be negative and the functions that use it
expect an unsigned value anyways.

Obtained from: Apple (Libc-997.90.3)
MFC after: 1 week

9 years agor243637 changed the default number of nfsd threads created,
rmacklem [Sat, 19 Jul 2014 01:15:01 +0000 (01:15 +0000)]
r243637 changed the default number of nfsd threads created,
but the man page did not reflect this.
This is a content change.

Reported by: bde
MFC after: 2 weeks

9 years agoReduce lock contention on the z_teardown_lock under heavily cached
delphij [Sat, 19 Jul 2014 00:26:03 +0000 (00:26 +0000)]
Reduce lock contention on the z_teardown_lock under heavily cached
read workload by splitting the single teardown rrw lock into
RRM_NUM_LOCKS (17) of them.

Read acquisitions are randomly distributed among these locks based
on curthread pointer.  Write acquisitions are going to all the
locks, which for the usage of this type of lock should be rare.

Illumos issue:
    5008 lock contention (rrw_exit) while running a read only load

MFC after: 2 weeks

9 years agoDocument the need to regenerate the local_unbound configuration.
des [Sat, 19 Jul 2014 00:11:51 +0000 (00:11 +0000)]
Document the need to regenerate the local_unbound configuration.

9 years agoOops, forgot to bump manual date/copyright in r268860.
dteske [Fri, 18 Jul 2014 23:23:52 +0000 (23:23 +0000)]
Oops, forgot to bump manual date/copyright in r268860.

MFC after: 3 days
X-MFC-to: stable/10, stable/9, ports
X-MFC-with: r268860

9 years agoAdd libsbuf.so.6 to obsolete libraries since it has been bumped to .so.7
bapt [Fri, 18 Jul 2014 23:04:27 +0000 (23:04 +0000)]
Add libsbuf.so.6 to obsolete libraries since it has been bumped to .so.7

9 years agoImprove timeout(1) man page
bapt [Fri, 18 Jul 2014 22:56:59 +0000 (22:56 +0000)]
Improve timeout(1) man page

Document the exit values and the duration format
Improve wording
Pet mandoc -Tlint
Sort SEE ALSO

Phabric: https://phabric.freebsd.org/D432
Reviewed by: wblock

9 years agoMinor enhancements, bug fixes, and man-page adjustments.
dteske [Fri, 18 Jul 2014 22:44:15 +0000 (22:44 +0000)]
Minor enhancements, bug fixes, and man-page adjustments.

+ Make `sysrc -x foo' produce error status if foo is unset.
NB: Reported by lme (everything else ``while I'm at it'')
+ Remove mention of SYSRC_VERBOSE from `sysrc --help' output.
NB: False documentation leftover from an ancient precursor.
+ Make `sysrc -qc foo' work the same as `sysrc -ic foo' when foo is unset
NB: For syntax convenience (my fingers know `-q' more than `-i').
+ Update description of `-c' flag in help message/manual.
+ Update description of `-q' flag in help message/manual.
+ Make `sysrc -vc foo' work as documented in the manual
NB: Show message stating whether foo is currently set.
+ Make `sysrc -vc foo=1' work as documented in the manual
NB: Show message stating how value of foo would be changed (if at all).
+ Remove odd usage of parentheses in `-R dir' section of manual.
+ Clarify syntax section of manual w/respect to sysctl(8) similarities.
+ Add new/missing people to the `THANKS TO' section of the manual.

Reported by: lme
MFC after: 3 days
X-MFC-to: stable/10, stable/9, ports

9 years agoMFV r268851:
delphij [Fri, 18 Jul 2014 22:34:01 +0000 (22:34 +0000)]
MFV r268851:

When a sync task is waiting for a txg to complete, we should hurry it along
by increasing the number of outstanding async writes (i.e. make
vdev_queue_max_async_writes() return a larger number).

Illumos issue:
    4753 increase number of outstanding async writes when sync task is waiting

MFC after: 2 weeks

9 years agoMFV r268850:
delphij [Fri, 18 Jul 2014 22:04:21 +0000 (22:04 +0000)]
MFV r268850:

Change the interaction between the DMU and ARC so that when the DMU is
shutting down an objset, we do not evict the data from the ARC.  Instead
we simply coordinate the destruction of the DMU's data with the ARC.

The only case where we actually need to explicitly evict from the ARC is
when dbuf_rele_and_unlock() determines that the administrator has requested
that it not be kept in memory, via the primarycache/secondarycache properties.
In this case, we evict the data from the ARC by its blkptr_t, the same way
as when a block is freed we explicitly evict it from the ARC.

Illumos issue:
    4631 zvol_get_stats triggering too many reads

MFC after: 2 weeks

9 years agottyname(3): Fix EBADF/ENOTTY error descriptions.
jilles [Fri, 18 Jul 2014 21:29:59 +0000 (21:29 +0000)]
ttyname(3): Fix EBADF/ENOTTY error descriptions.

Also, make sure to document the return values and errors for all three
functions in the man page.

PR: 191931
MFC after: 1 week

9 years agoFix build by using the driver API (driver converted in r266979 which should
delphij [Fri, 18 Jul 2014 21:28:59 +0000 (21:28 +0000)]
Fix build by using the driver API (driver converted in r266979 which should
be upstreamed).

X-MFC with: r268854
MFC after: 5 days

9 years agoMFV r268848:
delphij [Fri, 18 Jul 2014 20:41:40 +0000 (20:41 +0000)]
MFV r268848:

Instead of asserting all zio's be properly aligned, only assert
on the logical ones.

Cap uberblocks at 8k, otherwise with ashift=17, there would be
only one uberblock.

This fixes a problem that zdb would trip assert on pools with
ashift >= 0xe (8k).

While there, also change the code so it only attempt to condense
space map unless the uncondensed size consumes greater than
zfs_metaslab_condense_block_threshold blocks.

Illumos issue:
  4958 zdb trips assert on pools with ashift >= 0xe

MFC after: 2 weeks

9 years agoInitiate error recovery stats fail to update after 3 retries.
davidcs [Fri, 18 Jul 2014 20:04:11 +0000 (20:04 +0000)]
Initiate error recovery stats fail to update after 3 retries.
Change bxe_panic() ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() to
panic only if ECORE_STOP_ON_ERROR is defined.

MFC after:5 days

9 years agoThe description is a bit misleading. Trying to make it more obvious.
hiren [Fri, 18 Jul 2014 16:25:35 +0000 (16:25 +0000)]
The description is a bit misleading. Trying to make it more obvious.

Phabric:    https://phabric.freebsd.org/D435
Reviewed by: gnn

9 years agoRevert r268826:
pfg [Fri, 18 Jul 2014 16:21:15 +0000 (16:21 +0000)]
Revert r268826:
The current ordering of this header is a feature as it
is more consistent with POSIX.
Also adding gratuitous newlines is not elegant.

Pointed out by: bde

9 years agoRemove obsolete man pages. The corresponding code was removed in r255608.
alc [Fri, 18 Jul 2014 15:39:07 +0000 (15:39 +0000)]
Remove obsolete man pages.  The corresponding code was removed in r255608.

9 years agoUse assignment instead of bcopy.
glebius [Fri, 18 Jul 2014 14:59:35 +0000 (14:59 +0000)]
Use assignment instead of bcopy.

Submitted by: jmg

9 years agoExtend kqueue's EVFILT_TIMER by adding precision unit flags support
bapt [Fri, 18 Jul 2014 14:27:04 +0000 (14:27 +0000)]
Extend kqueue's EVFILT_TIMER by adding precision unit flags support

Define the precision macros as bits sets to conform with XNU equivalent.
Test fflags passed for EVFILT_TIMER and return EINVAL in case an invalid flag
is passed.

Phabric: https://phabric.freebsd.org/D421
Reviewed by: kib

9 years agoFix two typos in iscsictl.8
gavin [Fri, 18 Jul 2014 12:51:35 +0000 (12:51 +0000)]
Fix two typos in iscsictl.8

PR: 191581
Submitted by: Jimmy Olgeni
MFC after: 3 days

9 years agoUse a combination of unblock-lan-zones (r268839) and domain-insecure
des [Fri, 18 Jul 2014 12:33:22 +0000 (12:33 +0000)]
Use a combination of unblock-lan-zones (r268839) and domain-insecure
to fix reverse lookups on networks using private addresses.

9 years agoImport unblock-lan-zones feature backported from upstream svn trunk.
des [Fri, 18 Jul 2014 11:32:44 +0000 (11:32 +0000)]
Import unblock-lan-zones feature backported from upstream svn trunk.
This is a partial fix for reverse lookups in RFC 1918 networks.  With
this option enabled, unbound no longer ignores these queries; however,
it will still reject the answer it gets from the forwarder, because
the RFC 1918 reverse zones are signed.

Submitted by: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>

9 years agoAdd support for Toradex Apalis i.MX6 development board.
br [Fri, 18 Jul 2014 08:23:53 +0000 (08:23 +0000)]
Add support for Toradex Apalis i.MX6 development board.

Sponsored by: Toradex AG

9 years agoUpdate the default RSS hash to the Chelsio T5 firmware one - it provides
adrian [Fri, 18 Jul 2014 08:22:13 +0000 (08:22 +0000)]
Update the default RSS hash to the Chelsio T5 firmware one - it provides
markedly better distribution of IPv6 address/ports than the previous key.

The previous key would hash large swaths of the port space for a given
source/destination IP address to the same low handful of bits, effectively
mapping them to the same queue.  This made testing very .. special.

9 years agoFix typo.
br [Fri, 18 Jul 2014 08:08:45 +0000 (08:08 +0000)]
Fix typo.

9 years agoRename gpio driver file.
br [Fri, 18 Jul 2014 07:52:35 +0000 (07:52 +0000)]
Rename gpio driver file.

9 years agoo Enable GPIO device driver for i.MX6.
br [Fri, 18 Jul 2014 07:47:50 +0000 (07:47 +0000)]
o Enable GPIO device driver for i.MX6.
  It was originally written for i.MX5 and compatible with newer chip.
o Extend device tree information
o style(9) fixes

Discussed with: ian

9 years agoFix an apparent conversion error in bge to the new driver api.
peter [Fri, 18 Jul 2014 07:41:38 +0000 (07:41 +0000)]
Fix an apparent conversion error in bge to the new driver api.
if_multiaddr_array() does the LLADDR work, don't do it twice.

This broke IPv6 in "interesting" ways in the FreeBSD.org cluster.

9 years agoUpdate libucl to the 2014-07-16 snapshot
bapt [Fri, 18 Jul 2014 06:58:01 +0000 (06:58 +0000)]
Update libucl to the 2014-07-16 snapshot
This update brings streamlined ucl emitter support

9 years agoRemove an obsolete man page.
alc [Fri, 18 Jul 2014 06:56:24 +0000 (06:56 +0000)]
Remove an obsolete man page.

9 years agoImport libucl 2014-07-16
bapt [Fri, 18 Jul 2014 06:49:18 +0000 (06:49 +0000)]
Import libucl 2014-07-16

9 years agoFix "ndp -d hostname".
peter [Fri, 18 Jul 2014 06:48:02 +0000 (06:48 +0000)]
Fix "ndp -d hostname".

9 years agoMinor sorting to match the NetBSD header
pfg [Fri, 18 Jul 2014 02:49:41 +0000 (02:49 +0000)]
Minor sorting to match the NetBSD header

MFC after: 3 days
Obtained from: NetBSD

9 years agoRemove deprecated definition "m_act".
kevlo [Fri, 18 Jul 2014 01:35:20 +0000 (01:35 +0000)]
Remove deprecated definition "m_act".

Suggested by: adrian, glebius

9 years agoFix manpages path and sort entries
bapt [Thu, 17 Jul 2014 23:30:29 +0000 (23:30 +0000)]
Fix manpages path and sort entries

9 years agoRemove texinfo manpages as well if built WITHOUT_INFO
bapt [Thu, 17 Jul 2014 23:24:33 +0000 (23:24 +0000)]
Remove texinfo manpages as well if built WITHOUT_INFO