svn commit: r272977 - stable/10/sys/cam

2014-10-12 Thread Alexander Motin
Author: mav Date: Sun Oct 12 06:14:50 2014 New Revision: 272977 URL: https://svnweb.freebsd.org/changeset/base/272977 Log: Use proper variable when looping through periphs with CAM_PERIPH_FREE. PR: 194256 Submitted by: Scott M. Ferris smfer...@gmail.com Sponsored by:

svn commit: r272978 - in head: sys/cam/ctl usr.sbin/ctladm

2014-10-12 Thread Alexander Motin
Author: mav Date: Sun Oct 12 06:55:34 2014 New Revision: 272978 URL: https://svnweb.freebsd.org/changeset/base/272978 Log: Improve and document `ctladm portlist` subcommand. Make this subcommand less FC-specific, reporting target and port addresses in more generic way. Also make it

svn commit: r272979 - in head/contrib/netbsd-tests/lib/libc: tls tls/dso tls_dso

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Sun Oct 12 10:04:59 2014 New Revision: 272979 URL: https://svnweb.freebsd.org/changeset/base/272979 Log: Only #include sys/tls.h on NetBSD Sponsored by: EMC / Isilon Storage Division Modified: head/contrib/netbsd-tests/lib/libc/tls/dso/h_tls_dlopen.c

svn commit: r272980 - head/contrib/netbsd-tests/lib/libc/stdlib

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Sun Oct 12 10:07:26 2014 New Revision: 272980 URL: https://svnweb.freebsd.org/changeset/base/272980 Log: #include libutil.h for fparseln on FreeBSD Sponsored by: EMC / Isilon Storage Division Modified: head/contrib/netbsd-tests/lib/libc/stdlib/h_getopt_long.c

svn commit: r272981 - releng/10.1/sys/dev/hwpmc

2014-10-12 Thread Bjoern A. Zeeb
Author: bz Date: Sun Oct 12 10:39:59 2014 New Revision: 272981 URL: https://svnweb.freebsd.org/changeset/base/272981 Log: MFS r272892 (r272713 in head): Since introducing the extra mapping in r250103 (head) for architectural performance events we have actually counted 'Branch

svn commit: r272983 - in head/bin/sh: . tests/builtins

2014-10-12 Thread Jilles Tjoelker
Author: jilles Date: Sun Oct 12 13:12:06 2014 New Revision: 272983 URL: https://svnweb.freebsd.org/changeset/base/272983 Log: sh: Fix break/continue/return in multiline eval. Example: eval $'return\necho bad' Added: head/bin/sh/tests/builtins/eval7.0 (contents, props changed)

Re: svn commit: r272952 - in head/sys: fs/ext2fs fs/msdosfs ufs/ffs

2014-10-12 Thread Bruce Evans
On Sat, 11 Oct 2014, Konstantin Belousov wrote: Log: 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.

Re: svn commit: r272952 - in head/sys: fs/ext2fs fs/msdosfs ufs/ffs

2014-10-12 Thread Konstantin Belousov
On Mon, Oct 13, 2014 at 12:39:54AM +1100, Bruce Evans wrote: @@ -627,7 +627,7 @@ ffs_read(ap) } if ((error == 0 || uio-uio_resid != orig_resid) - (vp-v_mount-mnt_flag MNT_NOATIME) == 0 + (vp-v_mount-mnt_flag (MNT_NOATIME | MNT_RDONLY)) == 0 (ip-i_flag

svn commit: r272984 - in head/sys: netinet netinet6

2014-10-12 Thread Robert Watson
Author: rwatson Date: Sun Oct 12 15:49:52 2014 New Revision: 272984 URL: https://svnweb.freebsd.org/changeset/base/272984 Log: 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

svn commit: r272985 - stable/10/contrib/ipfilter/lib

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 16:46:03 2014 New Revision: 272985 URL: https://svnweb.freebsd.org/changeset/base/272985 Log: MFC r271970 ipv6 address for test.hosts.dots in wrong byte order. Obtained from:ipfilter CVS repo (r1.11), netbsd CVS repo (r1.5) Modified:

svn commit: r272986 - stable/10/contrib/ipfilter/lib

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 16:48:22 2014 New Revision: 272986 URL: https://svnweb.freebsd.org/changeset/base/272986 Log: MFC r271971 Fix ipfilter bug #553 gethost needs to zero entire IP address structure. Obtained from:ipfilter CVS repo (r1.11) Modified:

svn commit: r272987 - stable/10/contrib/ipfilter/lib

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 16:51:02 2014 New Revision: 272987 URL: https://svnweb.freebsd.org/changeset/base/272987 Log: MFC r271972 Fix ipfilter bug #536 ipnat can try to print rule as dstlist incorrectly. Obtained from:ipfilter CVS repo (r1.14), netbsd CVS repo (r1.3)

svn commit: r272988 - stable/10/contrib/ipfilter/tools

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 16:55:26 2014 New Revision: 272988 URL: https://svnweb.freebsd.org/changeset/base/272988 Log: MFC r271974 ipfilter bug #551 ipf.conf address structure not properly zero filled. Obtained from:ipfilter CVS repo (r1.37), netbsd CVS repo (r1.3)

svn commit: r272989 - stable/10/contrib/ipfilter/tools

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 16:58:45 2014 New Revision: 272989 URL: https://svnweb.freebsd.org/changeset/base/272989 Log: MFC r271977 3561691 gethost never returns an ipv6 address Obtained from:ipfilter CVS repo (r1.34), netbsd CVS repo (r1.4) Modified:

svn commit: r272990 - stable/10/contrib/ipfilter/tools

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 17:03:47 2014 New Revision: 272990 URL: https://svnweb.freebsd.org/changeset/base/272990 Log: MFC r271978 ipfilter bug #552 destination port not zero after parsing nat rule. Obtained from:netbsd CVS repo (r1.4), ipfilter CVS repo (r1.38) Modified:

svn commit: r272991 - in releng/10.1: share/man/man4 sys/netinet sys/netinet6

2014-10-12 Thread Michael Tuexen
Author: tuexen Date: Sun Oct 12 17:07:15 2014 New Revision: 272991 URL: https://svnweb.freebsd.org/changeset/base/272991 Log: MFC r272627: Checksum coverage values larger than 65535 for UDPLite are invalid. Check for this when the user calls setsockopt using UDPLITE_{SEND,RECV}CSCOV.

svn commit: r272992 - stable/10/sys/contrib/ipfilter/netinet

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 17:08:44 2014 New Revision: 272992 URL: https://svnweb.freebsd.org/changeset/base/272992 Log: MFC r271980 Check for NULL before de-refencing; in particular sel is assigned to NULL, in the default case, and then couple of lines down we do sel- Obtained

svn commit: r272993 - stable/10/sys/contrib/ipfilter/netinet

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 17:10:44 2014 New Revision: 272993 URL: https://svnweb.freebsd.org/changeset/base/272993 Log: MFC r272052 ipfilter bug #558 add in some missing frag table function comments. Obtained from:ipfilter CVS repo (r1.36) Modified:

svn commit: r272994 - stable/10/sys/contrib/ipfilter/netinet

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 17:13:14 2014 New Revision: 272994 URL: https://svnweb.freebsd.org/changeset/base/272994 Log: MFC r272551 ipfiler bug #550 filter rule list corrupted with inserted rules Obtained from:ipfilter CVS repo (r1.128); NetBSD CVS repo (r1.15) Modified:

svn commit: r272995 - stable/10/sys/contrib/ipfilter/netinet

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 17:15:20 2014 New Revision: 272995 URL: https://svnweb.freebsd.org/changeset/base/272995 Log: MFC r272552 ipfilter bug #554 Determining why a ipf rule matches is hard -- replace ipfilter rule compare with new ipf_rule_compare() function. Obtained from:

svn commit: r272996 - stable/10/sys/contrib/ipfilter/netinet

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 17:17:19 2014 New Revision: 272996 URL: https://svnweb.freebsd.org/changeset/base/272996 Log: MFC r272553 ipfilter bug #538 ipf_p_dns_del should return void Obtained from:ipfilter cvs repo (r1.8) Modified:

svn commit: r272997 - stable/10/sys/contrib/ipfilter/netinet

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 17:19:11 2014 New Revision: 272997 URL: https://svnweb.freebsd.org/changeset/base/272997 Log: MFC r272554 ipfilter bug #534 destination list hashing not endian neutral Obtained from:ipfilter CVS repo (r1.26), NetBSD CVS repo (r1.8) Modified:

svn commit: r272998 - stable/10/sys/contrib/ipfilter/netinet

2014-10-12 Thread Cy Schubert
Author: cy Date: Sun Oct 12 17:21:15 2014 New Revision: 272998 URL: https://svnweb.freebsd.org/changeset/base/272998 Log: MFC r272555 ipfilter bug #537 NAT rules with sticky have incorrect hostmap IP address. This fixes when an IP address mapping is put in the hostmap table for sticky

svn commit: r272999 - stable/10/sys/netinet

2014-10-12 Thread Michael Tuexen
Author: tuexen Date: Sun Oct 12 17:36:41 2014 New Revision: 272999 URL: https://svnweb.freebsd.org/changeset/base/272999 Log: MFC r272571: Remove unused MC_ALIGN macro as suggested by Robert. Modified: stable/10/sys/netinet/sctp_output.c Directory Properties: stable/10/ (props changed)

svn commit: r273000 - stable/10/sys/netinet

2014-10-12 Thread Michael Tuexen
Author: tuexen Date: Sun Oct 12 17:39:37 2014 New Revision: 273000 URL: https://svnweb.freebsd.org/changeset/base/273000 Log: MFC r272750: Ensure that the number of stream reported in srs_number_streams is consistent with the amount of data provided in the SCTP_RESET_STREAMS socket

svn commit: r273001 - stable/10/sys/netinet

2014-10-12 Thread Michael Tuexen
Author: tuexen Date: Sun Oct 12 17:42:32 2014 New Revision: 273001 URL: https://svnweb.freebsd.org/changeset/base/273001 Log: MFC r272751: Ensure that the list of streams sent in a stream reset parameter fits in an mbuf-cluster. Thanks to Peter Bostroem for drawing my attention to this

svn commit: r273002 - stable/10/sys/netinet

2014-10-12 Thread Michael Tuexen
Author: tuexen Date: Sun Oct 12 17:45:22 2014 New Revision: 273002 URL: https://svnweb.freebsd.org/changeset/base/273002 Log: MFC r272841: Ensure that the flags field of sctp_tmit_chunks is initialized. Thanks to Peter Bostroem from Google for reporting the issue. Modified:

svn commit: r273003 - head/usr.sbin/bsdinstall/partedit

2014-10-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Oct 12 17:50:25 2014 New Revision: 273003 URL: https://svnweb.freebsd.org/changeset/base/273003 Log: Centralize determination of boot firmware (UEFI vs. BIOS/CSM) into a function x86_bootmethod() and fix deviations from style(9). Modified:

svn commit: r273004 - head/sys/dev/uart

2014-10-12 Thread Ian Lepore
Author: ian Date: Sun Oct 12 17:56:02 2014 New Revision: 273004 URL: https://svnweb.freebsd.org/changeset/base/273004 Log: Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting on each byte sent or received. Modified: head/sys/dev/uart/uart_dev_imx.c Modified:

svn commit: r273005 - head/usr.sbin/bsdinstall/partedit

2014-10-12 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Oct 12 17:59:31 2014 New Revision: 273005 URL: https://svnweb.freebsd.org/changeset/base/273005 Log: 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

svn commit: r273006 - head/sys/ddb

2014-10-12 Thread Pedro F. Giffuni
Author: pfg Date: Sun Oct 12 18:01:52 2014 New Revision: 273006 URL: https://svnweb.freebsd.org/changeset/base/273006 Log: ddb: ANSI-fy function declarations. MFC after:5 days Modified: head/sys/ddb/db_access.c head/sys/ddb/db_break.c head/sys/ddb/db_command.c

svn commit: r273007 - releng/10.1/sys/vm

2014-10-12 Thread Alan Cox
Author: alc Date: Sun Oct 12 18:53:45 2014 New Revision: 273007 URL: https://svnweb.freebsd.org/changeset/base/273007 Log: MFS: r272543 (r271351 on HEAD) Fix a boundary case error in vm_reserv_alloc_contig(). Approved by: re (kib) Modified: releng/10.1/sys/vm/vm_reserv.c Directory

svn commit: r273008 - head/sys/cam/ctl

2014-10-12 Thread Alexander Motin
Author: mav Date: Sun Oct 12 18:57:22 2014 New Revision: 273008 URL: https://svnweb.freebsd.org/changeset/base/273008 Log: Remove stale comments. Modified: head/sys/cam/ctl/scsi_ctl.c Modified: head/sys/cam/ctl/scsi_ctl.c

svn commit: r273009 - in head: etc/devd sys/powerpc/powermac

2014-10-12 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 12 19:12:48 2014 New Revision: 273009 URL: https://svnweb.freebsd.org/changeset/base/273009 Log: 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

Re: svn commit: r273009 - in head: etc/devd sys/powerpc/powermac

2014-10-12 Thread Justin Hibbits
On Sun, 12 Oct 2014 19:12:49 + (UTC) Justin Hibbits jhibb...@freebsd.org wrote: Author: jhibbits Date: Sun Oct 12 19:12:48 2014 New Revision: 273009 URL: https://svnweb.freebsd.org/changeset/base/273009 Log: Add an AC line monitor so power_profile can work Summary: Add a

svn commit: r273010 - head/contrib/netbsd-tests/lib/libc/regex

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Sun Oct 12 21:53:13 2014 New Revision: 273010 URL: https://svnweb.freebsd.org/changeset/base/273010 Log: 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

svn commit: r273011 - head/contrib/netbsd-tests/lib/libc/regex

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Sun Oct 12 21:54:55 2014 New Revision: 273011 URL: https://svnweb.freebsd.org/changeset/base/273011 Log: Fix compilation errors with missing wide-type headers and fix compilation warnings with -Wformat In collaboration with: pho Sponsored by: EMC / Isilon Storage

svn commit: r273012 - head/contrib/netbsd-tests/lib/libc/regex

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Sun Oct 12 21:59:23 2014 New Revision: 273012 URL: https://svnweb.freebsd.org/changeset/base/273012 Log: - 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

svn commit: r273013 - head/etc/rc.d

2014-10-12 Thread Hiroki Sato
Author: hrs Date: Sun Oct 12 22:11:28 2014 New Revision: 273013 URL: https://svnweb.freebsd.org/changeset/base/273013 Log: s/-/_/ in name. Modified: head/etc/rc.d/bgfsck Modified: head/etc/rc.d/bgfsck == ---

svn commit: r273014 - head/sys/netinet

2014-10-12 Thread Julien Charbon
Author: jch Date: Sun Oct 12 23:01:25 2014 New Revision: 273014 URL: https://svnweb.freebsd.org/changeset/base/273014 Log: 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:

svn commit: r273015 - head/contrib/netbsd-tests/lib/libc/gen

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Sun Oct 12 23:46:24 2014 New Revision: 273015 URL: https://svnweb.freebsd.org/changeset/base/273015 Log: Expect nice_err to fail on FreeBSD with unprivileged users PR: 189821 Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r273016 - head/sys/dev/iicbus

2014-10-12 Thread Justin Hibbits
Author: jhibbits Date: Sun Oct 12 23:48:55 2014 New Revision: 273016 URL: https://svnweb.freebsd.org/changeset/base/273016 Log: 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

svn commit: r273017 - head/contrib/netbsd-tests/lib/libc/locale

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Mon Oct 13 00:33:59 2014 New Revision: 273017 URL: https://svnweb.freebsd.org/changeset/base/273017 Log: Add #include stdio.h for printf Sponsored by: EMC / Isilon Storage Division Modified: head/contrib/netbsd-tests/lib/libc/locale/t_wcstod.c Modified:

svn commit: r273018 - head/sys/dev/alc

2014-10-12 Thread Pyun YongHyeon
Author: yongari Date: Mon Oct 13 01:06:40 2014 New Revision: 273018 URL: https://svnweb.freebsd.org/changeset/base/273018 Log: 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:

svn commit: r273019 - head/contrib/netbsd-tests/lib/libc/locale

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Mon Oct 13 01:14:01 2014 New Revision: 273019 URL: https://svnweb.freebsd.org/changeset/base/273019 Log: 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

svn commit: r273020 - head/contrib/netbsd-tests/lib/libc/string

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Mon Oct 13 02:23:24 2014 New Revision: 273020 URL: https://svnweb.freebsd.org/changeset/base/273020 Log: 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

svn commit: r273021 - head/contrib/netbsd-tests/lib/libc/string

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Mon Oct 13 02:27:59 2014 New Revision: 273021 URL: https://svnweb.freebsd.org/changeset/base/273021 Log: 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

svn commit: r273022 - head/contrib/netbsd-tests/lib/libc/string

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Mon Oct 13 02:29:58 2014 New Revision: 273022 URL: https://svnweb.freebsd.org/changeset/base/273022 Log: Add #include stdio.h to get sys_nerr definition Sponsored by: EMC / Isilon Storage Division Modified: head/contrib/netbsd-tests/lib/libc/string/t_strerror.c

svn commit: r273023 - head/contrib/netbsd-tests/lib/libc/stdlib

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Mon Oct 13 02:32:37 2014 New Revision: 273023 URL: https://svnweb.freebsd.org/changeset/base/273023 Log: __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

svn commit: r273024 - head/contrib/netbsd-tests/lib/libc/time

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Mon Oct 13 02:44:35 2014 New Revision: 273024 URL: https://svnweb.freebsd.org/changeset/base/273024 Log: 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

svn commit: r273025 - head/contrib/netbsd-tests/lib/libc/time

2014-10-12 Thread Garrett Cooper
Author: ngie Date: Mon Oct 13 03:55:47 2014 New Revision: 273025 URL: https://svnweb.freebsd.org/changeset/base/273025 Log: 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

svn commit: r273026 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2014-10-12 Thread Xin LI
Author: delphij Date: Mon Oct 13 05:34:10 2014 New Revision: 273026 URL: https://svnweb.freebsd.org/changeset/base/273026 Log: 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