]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agosh: Remove more gotos.
Jilles Tjoelker [Wed, 15 Oct 2014 21:20:56 +0000 (21:20 +0000)]
sh: Remove more gotos.

9 years agoMerge OpenSSL 1.0.1j.
Jung-uk Kim [Wed, 15 Oct 2014 19:29:22 +0000 (19:29 +0000)]
Merge OpenSSL 1.0.1j.

Relnotes: yes

9 years agoMerge OpenSSL 1.0.1j.
Jung-uk Kim [Wed, 15 Oct 2014 19:12:05 +0000 (19:12 +0000)]
Merge OpenSSL 1.0.1j.

9 years agoRemove setting BIO_DONE flag for BIOs that have done() method.
Alexander Motin [Wed, 15 Oct 2014 18:36:34 +0000 (18:36 +0000)]
Remove setting BIO_DONE flag for BIOs that have done() method.

This fixes use-after-free, caused by geom_disk, completing same BIO twice
to save extra allocation, and getting BIO_DONE set after the first.

MFC after: 1 week

9 years agoCorrect grammos.
Jens Schweikhardt [Wed, 15 Oct 2014 17:55:10 +0000 (17:55 +0000)]
Correct grammos.

MFC after: 3 weeks

9 years agoImport OpenSSL 1.0.1j.
Jung-uk Kim [Wed, 15 Oct 2014 17:32:57 +0000 (17:32 +0000)]
Import OpenSSL 1.0.1j.

9 years agoUpdate the OFED Linux compatibility layer and
Hans Petter Selasky [Wed, 15 Oct 2014 13:40:29 +0000 (13:40 +0000)]
Update the OFED Linux compatibility layer and
Mellanox hardware driver(s):

- Properly name an inclusion guard
- Fix compile warnings regarding unsigned enums
- Add two new sysctl nodes
- Remove all empty linux header files
- Make an error printout more verbose
- Use "mod_delayed_work()" instead of
  cancelling and starting a timeout.
- Implement more Linux scatterlist
  functions.

MFC after: 3 days
Sponsored by: Mellanox Technologies

9 years agoStyle changes for deadfs:
Konstantin Belousov [Wed, 15 Oct 2014 13:22:33 +0000 (13:22 +0000)]
Style changes for deadfs:
- ANSIfy VOPs.
- Remove trivial comments.
- Remove ARGSUSED.
- Remove copies of the vop_XXX_args structure definitions in comments.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoWhen vnode bypass cannot be performed on the cdev file descriptor for
Konstantin Belousov [Wed, 15 Oct 2014 13:16:51 +0000 (13:16 +0000)]
When vnode bypass cannot be performed on the cdev file descriptor for
read/write/poll/ioctl, call standard vnode filedescriptor fop.  This
restores the special handling for terminals by calling the deadfs VOP,
instead of always returning ENXIO for destroyed devices or revoked
terminals.

Since destroyed (and not revoked) device would use devfs_specops VOP
vector, make dead_read/write/poll non-static and fill VOP table with
pointers to the functions, to instead of VOP_PANIC.

Noted and reviewed by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoChange the deadfs poll VOP to return POLLIN|POLLRDNORM if the caller
Konstantin Belousov [Wed, 15 Oct 2014 13:08:53 +0000 (13:08 +0000)]
Change the deadfs poll VOP to return POLLIN|POLLRDNORM if the caller
is interested in i/o state.  Return POLLNVAL for invalid bits, similar
to poll_no_poll().  Note that POLLOUT must not be returned, since
POLLHUP is set.

Noted and reviewed by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoImplement FIODTYPE for master ptys.
Konstantin Belousov [Wed, 15 Oct 2014 12:38:26 +0000 (12:38 +0000)]
Implement FIODTYPE for master ptys.

Requested and reviewed by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoMake automountd(8) inform autofs(4) whether directory being handled can
Edward Tomasz Napierala [Wed, 15 Oct 2014 09:28:45 +0000 (09:28 +0000)]
Make automountd(8) inform autofs(4) whether directory being handled can
have wildcards.  This makes it possible for autofs(4) to avoid requesting
automountd(8) action on access to nonexistent nodes - unless wildcards
are actually used.

Note that this change breaks ABI for automountd(8).

Tested by: dhw@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoAs pointed out by several people, r273114 was incorrect: it unconditionally
Dag-Erling Smørgrav [Wed, 15 Oct 2014 07:35:50 +0000 (07:35 +0000)]
As pointed out by several people, r273114 was incorrect: it unconditionally
disabled everything except TLS 1.0.  Replace it with a more carefully
wrought patch:

 - Switch the default for SSLv3 from on to off
 - Add environment variables to control TLS 1.1 and 1.2
 - In verbose mode, report which version is used
 - Update the man page to reflect these changes.

MFC after: 1 week

9 years agoSilence down a warning that doesn't provide any useful information unless
Edward Tomasz Napierala [Wed, 15 Oct 2014 07:09:45 +0000 (07:09 +0000)]
Silence down a warning that doesn't provide any useful information unless
debug is enabled.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoAdd inet/inet6 to the dependency list. Without them if_gif is useless.
Andrey V. Elsukov [Wed, 15 Oct 2014 06:10:33 +0000 (06:10 +0000)]
Add inet/inet6 to the dependency list. Without them if_gif is useless.

MFC after: 1 month

9 years agoDon't take devmtx unnecessarily in vn_isdisk.
Mateusz Guzik [Wed, 15 Oct 2014 05:17:36 +0000 (05:17 +0000)]
Don't take devmtx unnecessarily in vn_isdisk.

MFC after: 1 week

9 years agoRemove a build artifact of the USDT tests.
Mark Johnston [Wed, 15 Oct 2014 03:15:46 +0000 (03:15 +0000)]
Remove a build artifact of the USDT tests.

MFC after: 3 days

9 years agoDrop support for SSLv3.
Dag-Erling Smørgrav [Wed, 15 Oct 2014 02:34:26 +0000 (02:34 +0000)]
Drop support for SSLv3.

MFC after: 1 week

9 years agoAdd a sysctl to allow disabling the monitoring thread.
Justin Hibbits [Wed, 15 Oct 2014 02:31:14 +0000 (02:31 +0000)]
Add a sysctl to allow disabling the monitoring thread.

Summary:
If a user uses powerd, or doesn't want to use the cycles monitoring, they can
now suspend the monitoring thread.

While here, reorganize the added prototypes to match existing groupings.

Reviewers: nwhitehorn, #powerpc, rpaulo

Reviewed By: #powerpc, rpaulo

Differential Revision: https://reviews.freebsd.org/D944
X-MFC-with: r273009

MFC after: 3 weeks

9 years agoSet the DROP_EN bit before the RX queue is brought up and active.
Adrian Chadd [Wed, 15 Oct 2014 01:22:56 +0000 (01:22 +0000)]
Set the DROP_EN bit before the RX queue is brought up and active.

He noticed issues setting this bit in SRRCTL after the queue was up,
so doing it from the sysctl handler isn't enough and may not actually
work correctly.

This commit doesn't remove the sysctl path or try to change its
behaviour.  I'll talk with others about how to finish fixing that
before I tackle that.

PR: kern/194311
Submitted by: luigi
MFC after: 3 days
Sponsored by: Norse Corp, Inc

9 years agofiledesc: plug 2 assignments to M_ZERO-ed pointers in falloc_noinstall
Mateusz Guzik [Wed, 15 Oct 2014 01:16:11 +0000 (01:16 +0000)]
filedesc: plug 2 assignments to M_ZERO-ed pointers in falloc_noinstall

No functional changes.

9 years agoEmulate "POP r/m".
Neel Natu [Tue, 14 Oct 2014 21:02:33 +0000 (21:02 +0000)]
Emulate "POP r/m".

This is needed to boot OpenBSD/i386 MP kernel in bhyve.

Reported by: grehan
MFC after: 1 week

9 years agoMake automount(8)/automountd(8) treat percent sign as a valid part
Edward Tomasz Napierala [Tue, 14 Oct 2014 19:55:34 +0000 (19:55 +0000)]
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@
MFC after: 1 month

9 years agoUse '-e' to check if the virtio backing file has already been created.
Neel Natu [Tue, 14 Oct 2014 18:34:15 +0000 (18:34 +0000)]
Use '-e' to check if the virtio backing file has already been created.

The '-f' check works fine on a regular file but not if the backing file is
a device (e.g., /dev/md0). In this case it would print a misleading but
otherwise benign message about the backing file not being present.

Submitted by: Marcus Reid (marcus@blazingdot.com)
Discussed with: grehan

9 years agoMerge the following from ^/projects/release-vmimage:
Glen Barber [Tue, 14 Oct 2014 15:22:46 +0000 (15:22 +0000)]
Merge the following from ^/projects/release-vmimage:
r273076, r273077, r273079, r273095:

r273076:
  Add a separate make(1) target to release/Makefile to
  build FreeBSD virtual machine disk images for use on
  the Microsoft Azure service.

  For now, this target is not directly connected to the
  build, however can be manually invoked.

  The 'vm-azure' target invokes {amd64,i386}/mk-azure.sh,
  which does the heavy lifting to produce proper VHDs.
  mk-azure.sh uses a configuration file, defaulting to
  tools/azure.conf if otherwise unset.

r273077:
  Clear VM_RC_LIST.

r273079:
  Fix signal list to trigger umount(8).

r273095:
  Output an informational message when mkimg(1) runs, so it
  does not appear that the process has stopped while waiting
  for a 'y/n' response when waagent is deprovisioned.

Tested on: releng/10.1@r272876
MFC after: 3 days
X-MFC-10.1: yes
Sponsored by: The FreeBSD Foundation

9 years agoMerge the following from ^/projects/release-vmimage:
Glen Barber [Tue, 14 Oct 2014 15:03:06 +0000 (15:03 +0000)]
Merge the following from ^/projects/release-vmimage:
r272436, r272437, r272792:

r272436:
  Remove the first argument to panic(), which was initially
  intended to be the exit code, however when a non-zero exit
  code was returned to release/Makefile, this would prevent
  any remaining (and possibly successful) stages from being
  attempted.

r272437:

  If the vm-base target fails, prevent the vm-image target
  from being run since it cannot possibly succeed.

r272792:

  Add /usr/local/bin and /usr/local/sbin to PATH, needed
  if third-party software needs to use utilities outside
  of the base system during post-install stages (indexinfo
  is one culprit).

MFC after: 3 days
X-MFC-10.1: yes
Sponsored by: The FreeBSD Foundation

9 years agoopt_mrouting.h isn't needed anymore.
Andrey V. Elsukov [Tue, 14 Oct 2014 14:52:39 +0000 (14:52 +0000)]
opt_mrouting.h isn't needed anymore.

MFC after: 1 month

9 years agoAdd more ifdefs. SIOC*_IN6 are defined only with INET6.
Andrey V. Elsukov [Tue, 14 Oct 2014 14:51:27 +0000 (14:51 +0000)]
Add more ifdefs. SIOC*_IN6 are defined only with INET6.

MFC after: 1 month
Reported  by: bz

9 years agoMove memset under ifdef INET6.
Andrey V. Elsukov [Tue, 14 Oct 2014 14:41:06 +0000 (14:41 +0000)]
Move memset under ifdef INET6.

MFH: 1 month
Reported by: bz

9 years agoUncomment general options from the Pandaboard config. These are in other
Andrew Turner [Tue, 14 Oct 2014 14:32:58 +0000 (14:32 +0000)]
Uncomment general options from the Pandaboard config. These are in other
configs and there is no reason for them not to be here.

9 years agoAdd support for the __aeabi_c*cmp* functions. These are similar to the
Andrew Turner [Tue, 14 Oct 2014 14:27:51 +0000 (14:27 +0000)]
Add support for the __aeabi_c*cmp* functions. These are similar to the
existing functions with the exception they use the condition flags to
store the result.

Differential Revision: https://reviews.freebsd.org/D872
Silence from: current@ and numerics@
MFC after: 1 week

9 years agoOverhaul if_gif(4):
Andrey V. Elsukov [Tue, 14 Oct 2014 13:31:47 +0000 (13:31 +0000)]
Overhaul if_gif(4):
 o convert to if_transmit;
 o use rmlock to protect access to gif_softc;
 o use sx lock to protect from concurrent ioctls;
 o remove a lot of unneeded and duplicated code;
 o remove cached route support (it won't work with concurrent io);
 o style fixes.

Reviewed by: melifaro
Obtained from: Yandex LLC
MFC after: 1 month
Sponsored by: Yandex LLC

9 years agoMake the ti_padstate_devmap arrays ststic, they are only used with the
Andrew Turner [Tue, 14 Oct 2014 13:24:25 +0000 (13:24 +0000)]
Make the ti_padstate_devmap arrays ststic, they are only used with the
file where they are defined.

9 years agoNew sentence -> new line; use macros where appropriate.
Christian Brueffer [Tue, 14 Oct 2014 12:29:24 +0000 (12:29 +0000)]
New sentence -> new line; use macros where appropriate.

9 years agoAdd a separate make(1) target to release/Makefile to
Glen Barber [Tue, 14 Oct 2014 11:48:28 +0000 (11:48 +0000)]
Add a separate make(1) target to release/Makefile to
build FreeBSD virtual machine disk images for use on
the Microsoft Azure service.

For now, this target is not directly connected to the
build, however can be manually invoked.

The 'vm-azure' target invokes {amd64,i386}/mk-azure.sh,
which does the heavy lifting to produce proper VHDs.
mk-azure.sh uses a configuration file, defaulting to
tools/azure.conf if otherwise unset.

Sponsored by: The FreeBSD Foundation

9 years agoRemove couple Copan's vendor-specific mode pages.
Alexander Motin [Tue, 14 Oct 2014 11:28:25 +0000 (11:28 +0000)]
Remove couple Copan's vendor-specific mode pages.

Those pages are highly system-/hardware-specific, the code is incomplete,
and so they hardly can be useful for anybody else.

9 years agoRevert r272793, r272794, r272795:
Glen Barber [Tue, 14 Oct 2014 11:20:08 +0000 (11:20 +0000)]
Revert r272793, r272794, r272795:

  Remove implementation of vm_prebuild_setup(),
  vm_setup(), and vm_postbuild_setup().

  It does not scale well, and I am not happy with
  their implementation.

Sponsored by: The FreeBSD Foundation

9 years agoSome groundwork for later Informational Exceptions support.
Alexander Motin [Tue, 14 Oct 2014 10:14:14 +0000 (10:14 +0000)]
Some groundwork for later Informational Exceptions support.

This includes support for:
 - Read-Write Error Recovery mode page;
 - Informational Exceptions Control mode page;
 - Logical Block Provisioning mode page;
 - LOG SENSE command.

No real Informational Exceptions features yet. This is only a placeholder.

Sponsored by: iXsystems, Inc.

9 years agoAdd LBPERE mode bit definition.
Alexander Motin [Tue, 14 Oct 2014 08:30:02 +0000 (08:30 +0000)]
Add LBPERE mode bit definition.

9 years agoRename awk(1) implementation of GNU awk's built-in asorti() function to
Devin Teske [Tue, 14 Oct 2014 03:22:37 +0000 (03:22 +0000)]
Rename awk(1) implementation of GNU awk's built-in asorti() function to
prevent fatal conflict should one-true-awk ever be replaced -- e.g., in
an appliance -- with GNU awk. NB: Renamed my implementation to _asorti()

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

9 years agoFix awk(1) asorti() implementation to work when called in a loop.
Devin Teske [Tue, 14 Oct 2014 03:11:46 +0000 (03:11 +0000)]
Fix awk(1) asorti() implementation to work when called in a loop.

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

9 years agoImport patch from libc++ r197313 which allows using libc++ headers with gcc
Baptiste Daroussin [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.
Xin LI [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
Sean Bruno [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.
Sean Bruno [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.
Sean Bruno [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
Sean Bruno [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.
Xin LI [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.
Hans Petter Selasky [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.
Sean Bruno [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 Turner [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 Turner [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
John Baldwin [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 Turner [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
Warner Losh [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
Warner Losh [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 Turner [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).
John Baldwin [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 Turner [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.
Alexander Motin [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 Turner [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 Turner [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.
Kashyap D Desai [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.
Alexander Motin [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.
Alexander V. Chernikov [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.
Christian 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.
Alexander V. Chernikov [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).
Alexander V. Chernikov [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.
Alexander Motin [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().
Robert Watson [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.
Navdeep Parhar [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
Xin LI [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
Enji Cooper [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
Enji Cooper [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
Enji Cooper [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
Enji Cooper [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
Enji Cooper [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
Enji Cooper [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
Enji Cooper [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
Pyun YongHyeon [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
Enji Cooper [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.
Justin Hibbits [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
Enji Cooper [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
Julien Charbon [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.
Hiroki Sato [Sun, 12 Oct 2014 22:11:28 +0000 (22:11 +0000)]
s/-/_/ in name.

9 years ago- Add libutil #include for fparseln
Enji Cooper [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
Enji Cooper [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
Enji Cooper [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
Justin Hibbits [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.
Alexander Motin [Sun, 12 Oct 2014 18:57:22 +0000 (18:57 +0000)]
Remove stale comments.

9 years agoddb: ANSI-fy function declarations.
Pedro F. Giffuni [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
Nathan Whitehorn [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 Lepore [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
Nathan Whitehorn [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
Robert Watson [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 Tjoelker [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
Enji Cooper [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
Enji Cooper [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.
Alexander Motin [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.
Hiroki Sato [Sun, 12 Oct 2014 02:42:36 +0000 (02:42 +0000)]
Add env and prepend to _rc_namevarlist.