]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoSet the boot partition type to 'apple-boot' for powerpc.
gjb [Fri, 14 Nov 2014 22:29:33 +0000 (22:29 +0000)]
Set the boot partition type to 'apple-boot' for powerpc.

Submitted by: jhibbits
Sponsored by: The FreeBSD Foundation

9 years agoRemove a stray directory from CLEANFILES.
gjb [Mon, 10 Nov 2014 21:10:50 +0000 (21:10 +0000)]
Remove a stray directory from CLEANFILES.

Sponsored by: The FreeBSD Foundation

9 years agoCall cleanup() after everything is done.
gjb [Sat, 8 Nov 2014 16:52:07 +0000 (16:52 +0000)]
Call cleanup() after everything is done.

Sponsored by: The FreeBSD Foundation

9 years agoChange path for mk-vmimage.sh from ${TARGET}/ to
gjb [Sat, 8 Nov 2014 16:44:45 +0000 (16:44 +0000)]
Change path for mk-vmimage.sh from ${TARGET}/ to
scripts/ now that it is consolidated into one file.

Fix paths for the base image and output disk image
files.

Sponsored by: The FreeBSD Foundation

9 years agomount(8) and umount(8) devfs(5) as needed.
gjb [Sat, 8 Nov 2014 16:26:17 +0000 (16:26 +0000)]
mount(8) and umount(8) devfs(5) as needed.

Sponsored by: The FreeBSD Foundation

9 years agoFix scheme flag to mkimg(1).
gjb [Sat, 8 Nov 2014 13:49:59 +0000 (13:49 +0000)]
Fix scheme flag to mkimg(1).

Sponsored by: The FreeBSD Foundation

9 years agoFix line continuation in write_partition_layout().
gjb [Sat, 8 Nov 2014 13:49:18 +0000 (13:49 +0000)]
Fix line continuation in write_partition_layout().
Remove variable test that is no longer needed.

Sponsored by: The FreeBSD Foundation

9 years agoSpell 'OPTARG' correctly.
gjb [Sat, 8 Nov 2014 12:59:32 +0000 (12:59 +0000)]
Spell 'OPTARG' correctly.
Actually call vm_create_base().

Sponsored by: The FreeBSD Foundation

9 years agoMove usage() from vmimage.subr to mk-vmimage.sh,
gjb [Sat, 8 Nov 2014 12:47:21 +0000 (12:47 +0000)]
Move usage() from vmimage.subr to mk-vmimage.sh,
in case vmimage.subr has not been sourced.

Sponsored by: The FreeBSD Foundation

9 years agoFix DESTDIR for installworld, and make sure it is created
gjb [Sat, 8 Nov 2014 12:45:35 +0000 (12:45 +0000)]
Fix DESTDIR for installworld, and make sure it is created
before use.

Sponsored by: The FreeBSD Foundation

9 years agoAdd vm_extra_pre_umount() prototype to vmimage.subr.
gjb [Sat, 8 Nov 2014 12:45:02 +0000 (12:45 +0000)]
Add vm_extra_pre_umount() prototype to vmimage.subr.

Sponsored by: The FreeBSD Foundation

9 years agoAdd CLEANFILES entry for VM targets
gjb [Sat, 8 Nov 2014 12:40:59 +0000 (12:40 +0000)]
Add CLEANFILES entry for VM targets

Sponsored by: The FreeBSD Foundation

9 years agoReturn if vm_create_disk() is unsuccessful.
gjb [Sat, 8 Nov 2014 12:23:50 +0000 (12:23 +0000)]
Return if vm_create_disk() is unsuccessful.

Sponsored by: The FreeBSD Foundation

9 years agoAdd write_partition_layout() used to populate the
gjb [Fri, 7 Nov 2014 01:48:12 +0000 (01:48 +0000)]
Add write_partition_layout() used to populate the
final image.

Fix duplicated mkimg(1) call in vm_create_disk().

Add primitive (untested) PowerPC/PowerPC64 VM image
support.

Note: As it is currently written, the /boot/pmbr and
/boot/{gptboot,boot1.hfs} use the build host and not
the target build.  Fixing this is likely going to be
a hack in itself.

Sponsored by: The FreeBSD Foundation

9 years agoInitial rewrite to consolidate VM image build scripts into one.
gjb [Wed, 5 Nov 2014 13:22:19 +0000 (13:22 +0000)]
Initial rewrite to consolidate VM image build scripts into one.
There may be some very sharp edges here while refactoring.

 - Move amd64/mk-vmimage.sh -> scripts/mk-vmimage.sh.
 - Remove vm-base target from Makefile.vm.
 - In vm-image target, use getopts flags for argument passing.
 - Create tools/vmimage.subr, containing default and prototype
   for the following functions that are used to drive the build,
   run in this order:

   vm_install_base()
   vm_extra_install_base()
   vm_extra_install_packages()
   vm_extra_install_ports()
   vm_extra_enable_services()
   vm_extra_pre_umount()
   vm_create_disk()
   vm_extra_create_disk()

 - In tools/azure.conf, override:

   vm_extra_install_base()
   vm_extra_pre_umount()
   vm_extra_create_disk()

 - In tools/openstack.conf, override:

   vm_extra_install_base()
   vm_extra_pre_umount()

Sponsored by: The FreeBSD Foundation

9 years agoAdd examples for WITH_CLOUDWARE to release.conf.sample.
gjb [Tue, 4 Nov 2014 00:02:23 +0000 (00:02 +0000)]
Add examples for WITH_CLOUDWARE to release.conf.sample.
Add WITH_CLOUDWARE evaluation to RELEASE_RMAKEFLAGS.

Sponsored by: The FreeBSD Foundation

9 years agoAdd a 'vm-cloudware' target, used to drive all
gjb [Mon, 3 Nov 2014 23:59:53 +0000 (23:59 +0000)]
Add a 'vm-cloudware' target, used to drive all
targets in CLOUDTARGETS.

Sponsored by: The FreeBSD Foundation

9 years agoAdd line continuation so OPENSTACKCONF is actually included
gjb [Mon, 3 Nov 2014 23:47:00 +0000 (23:47 +0000)]
Add line continuation so OPENSTACKCONF is actually included
in the env(1).

Sponsored by: The FreeBSD Foundation

9 years agoUncomment the cloudinit rc.conf(5) line.
gjb [Sat, 1 Nov 2014 20:41:47 +0000 (20:41 +0000)]
Uncomment the cloudinit rc.conf(5) line.

Sponsored by: The FreeBSD Foundation

9 years agoFix output file name for openstack images.
gjb [Wed, 29 Oct 2014 19:44:34 +0000 (19:44 +0000)]
Fix output file name for openstack images.
No further conversion is necessary for this
VM file target, so there is no need to append
the '.raw' suffix here.

Sponsored by: The FreeBSD Foundation

9 years agoInitial commit providing a mechanism to create
gjb [Wed, 29 Oct 2014 17:04:09 +0000 (17:04 +0000)]
Initial commit providing a mechanism to create
openstack images as part of the release build.

This mimics the way Microsoft Azure images are
built, with the addition of installing the
net/cloud-init package and adding a (commented)
rc.conf(5) entry for cloudinit.

Sponsored by: The FreeBSD Foundation

9 years agoRemove a few vestiges of passing an exit code to
gjb [Wed, 29 Oct 2014 16:20:49 +0000 (16:20 +0000)]
Remove a few vestiges of passing an exit code to
panic().

Sponsored by: The FreeBSD Foundation

9 years agoAvoid hard-coding the Azure image file format.
gjb [Wed, 29 Oct 2014 16:18:29 +0000 (16:18 +0000)]
Avoid hard-coding the Azure image file format.
While here, avoid using OSRELEASE for the output
file name.

Sponsored by: The FreeBSD Foundation

9 years agoAdd glue to allow enabling building cloud provider
gjb [Wed, 29 Oct 2014 15:52:17 +0000 (15:52 +0000)]
Add glue to allow enabling building cloud provider
VM images by default.

When WITH_CLOUDWARE is not empty, add CLOUDTARGETS
to the release/Makefile 'release' target.

CLOUDTARGETS is generated from the contents of
CLOUDWARE, which should be a list of all supported
target providers.

Sponsored by: The FreeBSD Foundation

9 years agoMove virtual machine / cloud provider targets and
gjb [Wed, 29 Oct 2014 14:57:30 +0000 (14:57 +0000)]
Move virtual machine / cloud provider targets and
options from release/Makefile to their own Makefile.

Sponsored by: The FreeBSD Foundation

9 years agoReintegrate head@r273095
gjb [Tue, 14 Oct 2014 15:37:19 +0000 (15:37 +0000)]
Reintegrate head@r273095

Sponsored by: The FreeBSD Foundation

9 years agoOutput an informational message when mkimg(1) runs, so it
gjb [Tue, 14 Oct 2014 15:18:22 +0000 (15:18 +0000)]
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.

Sponsored by: The FreeBSD Foundation

9 years agoMerge the following from ^/projects/release-vmimage:
gjb [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.
ae [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.
ae [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.
ae [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 [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 [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):
ae [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 [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.
brueffer [Tue, 14 Oct 2014 12:29:24 +0000 (12:29 +0000)]
New sentence -> new line; use macros where appropriate.

9 years agoFix signal list to trigger umount(8).
gjb [Tue, 14 Oct 2014 12:13:43 +0000 (12:13 +0000)]
Fix signal list to trigger umount(8).

Sponsored by: The FreeBSD Foundation

9 years agoClear VM_RC_LIST.
gjb [Tue, 14 Oct 2014 12:04:50 +0000 (12:04 +0000)]
Clear VM_RC_LIST.

Sponsored by: The FreeBSD Foundation

9 years agoAdd a separate make(1) target to release/Makefile to
gjb [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.
mav [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:
gjb [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.
mav [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.
mav [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
dteske [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.
dteske [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
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'