summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Style/whitespace cleanup in shared/common code.sbruno2015-08-2413-338/+309
| | | | | | Differential Revision: https://reviews.freebsd.org/D3159 Submitted by: erj MFC after: 2 weeks
* Upgrade libxo to 0.4.5.marcel2015-08-24182-2359/+12038
| | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo
* Make it possible to forcibly unmount devfs.trasz2015-08-241-0/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Remove now unused LIBPRIVATEDIRbapt2015-08-242-4/+0
| | | | Sponsored by: Gandi.net
* Make vfs_unmountall() unmount /dev after /, not before. The onlytrasz2015-08-244-28/+38
| | | | | | | | | | reason this didn't result in an unclean shutdown is that devfs ignores MNT_FORCE flag. Reviewed by: kib@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3467
* Fix libproc on architectures that don't need the program counter to beandrew2015-08-241-1/+10
| | | | | | | | | | adjusted. This seems to be the case on all non-x86 architectures libproc supports. Reviewed by: kib Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3465
* Add support for pmap_sync_icache on arm64.andrew2015-08-241-2/+24
| | | | | | | Reviewed by: emaste, imp (both earlier version) Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3438
* Add pages used by the PV entries to minidumps.andrew2015-08-241-4/+0
|
* MFV (partial) r286889: 5692 expose the number of hole blocks in a fileavg2015-08-243-13/+96
| | | | | | | | | | | | | | | | | | | | | | FreeBSD porting notes: - only kernel-side changes are merged - the new ioctl is not actually implemented yet - thus, the goal is to synchronize DMU code illumos/illumos-gate@2bcf0248e992f292c7b814458bcdce2f004925d6 https://www.illumos.org/issues/5692 we would like to expose the number of hole (sparse) blocks in a file. this can be useful to for example if you want to fill in the holes with some data; knowing the number of holes in advances allows you to report progress on hole filling. We could use SEEK_HOLE to do that but it would be O(n) where n is the number of holes present in the file. Author: Max Grossman <max.grossman@delphix.com> Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Boris Protopopov <bprotopopov@hotmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
* Some random tweaks to ctl.conf(5).trasz2015-08-241-12/+38
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Revert r284245: "Fix a callout race condition introduced in TCPjch2015-08-242-45/+15
| | | | | | | | | | | | | | | timers callouts with r281599." r281599 fixed a TCP timer race condition, but due a callout(9) bug it also introduced another race condition workaround-ed with r284245. The callout(9) bug being fixed with r286880, we can now revert the workaround (r284245). Differential Revision: https://reviews.freebsd.org/D2079 (Initial change) Differential Revision: https://reviews.freebsd.org/D2763 (Workaround) Differential Revision: https://reviews.freebsd.org/D3078 (Fix) Sponsored by: Verisign, Inc. MFC after: 2 weeks
* spa_import_rootpool: prevent lock and resource leakavg2015-08-241-0/+2
| | | | | | | | The lock leak could lead to a deadlock later. PR: 198563 Submitted by: Fabian Keil <fk@fabiankeil.de> MFC after: 1 week
* account for ashift when gathering buffers to be written to l2arc deviceavg2015-08-241-13/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change that introduced the L2ARC compression support also introduced a bug where the on-disk size of the selected buffers could end up larger than the target size if the ashift is greater than 9. This was because the buffer selection could did not take into account the fact that on-disk size could be larger than the in-memory buffer size due to the alignment requirements. At the moment b_asize is a misnomer as it does not always represent the allocated size: if a buffer is compressed, then the compressed size is properly rounded (on FreeBSD), but if the compression fails or it is not applied, then the original size is kept and it could be smaller than what ashift requires. For the same reasons arcstat_l2_asize and the reported used space on the cache device could be smaller than the actual allocated size if ashift > 9. That problem is not fixed by this change. This change only ensures that l2ad_hand is not advanced by more than target_sz. Otherwise we would overwrite active (unevicted) L2ARC buffers. That problem is manifested as growing l2_cksum_bad and l2_io_error counters. This change also changes 'p' prefix to 'a' prefix in a few places where variables represent allocated rather than physical size. The resolved problem could also result in the reported allocated size being greater than the cache device's capacity, because of the overwritten buffers (more than one buffer claiming the same disk space). This change is already in ZFS-on-Linux: zfsonlinux/zfs@ef56b0780c80ebb0b1e637b8b8c79530a8ab3201 PR: 198242 PR: 195746 (possibly related) Reviewed by: mahrens (https://reviews.csiden.org/r/229/) Tested by: gkontos@aicom.gr (most recently) MFC after: 15 days X-MFC note: patch does not apply as is at the moment Relnotes: yes Sponsored by: ClusterHQ Differential Revision: https://reviews.freebsd.org/D2764 Reviewed by: noone (@FreeBSD.org)
* Sync HPA and VPA implementations with CUP.ed2015-08-241-6/+6
| | | | | | | | | | After fixing the 16-bits integer arithmetic overflow in 286981, we should also make sure to fix the VPA sequence. Bring HPA and VPA in sync with how we now implement CUP. PR: 202612 Reported by: kcwu csie org MFC after: 1 month
* Add static and remove unused variables.hrs2015-08-241-44/+50
|
* Implement the IPv6 RSS software hash function.adrian2015-08-242-0/+57
| | | | | | | | | | This isn't yet linked into the receive/transmit paths anywhere just yet. This is part of a GSoC 2015 project. Submitted by: Tiwei Bie <btw@mail.ustc.edu.cn> Reviewed by: hiren, gnn Differential Revision: https://reviews.freebsd.org/D3423
* Remove obsolete API (SIOCGDRLST_IN6 and SIOCGPRLST_IN6) support.hrs2015-08-241-201/+0
|
* - Deprecate IN6_IFF_NODAD. It was used to prevent DAD on a loopbackhrs2015-08-244-20/+17
| | | | | | | | | | | | | | | | | | interface but in6if_do_dad() already had a check for IFF_LOOPBACK. - Remove in6if_do_dad() check in in6_broadcast_ifa(). An address which needs DAD always has IN6_IFF_TENTATIVE there. - in6if_do_dad() now returns EAGAIN when the interface is not ready since DAD callout handler ignores such an interface. - In DAD callout handler, mark an address as IN6_IFF_TENTATIVE when the interface has ND6_IFF_IFDISABLED. And Do IFF_UP and IFF_DRV_RUNNING check consistently when DAD is required. - draft-ietf-6man-enhanced-dad is now published as RFC 7527. - Fix some typos.
* Instead of doing an no-op (|= 0), actually clear the flags indelphij2015-08-241-1/+1
| | | | | | acl_clear_flags_np. MFC after: 2 weeks
* Fix static fdt support.jhibbits2015-08-241-0/+2
| | | | | | | FDT_DTB_STATIC is defined in opt_platform.h, and fdt_static_dtb is in fdt_common.h, so include those files. Sponsored by: Alex Perez/Inertial Computing
* Fix spelling.araujo2015-08-241-2/+1
| | | | | | Reviewed by: wblock, pfg Approved by: bapt (mentor) Differential Revision: D3380
* Update bzero(3) manpage to following the Posix Standard.araujo2015-08-241-1/+9
| | | | | | Reviewed by: wblock, pfg Approved by: bapt (mentor) Differential Revision: D3380
* Make it clear that we're ignoring the return value fread(3). Allimp2015-08-241-1/+1
| | | | | | errors that might happen here will be reported a few lines down. CID: 1295248
* We need to add the soft float to the CFLAGS always, not just whenimp2015-08-241-1/+3
| | | | | NO_CPUCFLAGS is not defined since it is part of the ABI as we've defined it, not just a nice optimization.
* Sparc64 is the odd-man out, so form the if that way rather thanimp2015-08-232-6/+2
| | | | listing everybody else.
* Enable KDTRACE_HOOKS by default on all armv6 kernels to get more testing.andrew2015-08-232-5/+5
|
* sh: Don't create bad parse result when postponing a bad substitution error.jilles2015-08-234-2/+13
| | | | | | | | | | | | | | An invalid substitution like ${var@} does not cause a parse error but is stored in the intermediate representation, to be written as part of the error message. If there is a CTL* byte in the stored part, this confuses some code such as the code to skip an unused alternative such as in ${var-alternative}. To keep things simple, do not store CTL* bytes. Found with afl-fuzz. MFC after: 1 week
* Update svnlite(1) commit template. This makes it possible to set thetrasz2015-08-231-9/+22
| | | | | | | | | "freebsd-sponsored-by" and "freebsd-mfc-after" in ~/.subversion/config, in the "[miscellany]" section - just like you already can with devel/subversion port/package. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* After r286237 it should be fine to call vgone(9) on a busy GEOM vnode;trasz2015-08-233-6/+2
| | | | | | | remove KASSERT that would prevent forced devfs unmount from working. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Tweak the "rctl_enable" description to not give the impressiontrasz2015-08-231-4/+4
| | | | | | | of being disabled by default. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Handle the breakpoint instruction in userland by sending a SIGTRAP signal.andrew2015-08-231-0/+6
|
* Although the website [1] says US-ASCII is accepted, ISO-8859-1 seems todelphij2015-08-231-1/+1
| | | | | | | | | be the only accepted character that is close enough to US-ASCII (and this is also done on OpenBSD; the alternative would be to use UTF-8). [1] http://www.denic.de/en/domains/technik/denic_whois-server/index.html MFC after: 2 weeks
* Reset the channel to the first available channel if the interfaceadrian2015-08-231-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | is configured on a channel that isn't valid in the new operating mode. This isn't strictly true - it should find the first channel that is available for the given operating mode. However, I think defaulting to the first channel is fine - it's typically available for all modes. If someone would like to correctly implement this feature - try to find a channel that is valid for the given operating mode and error out if we can't find one. This prevents various NICs (eg wpi(4)) from throwing a firmware error. Tested: * ath(4), STA/AP mode * iwn(4), STA/adhoc mode PR: kern/202502 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
* Remove cust_pkg() not that pkg_foo(1) has been removed.imp2015-08-223-52/+3
|
* Remove some code duplication by using biofinish().mav2015-08-221-6/+2
| | | | | Submitted by: imp MFC after: 1 week
* Make the UMA harvesting go away completely if not wanted. Default to "not ↵markm2015-08-2210-43/+61
| | | | | | | | | | | | | | | | wanted". Provide and document the RANDOM_ENABLE_UMA option. Change RANDOM_FAST to RANDOM_UMA to clarify the harvesting. Remove RANDOM_DEBUG option, replace with SDT probes. These will be of use to folks measuring the harvesting effect when deciding whether to use RANDOM_ENABLE_UMA. Requested by: scottl and others. Approved by: so (/dev/random blanket) Differential Revision: https://reviews.freebsd.org/D3197
* Fix build when LEAPSECONDS is enabled.delphij2015-08-221-1/+1
| | | | MFC after: 2 weeks
* MFV r287019: leapseconds from tzdata2015f.delphij2015-08-221-58/+18
| | | | MFC after: 2 weeks
* Follow up to r287014jhibbits2015-08-225-5/+28
| | | | | | Missed these files, from the original diff. Sponsored by: Alex Perez/Inertial Computing Differential Revision: https://reviews.freebsd.org/D3027
* Enhance book-e pmap for 36-bit physaddrjhibbits2015-08-221-19/+22
| | | | | | | | | | | | | | | Summary: This is (probably step 1) of enhancing the book-e pmap to support the full 36-bit physical address space on Freescale e500 and e5500 cores. Thus far it has only been regression tested on one platform. Since I only have one other Book-E platform (e5500), that needs work beyond this, I haven't yet tested it on this. Test Plan: Regression tested on my RouterBoard RB800. Reviewed By: marcel Differential Revision: https://reviews.freebsd.org/D3027
* Create a RouterBoard platform and use it to create a flash mapjhibbits2015-08-226-3/+138
| | | | | | | | | | | | | Summary: The RouterBoard uses a predefined partition map which doesn't exist in the fdt. This change allows overriding the fdt slicer with a custom slicer, and uses this custom slicer to define the flash map on the RouterBoard RB800. D3305 converts the mpc85xx platform into a base class, so that systems based on the mpc85xx platform can add their own overrides. This change builds on D3305, and creates a RouterBoard (RB800) platform to initialize the slicer override. Reviewed By: nwhitehorn, imp Differential Revision: https://reviews.freebsd.org/D3345
* Make pkill/pgrep -j ARG take jname, not just jid.jamie2015-08-226-20/+78
| | | | | | PR: 201588 Submitted by: Daniel Shahaf <danielsh at apache.org> MFC after: 3 days
* Make the mpc85xx platform a kobj base class.jhibbits2015-08-222-7/+7
| | | | | | | | | | | | | | | Summary: Some systems are based around mpc85xx, but need special initialization. By making the mpc85xx platform a base class, these systems can be platform subclasses, and perform board-specific initialization in addition to the mpc85xx initialization. Test Plan: Tested on my RB800. A platform class was created, and will be committed separately. Reviewed By: nwhitehorn Differential Revision: https://reviews.freebsd.org/D3305
* Add ALTQ(9) support for the CoDel algorithm.loos2015-08-2124-21/+989
| | | | | | | | | | | | | CoDel is a parameterless queue discipline that handles variable bandwidth and RTT. It can be used as the single queue discipline on an interface or as a sub discipline of existing queue disciplines such as PRIQ, CBQ, HFSC, FAIRQ. Differential Revision: https://reviews.freebsd.org/D3272 Reviewd by: rpaulo, gnn (previous version) Obtained from: pfSense Sponsored by: Rubicon Communications (Netgate)
* We're waiting on a struct proc *, not a struct thread *. Fix aimp2015-08-211-1/+1
| | | | comment that was wrong.
* Document bsd.compiler.mk and the variables it defines.imp2015-08-211-0/+21
|
* Document CFLAGS_NO_SIMD.imp2015-08-211-1/+9
|
* Fix the racy xargs -P0 -n2 test added in r286289ngie2015-08-212-3/+3
| | | | | | | | Sort the output obtained from xargs and the expected output to ensure the end result versus the input file is stable Differential Revision: D3432 Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com>
* Disable the -P0 testngie2015-08-211-1/+1
| | | | | | It's unreliable (sometimes it passes, sometimes it fails) Reported by: Jenkins (many times over the past few weeks)
* Fix typos (depreciated -> deprecated)ngie2015-08-211-2/+2
|
OpenPOWER on IntegriCloud