]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoFix creating directories within DESTDIR.
gjb [Thu, 7 May 2015 19:10:08 +0000 (19:10 +0000)]
Fix creating directories within DESTDIR.

Sponsored by: The FreeBSD Foundation

9 years agoFix a copy/paste mistake.
gjb [Thu, 7 May 2015 18:53:48 +0000 (18:53 +0000)]
Fix a copy/paste mistake.

Sponsored by: The FreeBSD Foundation

9 years agoAdd entries to uenv.txt.
gjb [Thu, 7 May 2015 18:51:59 +0000 (18:51 +0000)]
Add entries to uenv.txt.

Obtained from: Crochet
Sponsored by: The FreeBSD Foundation

9 years agoEnable the growfs rc(8) script.
gjb [Thu, 7 May 2015 18:49:43 +0000 (18:49 +0000)]
Enable the growfs rc(8) script.

Sponsored by: The FreeBSD Foundation

9 years agoSet NODOC=1 to avoid building the reldoc target.
gjb [Thu, 7 May 2015 18:48:47 +0000 (18:48 +0000)]
Set NODOC=1 to avoid building the reldoc target.

Sponsored by: The FreeBSD Foundation

9 years agoAdd initial native suppor for RPI-B:
gjb [Thu, 7 May 2015 18:47:59 +0000 (18:47 +0000)]
Add initial native suppor for RPI-B:
 - Set UBLDR_LOADADDR.
 - Include files to install to the FAT partition.

Obtained from: Crochet
Sponsored by: The FreeBSD Foundation

9 years agoRemove FDT_DIR definition, which is no longer needed.
gjb [Thu, 7 May 2015 18:41:23 +0000 (18:41 +0000)]
Remove FDT_DIR definition, which is no longer needed.

Sponsored by: The FreeBSD Foundation

9 years agoReduce the number of files copied onto the FAT partition.
gjb [Thu, 7 May 2015 18:32:11 +0000 (18:32 +0000)]
Reduce the number of files copied onto the FAT partition.
The DTB files are loaded from /boot/dtb on the UFS filesystem.

Submitted by: loos
Sponsored by: The FreeBSD Foundation

9 years agoIn arm_install_uboot(), mount both FAT and UFS partitions
gjb [Thu, 7 May 2015 18:00:12 +0000 (18:00 +0000)]
In arm_install_uboot(), mount both FAT and UFS partitions
in the empty DESTDIR, and update path names.
Copy the ubldr to the FAT partition. [1]

Spotted by: andrew [1]
Sponsored by: The FreeBSD Foundation

9 years agoSet UBLDR_LOADADDR for the BEAGLEBONE image.
gjb [Thu, 7 May 2015 17:50:24 +0000 (17:50 +0000)]
Set UBLDR_LOADADDR for the BEAGLEBONE image.

Sponsored by: The FreeBSD Foundation

9 years agoDo not rename u-boot.img file when copying to the FAT partition.
gjb [Thu, 7 May 2015 17:48:19 +0000 (17:48 +0000)]
Do not rename u-boot.img file when copying to the FAT partition.

Sponsored by: The FreeBSD Foundation

9 years agoFix paths.
gjb [Thu, 7 May 2015 17:40:00 +0000 (17:40 +0000)]
Fix paths.
Remove the temporary directory when done with it.
Destroy the md(4) device when done with it.

Sponsored by: The FreeBSD Foundation

9 years agoIn arm_create_disk(), chroot(8) to the build environment
gjb [Thu, 7 May 2015 17:35:48 +0000 (17:35 +0000)]
In arm_create_disk(), chroot(8) to the build environment
is necessary.

In arm_install_base(), chroot(8) when installing world
and kernel.  Fix paths for fstab(5) and rc.conf(5).

Sponsored by: The FreeBSD Foundation

9 years agoFix file/directory paths.
gjb [Thu, 7 May 2015 17:33:21 +0000 (17:33 +0000)]
Fix file/directory paths.

Sponsored by: The FreeBSD Foundation

9 years agoIn release.sh, create the /dev directory within the chroot
gjb [Thu, 7 May 2015 00:27:28 +0000 (00:27 +0000)]
In release.sh, create the /dev directory within the chroot
before attempting to mount(8) devfs.  Also, create the
.OBJDIR for the 'release' target, so files end up in the
correct location.

In tools/arm.subr, fix the target device when creating the
gpart partition scheme.

Sponsored by: The FreeBSD Foundation

9 years agoUse the correct variable for the tools/TARGET.conf file.
gjb [Wed, 6 May 2015 23:26:51 +0000 (23:26 +0000)]
Use the correct variable for the tools/TARGET.conf file.

Sponsored by: The FreeBSD Foundation

9 years agoAdd tools/arm.subr to contain common subroutines used for
gjb [Wed, 6 May 2015 19:58:12 +0000 (19:58 +0000)]
Add tools/arm.subr to contain common subroutines used for
building arm images.  This is similar to tools/vmimage.subr
used for building virtual machine disk images.  By default,
only arm_create_disk() and arm_install_base() contain real
functionality here, and arm_install_uboot() must be overridden
in the arm/KERNEL.conf file.

In release.sh, make create_arm_armv6_build_release() do
something now.

In arm/BEAGLEBONE.conf, set IMAGE_SIZE, PART_SCHEME, FAT_SIZE,
FAT_TYPE, and MD_ARGS, as well as make arm_install_uboot()
functional.

Parts of this were taken from disecting a previous BEAGLEBONE
image, and other parts obtained from Crochet sources.

Sponsored by: The FreeBSD Foundation

9 years agoEvaluage chroot_build_release_cmd based on the TARGET/TARGET_ARCH
gjb [Wed, 6 May 2015 18:16:27 +0000 (18:16 +0000)]
Evaluage chroot_build_release_cmd based on the TARGET/TARGET_ARCH
of the build target.

Move arm/armv6 'release' bits to chroot_arm_armv6_build_release().

Sponsored by: The FreeBSD Foundation

9 years agobuildenv_setup(), if overridden in the configuration file,
gjb [Wed, 6 May 2015 16:21:12 +0000 (16:21 +0000)]
buildenv_setup(), if overridden in the configuration file,
only needs to be invoked once.

Sponsored by: The FreeBSD Foundation

9 years agoRemove Crochet invocation.
gjb [Wed, 6 May 2015 16:04:11 +0000 (16:04 +0000)]
Remove Crochet invocation.

Sponsored by: The FreeBSD Foundation

9 years agoRemove crochet configuration files and tools/arm/ directory.
gjb [Wed, 6 May 2015 15:59:29 +0000 (15:59 +0000)]
Remove crochet configuration files and tools/arm/ directory.

Sponsored by: The FreeBSD Foundation

9 years agoUpdate the arm/*.conf configuration files to only set
gjb [Wed, 6 May 2015 15:58:21 +0000 (15:58 +0000)]
Update the arm/*.conf configuration files to only set
EMBEDDEDBUILD, EMBEDDED_TARGET, EMBEDDED_TARGET_ARCH,
EMBEDDEDPORTS, and KERNEL.

In release.sh, set TARGET and TARGET_ARCH to the
EMBEDDED_* variants from the configuration file.

Sponsored by: The FreeBSD Foundation

9 years agoIn extra_chroot_setup(), use 'uname -U' to determine OSVERSION.
gjb [Wed, 6 May 2015 15:41:43 +0000 (15:41 +0000)]
In extra_chroot_setup(), use 'uname -U' to determine OSVERSION.

Move the port build for EMBEDDEDPORTS (if set) from arm/release.sh
to release.sh.

Remove arm/release.sh.

Sponsored by: The FreeBSD Foundation

9 years agoAdd a return to chroot_build_target().
gjb [Wed, 6 May 2015 15:20:29 +0000 (15:20 +0000)]
Add a return to chroot_build_target().
In chroot_build_release(), reverse the order evaluating
EMBEDDEDBUILD.

Sponsored by: The FreeBSD Foundation

9 years agoWrap long lines in comments after previous commits that indented
gjb [Wed, 6 May 2015 15:10:50 +0000 (15:10 +0000)]
Wrap long lines in comments after previous commits that indented
the file.

Sponsored by: The FreeBSD Foundation

9 years agoEnsure resolv.conf exists on the build host before attempting
gjb [Wed, 6 May 2015 15:05:38 +0000 (15:05 +0000)]
Ensure resolv.conf exists on the build host before attempting
to copy it to the build chroot.

Move where the ldconfig(8) startup script is invoked.

Sponsored by: The FreeBSD Foundation

9 years agoMove where the configuration file is sourced if '-c'
gjb [Wed, 6 May 2015 14:59:16 +0000 (14:59 +0000)]
Move where the configuration file is sourced if '-c'
is specified.  If the configuration file does not exist,
proceed with the default options instead of exiting.

Sponsored by: The FreeBSD Foundation

9 years agoMove the trap after env_check(), since CHROOTDIR may be
gjb [Wed, 6 May 2015 14:53:34 +0000 (14:53 +0000)]
Move the trap after env_check(), since CHROOTDIR may be
redefined.

Sponsored by: The FreeBSD Foundation

9 years agoShorten long lines.
gjb [Wed, 6 May 2015 14:53:01 +0000 (14:53 +0000)]
Shorten long lines.

Sponsored by: The FreeBSD Foundation

9 years agoMove PATH and export to the same line.
gjb [Wed, 6 May 2015 14:48:35 +0000 (14:48 +0000)]
Move PATH and export to the same line.
Handle svn or svnlite being installed in /usr/bin or
/usr/local/bin.

Sponsored by: The FreeBSD Foundation

9 years agoAdd documentation for newly-added functions.
gjb [Wed, 6 May 2015 14:35:43 +0000 (14:35 +0000)]
Add documentation for newly-added functions.
While here, move CHROOT_* and RELEASE_* variables from
env_setup() to env_check() since they may change if
a release.conf file is used.

Sponsored by: The FreeBSD Foundation

9 years agoAdd the following functions to release.sh to organize and make
gjb [Wed, 6 May 2015 14:21:51 +0000 (14:21 +0000)]
Add the following functions to release.sh to organize and make
clear the workflow:
 - env_setup()
 - env_check()
 - chroot_setup()
 - extra_chroot_setup()
 - chroot_build_target()
 - chroot_build_release()

There should be no functional changes at this point.

Sponsored by: The FreeBSD Foundation

9 years agoMFH: r282315-r282534
gjb [Wed, 6 May 2015 11:50:30 +0000 (11:50 +0000)]
MFH: r282315-r282534

Sponsored by: The FreeBSD Foundation

9 years agoCorrectly print valtype for empty bitmask.
melifaro [Wed, 6 May 2015 11:23:14 +0000 (11:23 +0000)]
Correctly print valtype for empty bitmask.

9 years agoCorrected indentation on conflicted source files.
kadesai [Wed, 6 May 2015 10:46:28 +0000 (10:46 +0000)]
Corrected indentation on conflicted source files.

Reviewed by: ambrisko
MFC after: 2 weeks
Sponsored by: AVAGO Technologies

9 years agoConfigured the mrsas(4) driver to support UNMAPPED I/O and updated driver version.
kadesai [Wed, 6 May 2015 10:45:56 +0000 (10:45 +0000)]
Configured the mrsas(4) driver to support UNMAPPED I/O and updated driver version.

Reviewed by: ambrisko
MFC after: 2 weeks
Sponsored by: AVAGO Technologies

9 years ago1. All LSI namings are converted to AVAGO Tech.
kadesai [Wed, 6 May 2015 10:45:13 +0000 (10:45 +0000)]
1. All LSI namings are converted to AVAGO Tech.
2. Fix in AEN path(suggested by John Baldwin).
3. Fix IOCTL path w.r.t Sense key handling

Reviewed by: ambrisko
MFC after: 2 weeks
Sponsored by: AVAGO Technologies

9 years agoBug fixes found internally as detailed below:
kadesai [Wed, 6 May 2015 10:44:08 +0000 (10:44 +0000)]
Bug fixes found internally as detailed below:
1. While disabling interrupt the FW disables interrupts for only 16 vectors.
In case of Invader which supports 96 MSI-x vectors, some spurious interrupts
may come on other vectors even after interrupt disable. So, driver uses a flag
and ignores the spurious interrupts.
2. Reply queue depth is made double the number of commands supported by FW.
3. Misplaced interrupt enable code is now moved down in the OCR path.
4. Updated error handling code in OCR path.
5. Removed un-necessary print.

Reviewed by: ambrisko
MFC after: 2 weeks
Sponsored by: AVAGO Technologies

9 years agoDriver calls mrsas_complete_cmd() to call mrsas_wakeup() for each MFI frame that was
kadesai [Wed, 6 May 2015 10:43:19 +0000 (10:43 +0000)]
Driver calls mrsas_complete_cmd() to call mrsas_wakeup() for each MFI frame that was
issued through the ioctl() interface prior to the kill adapter. This ensures
userspace ioctl() system calls issued just before a kill adapter don't get stuck in
wait state and IOCTLs are returned to application.

Reviewed by: ambrisko
MFC after: 2 weeks
Sponsored by: AVAGO Technologies

9 years agoIn OCR(Online Controller Reset) path, driver sets adapter state to
kadesai [Wed, 6 May 2015 10:42:44 +0000 (10:42 +0000)]
In OCR(Online Controller Reset) path, driver sets adapter state to
MEGASAS_HBA_OPERATIONAL before getting new RAID map.
There will be a small window where IO will come from OS with old RAID map.
This patch will update adapter state to MEGASAS_HBA_OPERATIONAL,
only after driver has new RAID map to avoid any IOs getting build using old RAID map.

Reviewed by: ambrisko
MFC after: 2 weeks
Sponsored by: AVAGO Technologies

9 years agoCurrent driver does fast path read load balancing between arm and mirror disk
kadesai [Wed, 6 May 2015 10:41:27 +0000 (10:41 +0000)]
Current driver does fast path read load balancing between arm and mirror disk
for two Drive Raid-1 configuration only.

Now, Driver support fast path read load balancing for all (any number of disk) Raid-1 configuration.

Reviewed by: ambrisko
MFC after: 2 weeks
Sponsored by: AVAGO Technologies

9 years agoNow Driver expose Secure Jbod Support via driver_operations in MFI INIT Frame.
kadesai [Wed, 6 May 2015 10:36:53 +0000 (10:36 +0000)]
Now Driver expose Secure Jbod Support via driver_operations in MFI INIT Frame.
FW expose Secure Jbod support via Controller properity.

Firmware expect IOs to be received from different IO path than
conventional fast path queue, in case of SED drives.

To have Secure jbod support user need driver and firmware support.

Reviewed by:    ambrisko
MFC after:  2 weeks
Sponsored by:   AVAGO Technologies

9 years agoThis patch adds the feature to provide PCI information via IOCTL query.
kadesai [Wed, 6 May 2015 10:32:27 +0000 (10:32 +0000)]
This patch adds the feature to provide PCI information via IOCTL query.

Reviewed by: ambrisko
MFC after: 2 weeks
Sponsored by: AVAGO Technologies

9 years agoReimplement queue freeze on error, added in r282429:
mav [Wed, 6 May 2015 09:59:19 +0000 (09:59 +0000)]
Reimplement queue freeze on error, added in r282429:

It is not required to use CLO to recover from task file error, it should
be enough to do only stop/start, that does not clear the PxTFD.STS.ERR.

MFC after: 13 days

9 years agoFix the KASSERT and improve wording in r282426.
glebius [Wed, 6 May 2015 08:07:11 +0000 (08:07 +0000)]
Fix the KASSERT and improve wording in r282426.

Submitted by: alc

9 years agoFix panic when prepare_batch_buffer() returns error.
melifaro [Wed, 6 May 2015 07:53:43 +0000 (07:53 +0000)]
Fix panic when prepare_batch_buffer() returns error.

9 years agoDo a proper emulation of guest writes to MSR_EFER.
neel [Wed, 6 May 2015 05:40:20 +0000 (05:40 +0000)]
Do a proper emulation of guest writes to MSR_EFER.
- Must-Be-Zero bits cannot be set.
- EFER_LME and EFER_LMA should respect the long mode consistency checks.
- EFER_NXE, EFER_FFXSR, EFER_TCE can be set if allowed by CPUID capabilities.
- Flag an error if guest tries to set EFER_LMSLE since bhyve doesn't enforce
  segment limits in 64-bit mode.

MFC after: 2 weeks

9 years agoAdd macros for AMD-specific bits in MSR_EFER: LMSLE, FFXSR and TCE.
neel [Wed, 6 May 2015 05:12:29 +0000 (05:12 +0000)]
Add macros for AMD-specific bits in MSR_EFER: LMSLE, FFXSR and TCE.

AMDID_FFXSR is at bit 25 so correct its value to 0x02000000.

MFC after: 1 week

9 years agoFix DragonFly 4.0.5 release date.
osa [Wed, 6 May 2015 01:29:31 +0000 (01:29 +0000)]
Fix DragonFly 4.0.5 release date.

Reported by: vangyzen

9 years agoThis patch adds support for the extended baud rate register
ganbold [Wed, 6 May 2015 01:07:59 +0000 (01:07 +0000)]
This patch adds support for the extended baud rate register
available on the aml8726-m6 (and later) SoC which allows for
lower speeds.

Differential Revision: https://reviews.freebsd.org/D2433
Submitted by: John Wehle

9 years agoAdd the code necessary to run the imx6 chip at its lowest clock/power
ian [Tue, 5 May 2015 23:27:49 +0000 (23:27 +0000)]
Add the code necessary to run the imx6 chip at its lowest clock/power
operating point (396MHz/950mV).

9 years agoFix building BEAGLEBONE images with Crochet using the
gjb [Tue, 5 May 2015 21:08:50 +0000 (21:08 +0000)]
Fix building BEAGLEBONE images with Crochet using the
sysutils/u-boot-beaglebone port:

 - In arm/BEAGLEBONE.conf, set EMBEDDEDPORTS to the
   sysutils/u-boot-beaglebone port.
 - In arm/release.sh, remove BEAGLEBONE from setting WANT_UBOOT
 - In tools/arm/crochet-BEAGLEBONE.conf, override the
   beaglebone_check_uboot(), and set BEAGLEBONE_UBOOT to
   /tmp/external/u-boot-beaglebone, and create symlinks to the
   u-boot files in /usr/local/share/u-boot-beaglebone and the
   uEnv.txt file in crochet/board/Beaglebone/files.

Sponsored by: The FreeBSD Foundation

9 years agoAdd new USB ID.
hselasky [Tue, 5 May 2015 19:34:23 +0000 (19:34 +0000)]
Add new USB ID.

PR: 199843
MFC after: 1 week

9 years agoStart to reduce the diff between the Atmel kernel configs.
andrew [Tue, 5 May 2015 18:29:51 +0000 (18:29 +0000)]
Start to reduce the diff between the Atmel kernel configs.

9 years agoThe VIRT kernel config targets armv6.
andrew [Tue, 5 May 2015 18:04:47 +0000 (18:04 +0000)]
The VIRT kernel config targets armv6.

9 years agoMove the first batch of common armv6 options to std.armv6.
andrew [Tue, 5 May 2015 17:59:02 +0000 (17:59 +0000)]
Move the first batch of common armv6 options to std.armv6.

9 years agoRemove buildenv_setup(), and set EMBEDDEDPORTS to the
gjb [Tue, 5 May 2015 16:37:59 +0000 (16:37 +0000)]
Remove buildenv_setup(), and set EMBEDDEDPORTS to the
sysutils/u-boot-rpi2 port, since these cases are already
handled by arm/release.sh.

Sponsored by: The FreeBSD Foundation

9 years agoAdd initial support for building RPI2 images.
gjb [Tue, 5 May 2015 16:28:04 +0000 (16:28 +0000)]
Add initial support for building RPI2 images.

In release.sh, allow overriding buildenv_setup() before
the handoff to arm/release.sh.

Copy arm/RPI-B.conf -> arm/RPI2.conf, set UBOOT_PORT and
the correct KERNEL, and add the buildenv_setup() override
to install the sysutils/u-boot-rpi2 port/package.

Copy tools/arm/crochet-RPI-B.conf -> tools/arm/crochet-RPI2.conf,
and set the correct entries for the RaspberryPi2 board.

Thanks to: loos@
Sponsored by: The FreeBSD Foundation

9 years agoCreate std.arm and std.armv6 config files and include the right one from
ian [Tue, 5 May 2015 16:09:25 +0000 (16:09 +0000)]
Create std.arm and std.armv6 config files and include the right one from
each of the existing kernel configs.  This gives a place to put config
that applies to the entire arch.

Add the ARM_NEW_PMAP option to std.armv6.  This is working well in early
testing and it's time for wide exposure, but it's still nice to be able
to fall back to the old implementation for testing when a problem comes
along.  Eventually the option and the old implementation will go away.

The opportunity now exists to move a whole lot of boilerplate from all the
arm kernel config files into std.arm*, but that's a commit for another day.

9 years agoDocument r281617, wc(1) race when receiving SIGINFO fixed.
gjb [Tue, 5 May 2015 15:16:21 +0000 (15:16 +0000)]
Document r281617, wc(1) race when receiving SIGINFO fixed.

Sponsored by: The FreeBSD Foundation

9 years agoFix a FDP style nit. Wrap the lines as a result.
gjb [Tue, 5 May 2015 15:16:19 +0000 (15:16 +0000)]
Fix a FDP style nit.  Wrap the lines as a result.

Found with: textproc/igor
Sponsored by: The FreeBSD Foundation

9 years agoDocument r281802, support added for building FreeBSD/aarch64 virtual
gjb [Tue, 5 May 2015 15:16:17 +0000 (15:16 +0000)]
Document r281802, support added for building FreeBSD/aarch64 virtual
machine and memory stick images.

Sponsored by: The FreeBSD Foundation

9 years agoUpdate the svn revision marker.
gjb [Tue, 5 May 2015 15:16:15 +0000 (15:16 +0000)]
Update the svn revision marker.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282434, openresolv updated to version 3.7.0.
gjb [Tue, 5 May 2015 15:16:12 +0000 (15:16 +0000)]
Document r282434, openresolv updated to version 3.7.0.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282274, xen(4) PV domU kernel support removed.
gjb [Tue, 5 May 2015 15:16:10 +0000 (15:16 +0000)]
Document r282274, xen(4) PV domU kernel support removed.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282213, kern.racct.enable tunable and RACCT_DISABLED
gjb [Tue, 5 May 2015 15:16:08 +0000 (15:16 +0000)]
Document r282213, kern.racct.enable tunable and RACCT_DISABLED
kernel configuration option.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282212, several improvements/updates to the HyperV drivers.
gjb [Tue, 5 May 2015 15:16:05 +0000 (15:16 +0000)]
Document r282212, several improvements/updates to the HyperV drivers.

Add Microsoft OSTC to sponsors.ent.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282208, chmod(1), chflags(1), chgrp(1), and chown(8) now
gjb [Tue, 5 May 2015 15:16:02 +0000 (15:16 +0000)]
Document r282208, chmod(1), chflags(1), chgrp(1), and chown(8) now
affect symbolic links when '-R' is used.

Add Multiplay to sponsors.ent.

Sponsored by: The FreeBSD Foundation

9 years agoFix a typo.
gjb [Tue, 5 May 2015 15:16:00 +0000 (15:16 +0000)]
Fix a typo.

Sponsored by: The FreeBSD Foundation

9 years agoTweak seekdir, telldir and readdir so that when htere are deletes going on,
julian [Tue, 5 May 2015 14:52:33 +0000 (14:52 +0000)]
Tweak seekdir, telldir and readdir so that when htere are deletes going on,
as seek to teh last location saved will still work. This is needed for Samba
to be able to correctly handle delete requests from windows. This does not
completely fix seekdir when deletes are present but fixes the worst of the
problems. The real solution must involve some changes to the API for eh VFS
and getdirentries(2).

Obtained from: Panzura inc
MFC after: 1 week

9 years agoAdd DEV_ACPI to opt_acpi.h to be used to detect when ACPI is enabled in
andrew [Tue, 5 May 2015 14:19:22 +0000 (14:19 +0000)]
Add DEV_ACPI to opt_acpi.h to be used to detect when ACPI is enabled in
the kernel.

9 years agoUpdate the comment on what CPUs this driver supports.
andrew [Tue, 5 May 2015 14:17:15 +0000 (14:17 +0000)]
Update the comment on what CPUs this driver supports.

9 years agocp: Remove fts sorting.
jilles [Tue, 5 May 2015 13:23:03 +0000 (13:23 +0000)]
cp: Remove fts sorting.

In an attempt to improve performance, cp reordered directories first
(although the comment says directories last). This is not effective with new
UFS layout policies.

The sorting reorders multiple arguments passed to cp, which may be
undesirable.

Additionally, the comparison function does not induce a total order. Per
POSIX, this causes undefined behaviour in qsort().

NetBSD removed the sorting in 2009.

On filesystems that return directory entries in hash/btree order, sorting by
d_fileno before statting improves performance on large directories. However,
this can only be implemented in fts(3).

PR: 53475
Reviewed by: bde (in 2004)
MFC after: 1 week

9 years agoAdd "The Design and Implementation of the FreeBSD OS, 2nd Ed.".
osa [Tue, 5 May 2015 11:39:54 +0000 (11:39 +0000)]
Add "The Design and Implementation of the FreeBSD OS, 2nd Ed.".

9 years agoMove the point we attach the ofw driver on arm64 to nexus.c. This will
andrew [Tue, 5 May 2015 11:13:16 +0000 (11:13 +0000)]
Move the point we attach the ofw driver on arm64 to nexus.c. This will
allow us to have a single place to decide to use ofw or acpi.

9 years agoDocument DragonFly releases 4.0.2 - 4.0.5 and OpenBSD 5.7.
osa [Tue, 5 May 2015 11:12:20 +0000 (11:12 +0000)]
Document DragonFly releases 4.0.2 - 4.0.5 and OpenBSD 5.7.
Fix typo for NetBSD 6.1.5.

9 years agoAdd FDT to the list of known GUIDs.
andrew [Tue, 5 May 2015 11:07:43 +0000 (11:07 +0000)]
Add FDT to the list of known GUIDs.

9 years agozfs: do not hold an extra reference on a root vnode while a filesystem is mounted
avg [Tue, 5 May 2015 11:01:06 +0000 (11:01 +0000)]
zfs: do not hold an extra reference on a root vnode while a filesystem is mounted

At present zfs_domount() acquires a reference on the filesystem's root vnode
and that reference is kept until zfs_umount.
The latter calls vflush(rootrefs = 1) to dispose of the extra reference.

There is no explanation of why that reference is kept - what problem it
solves or what behavior it improves.
Also, that logic is FreeBSD specific.

There is one real problem with that reference, though.
zfs recv -F may receive a full, non-incremental stream to a mounted filesystem.
In that case the received root object is likely to have a different z_gen
attribute value. Because of that, zfs_rezget will leave the previous root znode
and vnode disassociated from the actual object (z_sa_hdl == NULL).
Thus, future calls to VFS_ROOT() -> zfs_root() will produce a new vnode-znode
pair, while the old one will be kept alive by the outstanding reference.
So, the outstanding reference will not actually be for the new root vnode
(or, more precisely, vnodes - because a root vnode may be recycled and a newer
one can be created).
As a result, when vflush(rootrefs = 1) s called there will be two problems:

- a leaked reference on the old root vnode preventing a graceful unmount
- insufficient references on the actual root vnode leading to a crash upon
  access to the vnode after it is destroyed by vgone() + vdrop()

The second issue will actually override the first one.

Differential Revision: https://reviews.freebsd.org/D2353
Reviewed by: delphij, kib, smh
MFC after: 17 days

9 years agoDisable the use of floating-point and vector registers in the loader. They
andrew [Tue, 5 May 2015 11:00:50 +0000 (11:00 +0000)]
Disable the use of floating-point and vector registers in the loader. They
need the vfp unit to be enabled which may not be the case.

9 years agodmu_recv_end_check: don't leak hold if dsl_destroy_snapshot_check_impl fails
avg [Tue, 5 May 2015 10:56:16 +0000 (10:56 +0000)]
dmu_recv_end_check: don't leak hold if dsl_destroy_snapshot_check_impl fails

The leak may happen if !drc_newfs && drc_force and there is an error
iterating through snapshots or any of snapshot checks fails.

See https://www.illumos.org/issues/5870
See https://reviews.csiden.org/r/206/

Reviewed by: mahrens (as mahrens@delphix.com)
MFC after: 15 days
Sponsored by: ClusterHQ

9 years agoFix major copy/paste and other style errors.
pluknet [Tue, 5 May 2015 10:44:17 +0000 (10:44 +0000)]
Fix major copy/paste and other style errors.

9 years agoCopy new attribute types when linking. bfd will copy attributes as needed,
andrew [Tue, 5 May 2015 10:35:29 +0000 (10:35 +0000)]
Copy new attribute types when linking. bfd will copy attributes as needed,
however it will fail to output them if the type is not set correctly. This
can happen when it finds an attribute it hasn't seen before, for example
when building shared objects it will use the attributes from crti.o, hwever
this file has no attributes set.

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

9 years agoWhen cross-building ${LIBSTAND} may be set to the host copy. Point to the
andrew [Tue, 5 May 2015 10:32:59 +0000 (10:32 +0000)]
When cross-building ${LIBSTAND} may be set to the host copy. Point to the
version built with the toolchain.

Differential Revision: https://reviews.freebsd.org/D2312
Submitted by: jhb

9 years agoAdd support for Sierra MC7354 card
garga [Tue, 5 May 2015 10:19:43 +0000 (10:19 +0000)]
Add support for Sierra MC7354 card

Author: Jeremy Porter <jporter@netgate.com>
Differential Revision: https://reviews.freebsd.org/D2444
Reviewed by: gnn, hselasky
MFC after: 1 week
Sponsored by: Netgate

9 years agoEnlarge the buffer for storing macros as some macros can be longer than 5
bapt [Tue, 5 May 2015 09:54:47 +0000 (09:54 +0000)]
Enlarge the buffer for storing macros as some macros can be longer than 5

9 years agoUpdate the list of known roff commands (adding the mdoc package)
bapt [Tue, 5 May 2015 09:50:21 +0000 (09:50 +0000)]
Update the list of known roff commands (adding the mdoc package)

Obtained from: NetBSD

9 years agoProperly assign open and close brackets and checks memory
bapt [Tue, 5 May 2015 09:33:32 +0000 (09:33 +0000)]
Properly assign open and close brackets and checks memory

Obtained from: NetBSD

9 years agoAdd apple-boot, apple-hfs and apple-ufs aliases to MBR scheme.
ae [Tue, 5 May 2015 09:33:02 +0000 (09:33 +0000)]
Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme.
Sort DOSPTYP_* entries in diskmbr.h by value.
Document these scheme-specific types in gpart(8).

MFC after: 1 week

9 years agoEnsure we read existing values of the stk table
bapt [Tue, 5 May 2015 09:29:32 +0000 (09:29 +0000)]
Ensure we read existing values of the stk table

Obtained from: NetBSD

9 years agoUse stdup(3) and check its return instead from homebrew version using strcpy(3)
bapt [Tue, 5 May 2015 09:26:32 +0000 (09:26 +0000)]
Use stdup(3) and check its return instead from homebrew version using strcpy(3)
and malloc(3)

Obtained from: NetBSD

9 years agocosmetic fixes
bapt [Tue, 5 May 2015 09:24:29 +0000 (09:24 +0000)]
cosmetic fixes

Obtained from: NetBSD

9 years agoApply seom style(9) fixes from NetBSD
bapt [Tue, 5 May 2015 09:01:42 +0000 (09:01 +0000)]
Apply seom style(9) fixes from NetBSD

Obtained from: NetBSD

9 years agoPrevent useless use of strdup(3)
bapt [Tue, 5 May 2015 08:25:25 +0000 (08:25 +0000)]
Prevent useless use of strdup(3)

Obtained from: NetBSD

9 years agoReplace homebrewed NIL by NULL
bapt [Tue, 5 May 2015 08:17:40 +0000 (08:17 +0000)]
Replace homebrewed NIL by NULL

9 years agoUse stdbool instead of homebrewed boolean
bapt [Tue, 5 May 2015 08:15:10 +0000 (08:15 +0000)]
Use stdbool instead of homebrewed boolean

9 years agoAnother function to ansify
bapt [Tue, 5 May 2015 07:52:41 +0000 (07:52 +0000)]
Another function to ansify

9 years agoRemove unused variables
bapt [Tue, 5 May 2015 07:51:57 +0000 (07:51 +0000)]
Remove unused variables

9 years agoExplicitly use O_RDONLY instead of 0
bapt [Tue, 5 May 2015 07:49:46 +0000 (07:49 +0000)]
Explicitly use O_RDONLY instead of 0

9 years agoUse strlcpy(3) instead of strcpy(3)
bapt [Tue, 5 May 2015 07:47:36 +0000 (07:47 +0000)]
Use strlcpy(3) instead of strcpy(3)

9 years agoupper the warning level to 3
bapt [Tue, 5 May 2015 07:42:40 +0000 (07:42 +0000)]
upper the warning level to 3