Mono Gateway (NXP LS1046A) fork of OPNsense src: DPAA/LS1046A kernel support, rebased on upstream release tags
Find a file
Mark Johnston ef20cd33d3 makefs/zfs: Ensure that the last block of a file has the right size
When copying a file's contents into the pool, a loop copies blocks of
the maximum size (128KB), allocating space from the vdev for each block.
The space allocator rounds up to the nearest block size, but for files
larger than the maximum size, this can result in the last block having a
smaller logical size than the rest of the blocks belonging to that
dnode.  This violates some ZFS invariants when appending to that file.

Modify fs_populate_file() to use the same block size for the final
block.

Reported by:	cperciva
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2023-09-28 16:16:17 -04:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
bin cat: add CAP_SEEK capability 2023-09-28 15:38:36 +02:00
cddl zfs: merge openzfs/zfs@2e2a46e0a 2023-09-24 23:58:34 +02:00
contrib capsicum: add tests for copy_file_range 2023-09-28 15:48:32 +02:00
crypto openssl: document the update process 2023-09-25 11:43:58 -04:00
etc printenv: Add test for printenv. 2023-09-25 10:10:20 -06:00
gnu Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
include Linux 6.6 compat: generic_fillattr has a new u32 request_mask added at arg2 2023-09-21 18:38:40 -07:00
kerberos5 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lib ptrace(2): Disabling: Describe influence of security.bsd.see_jail_proc 2023-09-28 12:05:47 -03:00
libexec flua: add fbsd module 2023-09-27 16:00:00 +02:00
release release/ec2: Remove references to portsnap 2023-09-27 19:03:25 -04:00
rescue zfs: merge openzfs/zfs@804414aad 2023-08-26 23:51:42 +02:00
sbin sysctl(8): Mention more security.bsd knobs; Refer to security(7) 2023-09-28 12:05:47 -03:00
secure libcrypto: Copy the arm64 header when building asm 2023-09-22 18:15:13 +01:00
share security(7): security.bsd.see*: Be more accurate 2023-09-28 12:05:47 -03:00
stand Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
sys groupmember(), realgroupmember(): Return a bool instead of an int 2023-09-28 12:05:46 -03:00
targets Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tests capsicum: add tests for copy_file_range 2023-09-28 15:48:32 +02:00
tools stress2: Extent timeout limit to avoid false positive errors 2023-09-27 13:01:00 +02:00
usr.bin split: Improve GNU compatibility. 2023-09-28 18:30:16 +02:00
usr.sbin makefs/zfs: Ensure that the last block of a file has the right size 2023-09-28 16:16:17 -04:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint
.cirrus.yml Cirrus-CI: restore amd64-gcc12 build/test on main 2023-08-18 22:35:39 -04:00
.clang-format Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes
.gitignore .gitignore: Ignore LSP generated .cache 2023-03-07 10:04:18 -05:00
.mailmap .mailmap: normalize Mina's name in correct email case as well 2023-09-21 23:26:45 +02:00
CONTRIBUTING.md CONTRIBUTING.md: add author identity info 2023-09-20 19:28:28 -04:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
Makefile Makefile: Support universe-toolchain on non-FreeBSD 2023-08-23 18:00:16 +01:00
Makefile.inc1 libcrypto: link engines and the legacy provider to libcrypto 2023-09-16 16:55:12 +01:00
Makefile.libcompat build{libcompat}: Pass UNIVERSE_TOOLCHAIN_PATH to the _lc_build-tools submake 2023-08-21 21:00:45 -07:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc cr_canseeotheruids(), cr_canseeothergids(): Man pages: Impacts of rename 2023-09-28 12:05:45 -03:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES Fix typo in RELNOTES (objump -> objdump) 2023-09-18 11:04:21 +01:00
UPDATING UPDATING: add a note about EARLY_AP_STARTUP on x86 2023-09-27 12:35:17 -04:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.