]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r274116:
dteske [Tue, 25 Nov 2014 13:47:53 +0000 (13:47 +0000)]
MFC r274116:

Add new libraries/utilities for data throughput visualization.
dpv(3): dialog progress view library
dpv(1): stream data from stdin or multiple paths with dialog progress view
figpar(3): configuration file parsing library

MFC r274120, r274121, r274123, r274124, r274144, r274146, r274159, r274192,
r274203, r274209, r274226, r274270, and r274851: Fixes following r274116

Reviews:        D714
Relnotes:       New libdpv/libfigpar and dpv(1) utility
Reviewed by:    jelischer, shurd
Discussed at:   MeetBSD California 2014 Vendor/Dev Summit
Discussed on:   -current
Thanks to:      ngie, ian, jelischer, shurd, bapt

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

9 years agoMFC r274900:
dim [Tue, 25 Nov 2014 13:29:13 +0000 (13:29 +0000)]
MFC r274900:

Fix the following -Werror warnings from clang 3.5.0, while building
bsnmpd's snmp_hostres module:

usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^~~
                          labs
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^~~
                            labs

Since tm::tm_gmtoff is a long, use labs(3) instead.

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

9 years agoMFC r274898:
dim [Tue, 25 Nov 2014 13:12:45 +0000 (13:12 +0000)]
MFC r274898:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.sbin/rtadvd:

usr.sbin/rtadvd/rtadvd.c:1291:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1291:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(preferred_time - pfx->pfx_pltimeexpire) > rai->rai_clockskew) {
                    ^~~
usr.sbin/rtadvd/rtadvd.c:1324:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^
usr.sbin/rtadvd/rtadvd.c:1324:7: note: remove the call to 'abs' since unsigned values cannot be negative
                    abs(valid_time - pfx->pfx_vltimeexpire) > rai->rai_clockskew) {
                    ^~~
2 errors generated.

These warnings occur because both preferred_time and pfx_pltimeexpire
are uint32_t's, so the subtraction expression is also unsigned, and
calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by: hrs
Differential Revision: https://reviews.freebsd.org/D1197

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

9 years agoMFC r274856:
dim [Tue, 25 Nov 2014 12:58:21 +0000 (12:58 +0000)]
MFC r274856:

Avoid undefined behaviour in gas's rotate_left() macro for n == 0.
Otherwise, clang can effectively remove the first iteration of the for
loops where this macro is invoked, and as a result, "cmp r0, #99" fails
to assemble.

Obtained from: joerg at netbsd

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

9 years agoMFC r274847:
dim [Tue, 25 Nov 2014 12:45:31 +0000 (12:45 +0000)]
MFC r274847:

Fix the following -Werror warnings from clang 3.5.0, while building
usr.bin/locate:

usr.bin/locate/locate/util.c:249:29: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^
usr.bin/locate/locate/util.c:249:29: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i));
                                                 ^~~
usr.bin/locate/locate/util.c:274:32: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^
usr.bin/locate/locate/util.c:274:32: note: remove the call to 'abs' since unsigned values cannot be negative
                            MAXPATHLEN, abs(word) < abs(htonl(word)) ? word :
                                                    ^~~

The problem is that ntohl() always returns an unsigned quantity.  In
this case, it's expected to be cast back to a signed integer, but to
stop complaints about abs() we just store it into an integer, and don't
call ntohl() again.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D1196

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

9 years agoMFC r274846:
dim [Tue, 25 Nov 2014 12:19:05 +0000 (12:19 +0000)]
MFC r274846:

Fix the following -Werror warning from clang 3.5.0, while building
usr.bin/cpio on amd64 (or any arch with 64-bit time_t):

contrib/libarchive/cpio/cpio.c:1143:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
if (abs(mtime - now) > (365/2)*86400)
    ^
contrib/libarchive/cpio/cpio.c:1143:6: note: use function 'labs' instead
if (abs(mtime - now) > (365/2)*86400)
    ^~~
    labs
1 error generated.

This is because time_t is a long on amd64. To avoid the warning, just
copy the equivalent test from a few lines before, which is used in the
Windows case, and which is type safe.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D1198

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

9 years agoMFC r273585:
trasz [Mon, 24 Nov 2014 08:09:50 +0000 (08:09 +0000)]
MFC r273585:

Improve ctld.conf example.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273470:
trasz [Mon, 24 Nov 2014 08:06:29 +0000 (08:06 +0000)]
MFC r273470:

Fix ctl.conf example to use proper paths to ZVOLs.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273467:
trasz [Mon, 24 Nov 2014 08:04:40 +0000 (08:04 +0000)]
MFC r273467:

Comment out parts about iSER; it's not implemented.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273584:
trasz [Mon, 24 Nov 2014 07:59:44 +0000 (07:59 +0000)]
MFC r273584:

Make the initiator-name and initiator-portal checks a little nicer.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 273583:
trasz [Mon, 24 Nov 2014 07:57:18 +0000 (07:57 +0000)]
MFC 273583:

Tidy up the login code; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273760:
kevlo [Mon, 24 Nov 2014 01:56:33 +0000 (01:56 +0000)]
MFC r273760:
Fix prototypes.

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

9 years agoMFC r274407
grehan [Mon, 24 Nov 2014 01:25:19 +0000 (01:25 +0000)]
MFC r274407

  Fix incorrect reading of 32-bit modinfo by 64-bit loaders.

  The various structures in the mod_metadata set of a FreeBSD kernel and
  modules contain pointers. The FreeBSD loader correctly deals with a
  mismatch in loader and kernel pointer size (e.g. 32-bit i386/ppc
  loader, loading 64-bit amd64/ppc64 kernels), but wasn't dealing with
  the inverse case where a 64-bit loader was loading a 32-bit kernel.

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

9 years agoMFC r273635, r273793, r274797: Add basic iSNS client to the iSCSI target.
mav [Mon, 24 Nov 2014 00:47:04 +0000 (00:47 +0000)]
MFC r273635, r273793, r274797: Add basic iSNS client to the iSCSI target.

This makes ctld(8) register its iSCSI targets and portals on configured
iSNS servers to allow initiators find them without active discovery.

Fetching of allowed initiators from iSNS is not implemented now, so target
ACLs still should be configured manually.

Relnotes: Yes
Sponsored by: iXsystems, Inc.

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

9 years agoMFC r274328:
mav [Sun, 23 Nov 2014 04:17:39 +0000 (04:17 +0000)]
MFC r274328:
Make both iSCSI initiator and target support base64 encoded CHAP data.

While all tested initiators and targets use hex-encoded CHAP data, RFC also
allows base64 encoding there, and Microsoft certificaition tool uses it.

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

9 years agoMFC:
n_hibma [Sat, 22 Nov 2014 20:55:21 +0000 (20:55 +0000)]
MFC:
------------------------------------------------------------------------
r274792 | n_hibma | 2014-11-21 15:53:42 +0100 (Fri, 21 Nov 2014) | 5
lines

Simply remove the tmp dir before creating the symlink. We are doing
chroots all over the place, so there is bound to be a stale file lying
around in there (in my case samba lock files from creating accounts). If
we don't do that, the symlink later will fail.

------------------------------------------------------------------------

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

9 years agoMFC r273543:
trasz [Sat, 22 Nov 2014 17:58:39 +0000 (17:58 +0000)]
MFC r273543:

Clean up (refactor) discovery a little; no functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273468:
trasz [Sat, 22 Nov 2014 17:56:03 +0000 (17:56 +0000)]
MFC r273468:

Remove misleading statement.  Bump date.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273466:
trasz [Sat, 22 Nov 2014 17:54:11 +0000 (17:54 +0000)]
MFC r273466:

Remove spurious empty line.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273465:
trasz [Sat, 22 Nov 2014 17:52:33 +0000 (17:52 +0000)]
MFC r273465:

Fix ctld(8) to not show the "auth-group <name> not assigned to any target"
warning for auth-groups assigned to a portal-group.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273464:
trasz [Sat, 22 Nov 2014 17:50:14 +0000 (17:50 +0000)]
MFC r273464:

Whitespace fixes.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r271320:
trasz [Sat, 22 Nov 2014 17:48:09 +0000 (17:48 +0000)]
MFC r271320:

Use keys_add_int() where appropriate.  No functional changes.

Sponsored by: The FreeBSD Foundation

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

9 years agovt(4): Support syscons' SC_HISTORY_SIZE to configure history size
dumbbell [Sat, 22 Nov 2014 17:47:03 +0000 (17:47 +0000)]
vt(4): Support syscons' SC_HISTORY_SIZE to configure history size

Therefore, to set histry size to 2000 lines, add the following line to
your kernel configuration file:
    options SC_HISTORY_SIZE=2000

The default history remains at 500 lines.

MFC of: r274117

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

9 years agoMFC r273459:
trasz [Sat, 22 Nov 2014 17:39:39 +0000 (17:39 +0000)]
MFC r273459:

Untangle iSCSI authentication code by splitting off the CHAP
implementation.

Sponsored by: The FreeBSD Foundation

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

9 years agodrm: Take vt(4) default mode from loader tunables
dumbbell [Sat, 22 Nov 2014 17:37:51 +0000 (17:37 +0000)]
drm: Take vt(4) default mode from loader tunables

By default, vt(4) gets the "preferred mode" from DRM, when using a DRM
video driver as its backend. The preferred mode is usually the native
screen resolution.

Now, if this mode isn't appropriate, a user can use loader tunables to
select a mode. The tunables are read in the following order:
    1. kern.vt.fb.modes.$connector_name
    2. kern.vt.fb.default_mode

For example, to set a 1024x768 mode, no matter the connector:
    kern.vt.fb.default_mode="1024x768"

To set a 800x600 mode only on the laptop builtin screen:
    kern.vt.fb.modes.LVDS-1="800x600"

Beside r274031, this MFC includes:

r274049:
  drm: When reading connector mode tunables, list connectors

  ... and their associated tunables. This gives a way to know the list of
  available connectors, no matter the driver.

  The problem is that xrandr(1) can list connectors but it uses a
  different naming.

r274050:
  vt(4): Document kern.vt.fb.default_mode and kern.vt.fb.modes.*

  Those tunables are used to set a specific mode in vt(4) instead of using
  the default mode.

  Differential Revision: https://reviews.freebsd.org/D1098
  Reviewed by: ak@, emaste@, kwm@

r274051:
  vt(4): Improve the description of kern.vt.fb.modes.$connector

  Differential Revision: https://reviews.freebsd.org/D1098
  Submitted by: emaste@

r274053:
  vt(4): Start new sentences on their own lines

  Submitted by: brueffer@

MFC of: r274031, r274049, r274050, r274051, r274053

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

9 years agodrm: Lower priority of three messages related to invalid EDID
dumbbell [Sat, 22 Nov 2014 17:19:39 +0000 (17:19 +0000)]
drm: Lower priority of three messages related to invalid EDID

Like in r259717, the prority goes from "error" to "debug" to avoid
spamming logs when the connectors are polled.

PR: 194770
Submitted by: Larry Rosenman <ler@lerctr.org>
MFC of: r273962, r274587

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

9 years agovt(4): Fix keyboard allocation when kbdmux(4) isn't used
dumbbell [Sat, 22 Nov 2014 17:10:57 +0000 (17:10 +0000)]
vt(4): Fix keyboard allocation when kbdmux(4) isn't used

The problem was that only the kbdmux keyboard index was saved in
vd->vd_keyboard. This index is -1 when kbdmux isn't used. In this
case, the keyboard was correctly allocated, but the returned index was
discarded.

PR: 194718
MFC of: r273973

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

9 years agovt(4): Adjust the cursor position after changing the window size
dumbbell [Sat, 22 Nov 2014 16:55:55 +0000 (16:55 +0000)]
vt(4): Adjust the cursor position after changing the window size

A new terminal_set_cursor() is added: it wraps the existing
teken_set_cursor() function.

In vtbuf_grow(), the cursor position is adjusted at the end of the
function. In vt_change_font(), we call terminal_set_cursor() just after
terminal_set_winsize_blank(), while the terminal is mute.

This fixes a bug where, after loading a kernel video driver which
increases the terminal window size, the cursor remains at its old
position, in other words, in the middle of the display content.

PR: 194421
MFC of: r273932

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

9 years agoMFC r274555:
kib [Sat, 22 Nov 2014 09:38:18 +0000 (09:38 +0000)]
MFC r274555:
Fix END()s for fueword and fueword64, match the name in END() with
entry.

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

9 years agoMFC r274489:
scottl [Sat, 22 Nov 2014 00:01:14 +0000 (00:01 +0000)]
MFC r274489:

Add frame pointers to ASM functions in support.S

Obtained from: Netflix

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

9 years agoMFC r274619:
smh [Fri, 21 Nov 2014 17:08:28 +0000 (17:08 +0000)]
MFC r274619:
Disable TRIM on file backed ZFS vdevs and fix TRIM on init

Sponsored by: Multiplay

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

9 years agoMFC r274230:
ae [Fri, 21 Nov 2014 15:21:39 +0000 (15:21 +0000)]
MFC r274230:
  Pass mbuf to pfil processing before stripping outer IP header as it
  is described in if_enc(4).

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

9 years agoMFC r274501:
kib [Fri, 21 Nov 2014 10:22:54 +0000 (10:22 +0000)]
MFC r274501:
In vfs_write_suspend_umnt(), if suspension cannot be established, do
not forget to restore write ops count when returning the error.

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

9 years agoMFC r274532: Remove mostly obsolete hint to disable LAPIC timers.
mav [Fri, 21 Nov 2014 00:58:58 +0000 (00:58 +0000)]
MFC r274532: Remove mostly obsolete hint to disable LAPIC timers.

It is partially covered by new code and partially by new CPUs.

PR: 195016
Submitted by: tobias.rehbein@web.de

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

9 years agobsdgrep: Work-around for segmentation fault.
emaste [Thu, 20 Nov 2014 19:35:29 +0000 (19:35 +0000)]
bsdgrep: Work-around for segmentation fault.

Fix by David Carlier.

MFC of r272127
Obtained from: HardenedBSD
PR: 167921

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

9 years agoMFC r274434:
ae [Thu, 20 Nov 2014 18:49:11 +0000 (18:49 +0000)]
MFC r274434:
  Fix ips_out_nosa errors accounting.

MFC r274454:
  ipsec6_process_packet is called before ip6_output fixes ip6_plen.
  Update ip6_plen before bpf processing to be able see correct value.

MFC r274455:
  We don't return sp pointer, thus NULL assignment isn't needed.
  And reference to sp will be freed at the end.

MFC r274465:
  Remove redundant ip6_plen initialization.

MFC r274466:
  Strip IP header only when we act in tunnel mode.

MFC r274467:
  Count statistics for the specific address family.

Sponsored by: Yandex LLC

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

9 years agoMFC r274478:
kib [Thu, 20 Nov 2014 11:33:38 +0000 (11:33 +0000)]
MFC r274478:
Fix assertion, &uc->uc_busy is never zero, the intent is to test the
uc_busy value, and not its address.

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

9 years agoMFC r274474:
kib [Thu, 20 Nov 2014 11:29:43 +0000 (11:29 +0000)]
MFC r274474:
Do not try to dereference thread pointer when the value is not a pointer.

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

9 years agoMFC r274473:
kib [Thu, 20 Nov 2014 11:26:06 +0000 (11:26 +0000)]
MFC r274473:
Remove fossil.

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

9 years agoMFC r274154, r274163:
mav [Thu, 20 Nov 2014 01:55:12 +0000 (01:55 +0000)]
MFC r274154, r274163:
Add to CTL support for logical block provisioning threshold notifications.

For ZVOL-backed LUNs this allows to inform initiators if storage's used or
available spaces get above/below the configured thresholds.

Sponsored by: iXsystems, Inc.

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

9 years agoMFC r274477: Fix check for vendor-specific peripheral qualifier.
mav [Thu, 20 Nov 2014 01:50:46 +0000 (01:50 +0000)]
MFC r274477: Fix check for vendor-specific peripheral qualifier.

Submitted by: anton.rang@isilon.com

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

9 years agoMFC r274438:
kib [Wed, 19 Nov 2014 10:25:08 +0000 (10:25 +0000)]
MFC r274438:
For posix_fallocate(2) and posix_fadvise(2), return ESPIPE
when underlying file does not have DFLAG_SEEKABLE set. For
posix_fallocate(2), simplify error handling logic.

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

9 years agoMFC r274376:
hselasky [Wed, 19 Nov 2014 09:03:12 +0000 (09:03 +0000)]
MFC r274376:
Fix some minor TSO issues:
- Improve description of TSO limits.
- Remove a not needed KASSERT()
- Remove some not needed variable casts.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274435:
hselasky [Wed, 19 Nov 2014 08:56:38 +0000 (08:56 +0000)]
MFC r274435:
Decode more fields when dumping USB descriptors.
- Some minor style changes while at it.

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

9 years agoMFC r274227:
hselasky [Wed, 19 Nov 2014 08:48:59 +0000 (08:48 +0000)]
MFC r274227:
Add new USB IDs.

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

9 years agoMFC r274442:
dim [Wed, 19 Nov 2014 07:24:43 +0000 (07:24 +0000)]
MFC r274442:

Pull in r221709 from upstream llvm trunk (by Frédéric Riss):

  Totally forget deallocated SDNodes in SDDbgInfo.

  What would happen before that commit is that the SDDbgValues associated with
  a deallocated SDNode would be marked Invalidated, but SDDbgInfo would keep
  a map entry keyed by the SDNode pointer pointing to this list of invalidated
  SDDbgNodes. As the memory gets reused, the list might get wrongly associated
  with another new SDNode. As the SDDbgValues are cloned when they are transfered,
  this can lead to an exponential number of SDDbgValues being produced during
  DAGCombine like in http://llvm.org/bugs/show_bug.cgi?id=20893

  Note that the previous behavior wasn't really buggy as the invalidation made
  sure that the SDDbgValues won't be used. This commit can be considered a
  memory optimization and as such is really hard to validate in a unit-test.

This should fix abnormally large memory usage and resulting OOM crashes
when compiling certain ports with debug information.

Reported by: Dmitry Marakasov <amdmi3@amdmi3.ru>
Upstream PRs: http://llvm.org/PR19031 http://llvm.org/PR20893

MFC r274483:

The fix imported into llvm in r274442 contains some C++11 constructs,
which gcc in base cannot handle.  Replace these with C++98 equivalents.

While here, add the patch for the adapted fix.

Reported by: bz, kib
Pointy hat to: dim

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

9 years agoMFC r274379:
kib [Tue, 18 Nov 2014 13:05:24 +0000 (13:05 +0000)]
MFC r274379:
Initial attachment of the agp(4) to Haswell IGP.

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

9 years agoMFC r274378:
kib [Tue, 18 Nov 2014 13:03:18 +0000 (13:03 +0000)]
MFC r274378:
Attach agp_i810 to non-VGA display class.

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

9 years agoMFC r274377:
kib [Tue, 18 Nov 2014 13:01:41 +0000 (13:01 +0000)]
MFC r274377:
On 965 and higher, map GTT as write-combining.

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

9 years agoMerge the fueword(9) and casueword(9). In particular,
kib [Tue, 18 Nov 2014 12:53:32 +0000 (12:53 +0000)]
Merge the fueword(9) and casueword(9).  In particular,

MFC r273783:
Add fueword(9) and casueword(9) functions.
MFC note: ia64 is handled like arm, with NO_FUEWORD define.

MFC r273784:
Replace some calls to fuword() by fueword() with proper error checking.

MFC r273785:
Convert kern_umtx.c to use fueword() and casueword().
MFC note: the sys__umtx_lock and sys__umtx_unlock syscalls are not
converted, they are removed from HEAD, and not used.  The do_sem2*()
family is not yet merged to stable/10, corresponding chunk will be
merged after do_sem2* are committed.

MFC r273788 (by jkim):
Actually install casuword(9) to fix build.

MFC r273911:
Add type qualifier volatile to the base (userspace) address argument
of fuword(9) and suword(9).

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

9 years agoMFC 273866
jpaetzel [Tue, 18 Nov 2014 07:16:03 +0000 (07:16 +0000)]
MFC 273866

Plug memory ordering holes in buf_ring_enqueue. For at least some
users this patch eliminates the races previously discussed on the
mailing list.

Submitted by:   oleg
Reviewed by:    kmacy
MFC after:      2 weeks
Tested by:      kmacy,rpaulo

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

9 years agoMFC r274410: Fix for behaviour of SEEK_DATA on ZFS.
marcel [Mon, 17 Nov 2014 17:17:10 +0000 (17:17 +0000)]
MFC r274410: Fix for behaviour of SEEK_DATA on ZFS.

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

9 years agoMFC r272708: l2arc_write_buffers: reduce headroom value
avg [Mon, 17 Nov 2014 13:30:18 +0000 (13:30 +0000)]
MFC r272708: l2arc_write_buffers: reduce headroom value

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

9 years agoMFC r272701: make userland __assfail from opensolaris compat honor 'aok' variable
avg [Mon, 17 Nov 2014 13:26:50 +0000 (13:26 +0000)]
MFC r272701: make userland __assfail from opensolaris compat honor 'aok' variable

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

9 years agoMFC r273360:
np [Mon, 17 Nov 2014 07:37:41 +0000 (07:37 +0000)]
MFC r273360:

One of MAP_ANON, MAP_PRIVATE, MAP_SHARED, or MAP_STACK must be specified.

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

9 years agoMFC r274351:
np [Mon, 17 Nov 2014 07:20:03 +0000 (07:20 +0000)]
MFC r274351:

cxgbe(4): adjust PMRX and PMTX parameters.

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

9 years agoMFC r274343:
kib [Mon, 17 Nov 2014 01:01:45 +0000 (01:01 +0000)]
MFC r274343:
When sleeping waiting for the profiling stop, always set P_STOPPROF
before dropping process lock.  Clear P_STOPPROF when doing wakeup.

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

9 years agoMFC r274023:
kib [Mon, 17 Nov 2014 00:59:45 +0000 (00:59 +0000)]
MFC r274023:
When other end of the pipe closed during the write, but some bytes
were written, return short write instead of EPIPE.

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

9 years agoMFC r274040 and r274084. The result is removal of agp_intel.c from
kib [Mon, 17 Nov 2014 00:57:33 +0000 (00:57 +0000)]
MFC r274040 and r274084.  The result is removal of agp_intel.c from
the static amd64 kernel when agp is configured.

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

9 years agoMFC r273966:
kib [Sun, 16 Nov 2014 23:02:32 +0000 (23:02 +0000)]
MFC r273966:
Fix two issues with lockmgr(9) LK_CAN_SHARE() test, related
to the exclusive locker starvation.

MFC r273986:
Fix the build with ADAPTIVE_LOCKMGRS kernel option.

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

9 years agoMFC of 274559,tzdata2014j
edwin [Sun, 16 Nov 2014 04:02:50 +0000 (04:02 +0000)]
MFC of 274559,tzdata2014j

Release 2014j - 2014-11-10 17:37:11 -0800

  Changes affecting current and future time stamps

    Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

  Changes affecting past time stamps

    Many pre-1989 time stamps have been corrected for Asia/Seoul and
    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
    longer guess that Pyongyang mimicked Seoul time after World War II,
    as this is politically implausible.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
    Indian/Mayotte.

  Changes affecting commentary

    The commentary is less enthusiastic about Shanks as a source,
    and is more careful to distinguish UT from UTC.

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

9 years agoMFC r274333: Handle PREEMPT AND ABORT service action equal to PREEMPT.
mav [Sun, 16 Nov 2014 01:47:43 +0000 (01:47 +0000)]
MFC r274333: Handle PREEMPT AND ABORT service action equal to PREEMPT.

With command serialization used in CTL, there are no other commands to abort
when PREEMPT AND ABORT gets to run, so it is practically equal to PREEMPT.

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

9 years agoMFC from the last few months:
imp [Sun, 16 Nov 2014 01:29:18 +0000 (01:29 +0000)]
MFC from the last few months:
Note: didn't merge r274331 removing gif/faith on purpose.

r268246 | mr | use mkimg and build into separate directories
r269355 | imp | Fix typo in example script
r269362 | imp | use rm -x on 10 and newer
r269363 | imp | NANO_OBJ shouldn't end with '/'
r269423 | imp | -K to suppress installkernel
r269424 | imp | sort usage
r269425 | imp | sort switch
r269983 | imp | only install bootloader if it exists
r269984 | imp | create_diskimage since it never was $ARCH dependent
r270162 | imp | Add support for -X which instales cross native tools

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

9 years agoMFC r273160:
trasz [Sat, 15 Nov 2014 05:53:45 +0000 (05:53 +0000)]
MFC r273160:

Fix automountd(8) not to leave zombies.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273164:
trasz [Sat, 15 Nov 2014 05:50:14 +0000 (05:50 +0000)]
MFC r273164:

When removing an iSCSI session, check whether all conditions match,
not if any of them matches.  This fixes "iscsictl -Rn" removing
unrelated sessions.

PR: 194034
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273627,r273628:
ngie [Sat, 15 Nov 2014 05:16:16 +0000 (05:16 +0000)]
MFC r273627,r273628:

r273627:

  - Print out "Bail out!" in die(..) so prove terminates immediately
  - Handle the output from newer versions of openssl md5, similar to what
    pjd@ did in r248304

  Sponsored by: EMC / Isilon Storage Division

r273628:

  Move the redirection to stderr out of the cmd variable assignment

  Putting 2>/dev/null in cmd= escapes the redirection operation, which causes
  mdconfig to think it's a filename

  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r274021:
ngie [Sat, 15 Nov 2014 05:05:32 +0000 (05:05 +0000)]
MFC r274021:

  Remove explicit KYUAFILE=yes from tests/sys/Makefile

  This causes the directory traversing Kyuafile to be installed, which in turn
  causes tests/sys/pjdfstest to always be run from /usr/tests/sys

  Let KYUAFILE default to auto, so the file generated by suite.test.mk gets
  installed instead

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

9 years agoMFC r274052:
ngie [Sat, 15 Nov 2014 05:03:44 +0000 (05:03 +0000)]
MFC r274052:

  Remove unused tests/lib directory

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

9 years agoMFC r274267:
ngie [Sat, 15 Nov 2014 05:02:06 +0000 (05:02 +0000)]
MFC r274267:

  Use PROGS instead of PROG and remove unnecessary SRCS?= assignment

  Using PROG instead of PROGS will in cases of high -j with -DNO_ROOT cause
  the PROG to show up more than once as it's handling the SCRIPTS install case
  in a recursive manner, separate from the non-recursive case

  After the recent batch of commits to bsd.progs.mk to fix behavior with how
  variables are defaulted to, explicitly setting SRCS for a PROG is no longer
  required

  Reviewed by: asomers
  Phabric: D1130
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoSwitch stable/10 back to -STABLE now that 10.1-RELEASE
gjb [Fri, 14 Nov 2014 23:52:06 +0000 (23:52 +0000)]
Switch stable/10 back to -STABLE now that 10.1-RELEASE
is out.

Reminded by: rpaulo
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoAlways return pathname in dl_iterate_phdr's dlpi_name, as Linux does
emaste [Fri, 14 Nov 2014 21:52:31 +0000 (21:52 +0000)]
Always return pathname in dl_iterate_phdr's dlpi_name, as Linux does

Linux LD_ITERATE_PHDR(3):
    The dlpi_name field is a null-terminated string giving the
    pathname from which the shared object was loaded.

That functionality is much more useful than returning just the short
name.

Update dl_iterate_phdr(3) to follow r272842

MFC of r272842 and r272848

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

9 years agoUpdate the FreeBSD versions in the stable/10 errata file.
gjb [Fri, 14 Nov 2014 21:12:28 +0000 (21:12 +0000)]
Update the FreeBSD versions in the stable/10 errata file.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274383:
delphij [Fri, 14 Nov 2014 18:30:20 +0000 (18:30 +0000)]
MFC r274383:

Test errno against EEXIST as well.

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

9 years agoMFC r272717:
trasz [Fri, 14 Nov 2014 10:56:33 +0000 (10:56 +0000)]
MFC r272717:

Remove call to access(2) which didn't serve any purpose, and make it more
tolerant to errors.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r273107:
trasz [Fri, 14 Nov 2014 10:53:55 +0000 (10:53 +0000)]
MFC r273107:

Make automount(8)/automountd(8) treat percent sign as a valid part
of path.  It's useful for spaces encoded as %20 as msdosfs labels.

Submitted by: glebius@

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

9 years agoMFC r273123:
trasz [Fri, 14 Nov 2014 10:05:53 +0000 (10:05 +0000)]
MFC r273123:

Silence down a warning that doesn't provide any useful information unless
debug is enabled.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274251:
kib [Fri, 14 Nov 2014 09:51:21 +0000 (09:51 +0000)]
MFC r274251:
Add DEV_MODULE_ORDERED().

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

9 years agoMFC r274206:
mav [Fri, 14 Nov 2014 00:25:10 +0000 (00:25 +0000)]
MFC r274206:
Synchronize medium rotation rate in legacy Rigid Disk Drive Geometry mode
page with modern Block Device Characteristics VPD page.

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

9 years agoMFC: 272906
gnn [Thu, 13 Nov 2014 21:58:42 +0000 (21:58 +0000)]
MFC: 272906

Change the PF hash from Jenkins to Murmur3.  In forwarding tests
this showed a conservative 3% incrase in PPS.

Original Differential Revision: https://reviews.freebsd.org/D461
Submitted by: des
Reviewed by: emaste

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

9 years agoMFC r264852
smh [Thu, 13 Nov 2014 16:45:25 +0000 (16:45 +0000)]
MFC r264852

Silence compiler warning

Sponsored by: Multiplay

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

9 years agoMFC r260800:
smh [Thu, 13 Nov 2014 16:40:15 +0000 (16:40 +0000)]
MFC r260800:
Fix a regression introduced in r237618

MFC r260801:
Re-work r260800 to include other signals which start with 'I'
such as ILL, INFO etc.

Sponsored by: Multiplay

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

9 years agoMFC r274193:
ae [Thu, 13 Nov 2014 13:08:46 +0000 (13:08 +0000)]
MFC r274193:
  When mode isn't explicitly specified (wildcard) and inner protocol isn't
  IPv4 or IPv6, assume it is the transport mode.

Sponsored by: Yandex LLC

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

9 years agoMFC r273904:
ae [Thu, 13 Nov 2014 13:05:31 +0000 (13:05 +0000)]
MFC r273904:
  Use in_localip() instead of handmade implementation.

Sponsored by: Yandex LLC

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

9 years agoMFC r271328:
np [Wed, 12 Nov 2014 20:37:23 +0000 (20:37 +0000)]
MFC r271328:

Whitespace nit.

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

9 years agoMFC r273615:
np [Wed, 12 Nov 2014 20:24:14 +0000 (20:24 +0000)]
MFC r273615:

cxgbe(4): bump up PF4's share of some global resources.

This increases the size of the per-port RSS slice and also allows the
driver to use a larger number of tx and rx queues.

S2curity:

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

9 years agoMFC r273280:
np [Wed, 12 Nov 2014 20:07:43 +0000 (20:07 +0000)]
MFC r273280:

cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.

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

9 years agoMFC r272190:
np [Wed, 12 Nov 2014 19:53:35 +0000 (19:53 +0000)]
MFC r272190:

cxgbe(4): explicitly set various if_hw_tso* values.

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

9 years agoMFC r274081: Fix residual copy/paste in r274080.
mav [Tue, 11 Nov 2014 17:18:51 +0000 (17:18 +0000)]
MFC r274081: Fix residual copy/paste in r274080.

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

9 years agoMFC r274080: Improve error handling around duplicate lun and port enable.
mav [Tue, 11 Nov 2014 17:17:41 +0000 (17:17 +0000)]
MFC r274080: Improve error handling around duplicate lun and port enable.

This fixes kernel panic if port enabled twice and then disabled.

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

9 years agoMFC r274253: Fix LUN resize broken by r272911 commit.
mav [Tue, 11 Nov 2014 17:14:35 +0000 (17:14 +0000)]
MFC r274253: Fix LUN resize broken by r272911 commit.

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

9 years agoMFC r272936:
mav [Tue, 11 Nov 2014 17:13:03 +0000 (17:13 +0000)]
MFC r272936:
Update isp_tgt_map and send new arrival notification if target that departed
earlier has returned.  Previously that code worked only once, confusing CTL.

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

9 years agoMFC r274100:
kib [Tue, 11 Nov 2014 11:06:10 +0000 (11:06 +0000)]
MFC r274100:
Fix mis-spelling of bits and types names in the
default_pager_putpages() and swap_pager_putpages().

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

9 years agoMFC r274286:
dim [Tue, 11 Nov 2014 08:00:49 +0000 (08:00 +0000)]
MFC r274286:

Pull in r201784 from upstream llvm trunk (by Benjamin Kramer):

  AsmParser: Disable Darwin-style macro argument expansion on non-darwin targets.

  There is code in the wild that relies on $0 not being expanded.

This fixes some cases of using $ signs in literals being incorrectly
assembled.

Reported by: Richard Henderson
Upstream PR: http://llvm.org/PR21500

MFC r274294:

Add llvm patch corresponding to r274286.

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

9 years agoMFV r273747:
delphij [Tue, 11 Nov 2014 05:55:37 +0000 (05:55 +0000)]
MFV r273747:

Remove an extra copy of hv_kvp_daemon(8) [1].

While I'm there also correct typos in OptionalObsoleteFiles and add
information of the command line options for hv_kvp_daemon(8).

Reported by: jmg [1]
Reviewed by: jmg

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

9 years agoAnticipate when we'll be ready to announce 10.1-RELEASE.
gjb [Tue, 11 Nov 2014 05:49:35 +0000 (05:49 +0000)]
Anticipate when we'll be ready to announce 10.1-RELEASE.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC Intel I40E drivers: r274205,r274218, and r274228
jfv [Mon, 10 Nov 2014 23:56:06 +0000 (23:56 +0000)]
MFC Intel I40E drivers: r274205,r274218, and r274228
The MFC was pushed early as it fixes a panic in the
exiting driver of 10.1 that Intel discovered in validation.

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

9 years agoAdd missing /usr/lib/debug directories
emaste [Mon, 10 Nov 2014 14:26:56 +0000 (14:26 +0000)]
Add missing /usr/lib/debug directories

Directories for /usr/lib{,32}/{i18n,private} were missing from the mtree
file, which caused installworld to install the files that should be in
the directory as the name of the directory.

MFC of r273780

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

9 years agoMFC r274038:
kib [Mon, 10 Nov 2014 09:11:23 +0000 (09:11 +0000)]
MFC r274038:
Clean up confusing comment.

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

9 years agoMFC: 258080
jpaetzel [Sun, 9 Nov 2014 20:08:43 +0000 (20:08 +0000)]
MFC: 258080

Add support for multiple instances of ftp-proxy
and pflog devices.

PR:     conf/158171
Submitted by:   Thomas Johnson <tom@claimlynx.com>

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

9 years agoMFC: 273641
jpaetzel [Sun, 9 Nov 2014 20:04:29 +0000 (20:04 +0000)]
MFC: 273641

This change addresses 4 bugs in ZFS exposed by Richard Kojedzinszky's
crash.sh script attached to FreeNAS bug 4109:
https://bugs.freenas.org/issues/4109

Three are in the snapshot layer:
a) AVG explains in his notes: https://wiki.freebsd.org/AvgVfsSolarisVsFreeBSD

"VOP_INACTIVE must not do any destructive actions to a vnode
and its filesystem node, nor invalidate them in any way."
gfs_vop_inactive and zfsctl_snapshot_inactive did just that. In
OpenSolaris VOP_INACTIVE is much closer to FreeBSD's VOP_RECLAIM.
Rename & move them to gfs_vop_reclaim and zfsctl_snapshot_reclaim
and merge in the requisite vnode_destroy from zfsctl_common_reclaim.

b) gfs_lookup_dot and various zfsctl functions do not honor the
FreeBSD VFS convention of only locking from the root downward. When
looking up ".." the convention is to drop the current leaf vnode lock before
acquiring the directory vnode and then subsequently re-acquiring the lock on the
leaf vnode. This fixes that in all the places that our exercised by crash.sh.

c) The snapshot may already be unmounted when the directory vnode is reclaimed.
Check for this case and return.

One in the common layer:
d) Callers of traverse expect the reference to the vnode passed in to be
maintained. Don't release it.

This last one may be an unclear contract. There may in fact be some callers that
do expect the reference to be dropped on success in addition to callers that
expect it to be released. In this case a further audit of the callers is needed
and a consensus on the correct behavior.

PR:     184677
Submitted by: kmacy
Reviewed by: delphij, will, avg
Sponsored by: iXsystems

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