]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoImport patch from libc++ r197313 which allows using libc++ headers with gcc
bapt [Mon, 13 Oct 2014 22:30:08 +0000 (22:30 +0000)]
Import patch from libc++ r197313 which allows using libc++ headers with gcc

Differential Revision: https://reviews.freebsd.org/D942
Reviewed by: imp

9 years agoPromote libevent to lib/ level and fold ftp-proxy into its parent Makefile.
delphij [Mon, 13 Oct 2014 22:15:26 +0000 (22:15 +0000)]
Promote libevent to lib/ level and fold ftp-proxy into its parent Makefile.
This allows us to use libevent for other application in the future.

For now libevent is still INTERNALLIB and no shared library is installed.

MFC after: 1 month

9 years agoBump .Dd
sbruno [Mon, 13 Oct 2014 21:08:27 +0000 (21:08 +0000)]
Bump .Dd

Submitted by: gjb
MFC after: 2 weeks
Relnotes: yes

9 years agoHandle small file case with regards to plpmtud blackhole detection.
sbruno [Mon, 13 Oct 2014 21:06:21 +0000 (21:06 +0000)]
Handle small file case with regards to plpmtud blackhole detection.

Submitted by: Mikhail <mp@lenta.ru>
MFC after: 2 weeks
Relnotes: yes

9 years agoCatch ipv6 case when attempting to do PLPMTUD blackhole detection.
sbruno [Mon, 13 Oct 2014 21:05:29 +0000 (21:05 +0000)]
Catch ipv6 case when attempting to do PLPMTUD blackhole detection.

Submitted by: Mikhail <mp@lenta.ru>
MFC after: 2 weeks
Relnotes: yes

9 years agoUpdate tcp(4) with plpmtud blackhole sysctls
sbruno [Mon, 13 Oct 2014 21:04:14 +0000 (21:04 +0000)]
Update tcp(4) with plpmtud blackhole sysctls

Submitted by: Mikhail <mp@lenta.ru>
MFC after: 2 weeks
Relnotes: yes

9 years agoUse write_psize instead of write_asize when doing vdev_space_update.
delphij [Mon, 13 Oct 2014 20:39:51 +0000 (20:39 +0000)]
Use write_psize instead of write_asize when doing vdev_space_update.
Without this change the accounting of L2ARC usage would be wrong and
give 16EB free space because the number became negative and overflows.

Obtained from: FreeNAS (issue #6239)
MFC after: 2 weeks

9 years agoFix compiler locking diagnostic warnings.
hselasky [Mon, 13 Oct 2014 19:05:18 +0000 (19:05 +0000)]
Fix compiler locking diagnostic warnings.

PR: 194289

9 years agoRepair build of tools/ath/athalq and define missing value len.
sbruno [Mon, 13 Oct 2014 16:48:01 +0000 (16:48 +0000)]
Repair build of tools/ath/athalq and define missing value len.

Reviewed by: adrian

9 years agoMove the sdhci option to files.ti, it's common to both SoCs.
andrew [Mon, 13 Oct 2014 16:40:40 +0000 (16:40 +0000)]
Move the sdhci option to files.ti, it's common to both SoCs.

9 years agoRemove the omap3 directory that should have happened in r273041.
andrew [Mon, 13 Oct 2014 16:37:34 +0000 (16:37 +0000)]
Remove the omap3 directory that should have happened in r273041.

9 years agoDecode the arguments passed to _umtx_op(). In particular, decode the
jhb [Mon, 13 Oct 2014 16:37:06 +0000 (16:37 +0000)]
Decode the arguments passed to _umtx_op().  In particular, decode the
opcode.

MFC after: 1 week
Sponsored by: Norse

9 years agoUse a switch on ti_chip() to find which SoC we are on. This allow us t
andrew [Mon, 13 Oct 2014 16:33:08 +0000 (16:33 +0000)]
Use a switch on ti_chip() to find which SoC we are on. This allow us t
only enable support for the SoCs we are built for.

9 years agoUse the C99 flexible array construct to denote a variable amount of
imp [Mon, 13 Oct 2014 16:23:58 +0000 (16:23 +0000)]
Use the C99 flexible array construct to denote a variable amount of
data rather than the old-school [1] construct. We have required c99
compilers for some time.

9 years agoclass, subclass and progif were never used, so don't bother setting
imp [Mon, 13 Oct 2014 16:23:51 +0000 (16:23 +0000)]
class, subclass and progif were never used, so don't bother setting
them.

9 years agoRemove ti_mmchs.c, it has been replaced by ti_sdhci.c.
andrew [Mon, 13 Oct 2014 16:20:04 +0000 (16:20 +0000)]
Remove ti_mmchs.c, it has been replaced by ti_sdhci.c.

9 years agoFix most of the warnings in kdump(1).
jhb [Mon, 13 Oct 2014 16:17:42 +0000 (16:17 +0000)]
Fix most of the warnings in kdump(1).

Sponsored by: Norse

9 years agoRemove the need for files.beaglebone and std.beaglebone by moving the one
andrew [Mon, 13 Oct 2014 16:16:32 +0000 (16:16 +0000)]
Remove the need for files.beaglebone and std.beaglebone by moving the one
option they defined into files.am335x.

9 years agoDon't confuse frontend with zero length data moves, just return immediately.
mav [Mon, 13 Oct 2014 16:15:32 +0000 (16:15 +0000)]
Don't confuse frontend with zero length data moves, just return immediately.

MFC after: 1 week

9 years agoSort the files in the am355x directory.
andrew [Mon, 13 Oct 2014 16:12:28 +0000 (16:12 +0000)]
Sort the files in the am355x directory.

9 years agoStart removing the omap3 support. In base it was only ever a header and a
andrew [Mon, 13 Oct 2014 15:35:08 +0000 (15:35 +0000)]
Start removing the omap3 support. In base it was only ever a header and a
few changes to drivers, no kernel config was added. As the SoCs are quite
old and the code is unmaintained start the process of removing support by
deleting the header file and code that depends on it along with the macro
SOC_OMAP3. Other Ti SoCs shouldn't be affected, other than for us to have
less code to maintain.

Differential Revision: https://reviews.freebsd.org/D936
Reviewed by: rpaulo, loos

9 years agoFix for build issue on i386.xen and amd64.xen.
kadesai [Mon, 13 Oct 2014 15:33:27 +0000 (15:33 +0000)]
Fix for build issue on i386.xen and amd64.xen.

This is a duplicate variable reference in mrsas, so now this patch isolate atomic_ variable and relavent
function call using prefix mrsas_xx.

Issue was introduced in r272737.

MFC after: 2 weeks
Sponsored by: Avago Technology

9 years agoAdd support for READ DEFECT DATA (10/12) commands.
mav [Mon, 13 Oct 2014 14:48:49 +0000 (14:48 +0000)]
Add support for READ DEFECT DATA (10/12) commands.

SPC-4 r2 allows to return empty defect list if the list is not supported.
We don't reallu support defect data lists, but this suppresses some errors.

MFC after: 1 week

9 years agoFix matching default rule on clear/show commands.
melifaro [Mon, 13 Oct 2014 13:49:28 +0000 (13:49 +0000)]
Fix matching default rule on clear/show commands.

Found by: Oleg Ginzburg

9 years agoAdd one more AMD Kaveri APU device ID.
brueffer [Mon, 13 Oct 2014 13:13:42 +0000 (13:13 +0000)]
Add one more AMD Kaveri APU device ID.

Submitted by: Remy Nonnenmacher <remy.nonnenmacher@activnetworks.com>
MFC after: 1 week

9 years agoShow error when deleting non-existing rule number.
melifaro [Mon, 13 Oct 2014 12:49:04 +0000 (12:49 +0000)]
Show error when deleting non-existing rule number.

Found by: Oleg Ginzburg

9 years ago* Fix zeroing individual entries via ipfw(8).
melifaro [Mon, 13 Oct 2014 11:26:17 +0000 (11:26 +0000)]
* Fix zeroing individual entries via ipfw(8).
* Report error and return non-zero exit code if zeroing non-matched entries

Found by: Oleg Ginzburg

9 years agoReport physical block size for file-backed LUNs, using vattr.va_blocksize.
mav [Mon, 13 Oct 2014 11:00:58 +0000 (11:00 +0000)]
Report physical block size for file-backed LUNs, using vattr.va_blocksize.

MFC after: 1 week

9 years agoEliminate unnecessary checking for M_EXT on mbufs returned by m_getjcl().
rwatson [Mon, 13 Oct 2014 06:51:40 +0000 (06:51 +0000)]
Eliminate unnecessary checking for M_EXT on mbufs returned by m_getjcl().

Reviewed by: bz, glebius, yongari
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D938

9 years agoMake sure correct object code is generated at -O0.
np [Mon, 13 Oct 2014 06:50:08 +0000 (06:50 +0000)]
Make sure correct object code is generated at -O0.

Submitted by: grehan@
Approved by: so@ (des)
MFC after: 1 month

9 years agoAdd a tunable for arc_shrink_shift (vfs.zfs.arc_shrink_shift) that
delphij [Mon, 13 Oct 2014 05:34:10 +0000 (05:34 +0000)]
Add a tunable for arc_shrink_shift (vfs.zfs.arc_shrink_shift) that
controls how much fraction, 1/2^arc_shrink_shift, should be reclaimed
when there is memory pressure.

Submitted by: Richard Kojedzinszky <krichy at tvnetwork.hu>
MFC after: 2 weeks

9 years agoChange ATF_REQUIRE_MSG calls to ATF_CHECK_MSG to get as many errors as possible
ngie [Mon, 13 Oct 2014 03:55:47 +0000 (03:55 +0000)]
Change ATF_REQUIRE_MSG calls to ATF_CHECK_MSG to get as many errors as possible

t_strptime:common..
- Expect the testcase body as a whole to fail. Multiple PRs will be filed to
track the issues (there are 18 check failures)

t_strptime:day..
- %EA and %OA seem to be case insensitive on FreeBSD

9 years agoOnly test the return value in mktime_negyear
ngie [Mon, 13 Oct 2014 02:44:35 +0000 (02:44 +0000)]
Only test the return value in mktime_negyear

Testing for the errno is an optional requirement according to POSIX, and
FreeBSD doesn't document that errno would be set on failure with mktime

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

9 years ago__isnanl is automatically picked according to data type in <math.h>. There
ngie [Mon, 13 Oct 2014 02:32:37 +0000 (02:32 +0000)]
__isnanl is automatically picked according to data type in <math.h>. There
isn't a need for the explicit __isnanl test

Sponsored by: EMC / Isilon Storage Division

9 years agoAdd #include <stdio.h> to get sys_nerr definition
ngie [Mon, 13 Oct 2014 02:29:58 +0000 (02:29 +0000)]
Add #include <stdio.h> to get sys_nerr definition

Sponsored by: EMC / Isilon Storage Division

9 years agoUse 1 as a random seed, as recommended in srandom(3). Adjust the random values
ngie [Mon, 13 Oct 2014 02:27:59 +0000 (02:27 +0000)]
Use 1 as a random seed, as recommended in srandom(3). Adjust the random values
accordingly

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

9 years agomemmem with NUL length "needle" (aka small) strings on FreeBSD/OSX returns
ngie [Mon, 13 Oct 2014 02:23:24 +0000 (02:23 +0000)]
memmem with NUL length "needle" (aka small) strings on FreeBSD/OSX returns
NULL instead of the "haystack" value (aka big)

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoDo initial port of contrib/netbsd-tests/lib/libc/locale
ngie [Mon, 13 Oct 2014 01:14:01 +0000 (01:14 +0000)]
Do initial port of contrib/netbsd-tests/lib/libc/locale

t_io:
- Expect failures potentially related to implementation-specific knowledge of
the zh_TW.Big5 locale [*]

t_mbrtowc:
- Handle unknown locales more gracefully (do not test if the locale doesn't
exist)
- Expect failure with mbrtowc_internal dealing with Japanese locales
(potentially related to implementation detail knowledge of the ja_* locales) [*].

t_mbstowcs, t_mbtowc, t_wctomb:
- Handle unknown locales more gracefully (do not test if the locale doesn't
exist)

t_wcstod:
- Treat FreeBSD like NetBSD and Linux in the XXX: FIXME section

[*] More investigation is required to determine the root cause of the failures

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoRemove ALC_LOCK_ASSERT in alc_stop_queue(). This function is now
yongari [Mon, 13 Oct 2014 01:06:40 +0000 (01:06 +0000)]
Remove ALC_LOCK_ASSERT in alc_stop_queue().  This function is now
called in device attach without holding a driver lock so it
resulted in panic.

Reported by: markj

9 years agoAdd #include <stdio.h> for printf
ngie [Mon, 13 Oct 2014 00:33:59 +0000 (00:33 +0000)]
Add #include <stdio.h> for printf

Sponsored by: EMC / Isilon Storage Division

9 years agoCheck error return from reading integer part of temperature.
jhibbits [Sun, 12 Oct 2014 23:48:55 +0000 (23:48 +0000)]
Check error return from reading integer part of temperature.

There's a very remote, but possible, chance that the integer part read will
fail, but the fraction read succeeds, at which point the reported temperature is
invalid.

Reported by: Matthew Rezny
MFC after: 3 weeks

9 years agoExpect nice_err to fail on FreeBSD with unprivileged users
ngie [Sun, 12 Oct 2014 23:46:24 +0000 (23:46 +0000)]
Expect nice_err to fail on FreeBSD with unprivileged users

PR: 189821
Sponsored by: EMC / Isilon Storage Division

9 years agoA connection in TIME_WAIT state before calling close() actually did not
jch [Sun, 12 Oct 2014 23:01:25 +0000 (23:01 +0000)]
A connection in TIME_WAIT state before calling close() actually did not
received any RST packet.  Do not set error to ECONNRESET in this case.

Differential Revision: https://reviews.freebsd.org/D879
Reviewed by: rpaulo, adrian
Approved by: jhb (mentor)
Sponsored by: Verisign, Inc.

9 years agos/-/_/ in name.
hrs [Sun, 12 Oct 2014 22:11:28 +0000 (22:11 +0000)]
s/-/_/ in name.

9 years ago- Add libutil #include for fparseln
ngie [Sun, 12 Oct 2014 21:59:23 +0000 (21:59 +0000)]
- Add libutil #include for fparseln
- Change ATF_REQUIRE_EQ_MSG to ATF_CHECK_EQ_MSG to gather all failing results
  possible (currently 12 with leftassoc)
- Mark leftassoc "atf_tc_expect_fail" on FreeBSD (PR coming soon after further
  analysis is done on the code)

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoFix compilation errors with missing wide-type headers and fix compilation
ngie [Sun, 12 Oct 2014 21:54:55 +0000 (21:54 +0000)]
Fix compilation errors with missing wide-type headers and fix compilation
warnings with -Wformat

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoImplement 64MB memory limit for test to ensure that it fails reliably in
ngie [Sun, 12 Oct 2014 21:53:13 +0000 (21:53 +0000)]
Implement 64MB memory limit for test to ensure that it fails reliably in
600 seconds; it would previously fail inconsistently when run in some virtual
machine configurations

This patch might need to be reverted or revisited later (see the attached PR
for more details)

PR: 169302

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd an AC line monitor so power_profile can work
jhibbits [Sun, 12 Oct 2014 19:12:48 +0000 (19:12 +0000)]
Add an AC line monitor so power_profile can work

Summary:
Add a polling loop (1Hz) to monitor the battery and AC status, to notify devd
like ACPI does for power monitoring.  This allows /etc/rc.d/power_profile to
work on PowerPC laptops

Test Plan:
Tested on a Titanium PowerBook, configuring economy_cpu_freq and
performance_cpu_freq, disabling powerd.

Reviewers: #powerpc, nwhitehorn

Reviewed By: nwhitehorn

Subscribers: rpaulo

Differential Revision: https://reviews.freebsd.org/D937

9 years agoRemove stale comments.
mav [Sun, 12 Oct 2014 18:57:22 +0000 (18:57 +0000)]
Remove stale comments.

9 years agoddb: ANSI-fy function declarations.
pfg [Sun, 12 Oct 2014 18:01:52 +0000 (18:01 +0000)]
ddb: ANSI-fy function declarations.

MFC after: 5 days

9 years agoOnly allow ZFS boot on GPT; the MBR ZFS bootblocks cannot be installed using
nwhitehorn [Sun, 12 Oct 2014 17:59:31 +0000 (17:59 +0000)]
Only allow ZFS boot on GPT; the MBR ZFS bootblocks cannot be installed using
gpart bootcode as /boot/zfsboot needs to be split into multiple pieces by
hand and copied to different areas of the partition.

9 years agoUse the FIFOs in the imx5/imx6 uart hardware instead of interrupting on
ian [Sun, 12 Oct 2014 17:56:02 +0000 (17:56 +0000)]
Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting on
each byte sent or received.

9 years agoCentralize determination of boot firmware (UEFI vs. BIOS/CSM) into a
nwhitehorn [Sun, 12 Oct 2014 17:50:25 +0000 (17:50 +0000)]
Centralize determination of boot firmware (UEFI vs. BIOS/CSM) into a
function x86_bootmethod() and fix deviations from style(9).

9 years agoWhen deciding whether to call m_pullup() even though there is adequate
rwatson [Sun, 12 Oct 2014 15:49:52 +0000 (15:49 +0000)]
When deciding whether to call m_pullup() even though there is adequate
data in an mbuf, use M_WRITABLE() instead of a direct test of M_EXT;
the latter both unnecessarily exposes mbuf-allocator internals in the
protocol stack and is also insufficient to catch all cases of
non-writability.

(NB: m_pullup() does not actually guarantee that a writable mbuf is
returned, so further refinement of all of these code paths continues to
be required.)

Reviewed by: bz
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D900

9 years agosh: Fix break/continue/return in multiline eval.
jilles [Sun, 12 Oct 2014 13:12:06 +0000 (13:12 +0000)]
sh: Fix break/continue/return in multiline eval.

Example:
  eval $'return\necho bad'

9 years ago#include libutil.h for fparseln on FreeBSD
ngie [Sun, 12 Oct 2014 10:07:26 +0000 (10:07 +0000)]
#include libutil.h for fparseln on FreeBSD

Sponsored by: EMC / Isilon Storage Division

9 years agoOnly #include <sys/tls.h> on NetBSD
ngie [Sun, 12 Oct 2014 10:04:59 +0000 (10:04 +0000)]
Only #include <sys/tls.h> on NetBSD

Sponsored by: EMC / Isilon Storage Division

9 years agoImprove and document `ctladm portlist` subcommand.
mav [Sun, 12 Oct 2014 06:55:34 +0000 (06:55 +0000)]
Improve and document `ctladm portlist` subcommand.

Make this subcommand less FC-specific, reporting target and port addresses
in more generic way.  Also make it report list of connected initiators in
unified way, working for both FC and iSCSI, and potentially others.

MFC after: 1 week

9 years agoAdd env and prepend to _rc_namevarlist.
hrs [Sun, 12 Oct 2014 02:42:36 +0000 (02:42 +0000)]
Add env and prepend to _rc_namevarlist.

9 years agoAdd ${name}_env and ${name}_prepend. ${name}_env is an argument list which
hrs [Sat, 11 Oct 2014 23:49:27 +0000 (23:49 +0000)]
Add ${name}_env and ${name}_prepend.  ${name}_env is an argument list which
will be passed to env(1).  ${name}_prepend is simply prepended to the command
line for $command.

9 years agoCheck buffer length more strictly.
hrs [Sat, 11 Oct 2014 23:24:09 +0000 (23:24 +0000)]
Check buffer length more strictly.

MFC after: 1 day

9 years agoFix off-by-one.
hrs [Sat, 11 Oct 2014 23:08:00 +0000 (23:08 +0000)]
Fix off-by-one.

MFC after: 1 day

9 years agopstat(8): Correct description of the SESS column in pstat -t.
jilles [Sat, 11 Oct 2014 21:53:06 +0000 (21:53 +0000)]
pstat(8): Correct description of the SESS column in pstat -t.

MFC after: 1 week

9 years agoAdd a new option, -P, to pkt-gen which reads a single packet from a stored
gnn [Sat, 11 Oct 2014 21:43:05 +0000 (21:43 +0000)]
Add a new option, -P, to pkt-gen which reads a single packet from a stored
pcap file and transmits it instead of the default UDP packet.

Reviewed by: luigi
MFC after: 2 weeks

9 years agoFix buffer overrun.
hrs [Sat, 11 Oct 2014 20:46:06 +0000 (20:46 +0000)]
Fix buffer overrun.

MFC after: 1 day

9 years agoRename s/network/netif/ and set netif_enable for namespace consistency.
hrs [Sat, 11 Oct 2014 20:28:04 +0000 (20:28 +0000)]
Rename s/network/netif/ and set netif_enable for namespace consistency.

9 years agoddb: space/tab fixes.
pfg [Sat, 11 Oct 2014 20:25:19 +0000 (20:25 +0000)]
ddb: space/tab fixes.

No functional change.

MFC after: 3 days

9 years agoAdd locking and mark MPSAFE.
jhb [Sat, 11 Oct 2014 19:36:59 +0000 (19:36 +0000)]
Add locking and mark MPSAFE.
- Add a mutex to protect the softc.
- Use callout(9) instead of timeout(9).
- Consolidate duplicated detach routines into a bus-independent detach
  routine.
- Add an extra sleep lock flag (MSESC_READING) to prevent other readers
  from reading while the first reader is copying data out of sc_bytes[]
  via uiomove().
- Use bus_*() instead of bus_space_*().

Tested by: nyan

9 years agoDo not set IN_ACCESS flag for read-only mounts. The IN_ACCESS
kib [Sat, 11 Oct 2014 19:09:56 +0000 (19:09 +0000)]
Do not set IN_ACCESS flag for read-only mounts.  The IN_ACCESS
survives remount in rw, also it is set for vnodes on rootfs before
noatime can be set or clock is adjusted.  All conditions result in
wrong atime for accessed vnodes.

Submitted by: bde
MFC after: 1 week

9 years agoBump FreeBSD_version due to cleanup of tcp wrapper header.
pfg [Sat, 11 Oct 2014 18:58:58 +0000 (18:58 +0000)]
Bump FreeBSD_version due to cleanup of tcp wrapper header.

Due to revisions r272949 and r272950 which should affect
positively some ports.

9 years agotcpd.h: add prototype for hosts_ctl
pfg [Sat, 11 Oct 2014 18:54:37 +0000 (18:54 +0000)]
tcpd.h: add prototype for hosts_ctl

According the hosts_access(3) man page the hosts_ctl() prototype
should be in tcpd.h. For now, follow other declarations and don't
add the arguments in the prototype.

Reference:
https://www.illumos.org/issues/4385

PR: 32808
MFC after: 2 weeks

9 years agotcpd: complete function prototypes.
pfg [Sat, 11 Oct 2014 18:34:10 +0000 (18:34 +0000)]
tcpd: complete function prototypes.

This clears up at least a build issues on mysql-server
ports. While here also replace some spaces with tabs
in our headers.

PR: 42336
MFC after: 2 weeks

9 years agoGive physical and virtual ports numbers some more meaning.
mav [Sat, 11 Oct 2014 17:52:54 +0000 (17:52 +0000)]
Give physical and virtual ports numbers some more meaning.

9 years agoFix nits in previous commit:
marcel [Sat, 11 Oct 2014 16:34:01 +0000 (16:34 +0000)]
Fix nits in previous commit:
1.  Remove initializer for badstack_sbuf_size; it gets set unconditionally.
2.  Remove meaningless comment.
3.  Group witness_count and its sysctl together.
4.  Fix spacing in for statements (space after for and within condition).
5.  Change *all* M_NOWAIT usages in witness_initialize() to M_WAITOK; not
    just those that were newly introduced -- the allocation is assumed to
    succeed for all allocations.
6.  Avoid using uint8_t as the base type in sizeof() expressions; Use the
    variable name (w_rmatrix) as much as possible.

Pointed out by: jhb@ (thanks!)

9 years agoMFi386 r272761.
kib [Sat, 11 Oct 2014 16:17:49 +0000 (16:17 +0000)]
MFi386 r272761.

Noted by: Holger Hans Peter Freyther <holger at freyther.de>
Sponsored by: The FreeBSD Foundation
MFC after: 10 days

9 years agoUpdate ip_divert.ko to depend on version 3 of ipfw.
jhb [Sat, 11 Oct 2014 16:08:54 +0000 (16:08 +0000)]
Update ip_divert.ko to depend on version 3 of ipfw.

9 years agoFix KASSERT typo.
melifaro [Sat, 11 Oct 2014 15:04:50 +0000 (15:04 +0000)]
Fix KASSERT typo.

9 years agoShorten frontend name.
mav [Sat, 11 Oct 2014 12:56:49 +0000 (12:56 +0000)]
Shorten frontend name.

9 years agoFilter out duplicate AC_PATH_REGISTERED async events.
mav [Sat, 11 Oct 2014 10:19:37 +0000 (10:19 +0000)]
Filter out duplicate AC_PATH_REGISTERED async events.

Queued async events handling in CAM opened race, that may lead to duplicate
AC_PATH_REGISTERED events delivery during boot.  That was not happening
before r272935 because the driver was initialized later.  After that change
it started create duplicate ports in CTL.

9 years agoFix r272936 build with old GCC.
mav [Sat, 11 Oct 2014 08:50:19 +0000 (08:50 +0000)]
Fix r272936 build with old GCC.

MFC after: 1 week

9 years agoUpdate isp_tgt_map and send new arrival notification if target that departed
mav [Sat, 11 Oct 2014 07:59:15 +0000 (07:59 +0000)]
Update isp_tgt_map and send new arrival notification if target that departed
earlier has returned.  Previously that code worked only once, confusing CTL.

MFC after: 1 month

9 years agoMark CTL frontend's CAM driver as CAM_PERIPH_DRV_EARLY.
mav [Sat, 11 Oct 2014 07:49:27 +0000 (07:49 +0000)]
Mark CTL frontend's CAM driver as CAM_PERIPH_DRV_EARLY.

Target mode operation does not depend on the initiator mode scan process.
This change allows the target driver to attach earlier and receive some
async events (like AC_CONTRACT) that could be lost otherwise.

MFC after: 1 week

9 years agoMark iscontrol(8) and iscsi_initiator(4) obsolete.
trasz [Sat, 11 Oct 2014 05:18:22 +0000 (05:18 +0000)]
Mark iscontrol(8) and iscsi_initiator(4) obsolete.

Differential Revision: https://reviews.freebsd.org/D931
Reviewed by: wblock@
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoAdd assertion to catch duplicated notes.
trasz [Sat, 11 Oct 2014 05:11:23 +0000 (05:11 +0000)]
Add assertion to catch duplicated notes.

Sponsored by: The FreeBSD Foundation

9 years agoTurn WITNESS_COUNT into a tunable and sysctl. This allows adjusting
marcel [Sat, 11 Oct 2014 02:02:58 +0000 (02:02 +0000)]
Turn WITNESS_COUNT into a tunable and sysctl. This allows adjusting
the value without recompiling the kernel.  This is useful when
recompiling is not possible as an immediate solution. When we run out
of witness objects, witness is completely disabled. Not having an
immediate solution can therefore be problematic.

Submitted by: Sreekanth Rupavatharam <rupavath@juniper.net>
Obtained from: Juniper Networks, Inc.

9 years agoAdd LDFLAGS to PROG_VARS so it can be overridden on a per-PROG basis
ngie [Fri, 10 Oct 2014 22:18:09 +0000 (22:18 +0000)]
Add LDFLAGS to PROG_VARS so it can be overridden on a per-PROG basis

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoPort the testcase to FreeBSD
ngie [Fri, 10 Oct 2014 21:22:25 +0000 (21:22 +0000)]
Port the testcase to FreeBSD

- Make #include path to h_macros.h a non-relative path
- __gl_stat_t is synonymous with struct stat on FreeBSD
- FreeBSD doesn't have _DIRENT_RECLEN
- Skip over glob_star on FreeBSD (testcase doesn't pass)

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoSkip over t_spawn_open_nonexistent_diag because it requires NetBSD specific
ngie [Fri, 10 Oct 2014 21:19:17 +0000 (21:19 +0000)]
Skip over t_spawn_open_nonexistent_diag because it requires NetBSD specific
additions to posix_spawn

Sponsored by: EMC / Isilon Storage Division

9 years agoRemove redundant if_notifier declaration.
melifaro [Fri, 10 Oct 2014 20:37:06 +0000 (20:37 +0000)]
Remove redundant if_notifier declaration.

9 years agoMake ctld start even if some LUNs are unable to open backing storage.
mav [Fri, 10 Oct 2014 19:41:09 +0000 (19:41 +0000)]
Make ctld start even if some LUNs are unable to open backing storage.

Such LUNs will be visible to initiators, but return "not ready" status
on media access commands.  If backing storage become available later,
`ctladm modify ...` or `service ctld reload` can trigger its reopen.

9 years agoSIGPWR does not exist on FreeBSD
ngie [Fri, 10 Oct 2014 19:34:19 +0000 (19:34 +0000)]
SIGPWR does not exist on FreeBSD

Sponsored by: EMC / Isilon Storage Division

9 years agoHandle getting/setting niceness/priority correctly on FreeBSD vs NetBSD
ngie [Fri, 10 Oct 2014 19:32:53 +0000 (19:32 +0000)]
Handle getting/setting niceness/priority correctly on FreeBSD vs NetBSD

This might be fallout from PR: 189821

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoDisable the invalid pointer test on FreeBSD
ngie [Fri, 10 Oct 2014 19:28:57 +0000 (19:28 +0000)]
Disable the invalid pointer test on FreeBSD

FreeBSD segfaults on invalid pointers passed to getcwd because it throbs the
address passed in in libc, whereas NetBSD just passes the information off to
the syscall, which allows the kernel to return EFAULT on bad pointers.

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoMake MAP_NOSYNC handling in the vm_fault() read-locked object path
kib [Fri, 10 Oct 2014 19:27:36 +0000 (19:27 +0000)]
Make MAP_NOSYNC handling in the vm_fault() read-locked object path
compatible with write-locked path.  Test for MAP_ENTRY_NOSYNC and set
VPO_NOSYNC for pages with dirty mask zero (this does not exclude a
possibility that the page is dirty, e.g. due to read fault on
writeable mapping and consequent write; the same issue exists in the
slow path).

Use helper vm_fault_dirty() to unify fast and slow path handling of
VPO_NOSYNC and setting the dirty mask.

Reviewed by: alc
Sponsored by: The FreeBSD Foundation

9 years agoChange the PF hash from Jenkins to Murmur3. In forwarding tests
gnn [Fri, 10 Oct 2014 19:26:26 +0000 (19:26 +0000)]
Change the PF hash from Jenkins to Murmur3.  In forwarding tests
this showed a conservative 3% incrase in PPS.

Differential Revision: https://reviews.freebsd.org/D461
Submitted by: des
Reviewed by: emaste
MFC after: 1 month

9 years agoFreeBSD doesn't support strings greater than MAXHOSTNAMELEN-1 in
ngie [Fri, 10 Oct 2014 19:18:52 +0000 (19:18 +0000)]
FreeBSD doesn't support strings greater than MAXHOSTNAMELEN-1 in
{get,set}{domain,host}name. Adjust the tests to not exceed that
value when testing out the code

Add a positive and negative test for MAXHOSTNAMELEN-1 and
MAXHOSTNAMELEN, respectively

PR: 181127
In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoDon't pass RF_ALLOCATED to bus_alloc_resource().
jhb [Fri, 10 Oct 2014 19:12:04 +0000 (19:12 +0000)]
Don't pass RF_ALLOCATED to bus_alloc_resource().

9 years agoFreeBSD returns ENOTTY instead of EBADF in ttyname_r; mark it as an expected
ngie [Fri, 10 Oct 2014 19:02:02 +0000 (19:02 +0000)]
FreeBSD returns ENOTTY instead of EBADF in ttyname_r; mark it as an expected
failure

PR: 191936

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd missing #include <sys/time.h> for gettimeofday
ngie [Fri, 10 Oct 2014 18:59:18 +0000 (18:59 +0000)]
Add missing #include <sys/time.h> for gettimeofday

Sponsored by: EMC / Isilon Storage Division

9 years agoDisable tests that don't pass on FreeBSD due to missing support in
ngie [Fri, 10 Oct 2014 18:57:39 +0000 (18:57 +0000)]
Disable tests that don't pass on FreeBSD due to missing support in
humanize_number(3). Bringing in additional revisions from NetBSD's
humanize_number(3) will fix the tests

Account for the fact that util.h on NetBSD is libutil.h on FreeBSD

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division