FreeBSD src
Go to file
Kirk McKusick 220427da0e Set UFS/FFS file type to snapshot before changing its block pointers.
A UFS/FFS snapshot file is identified with the SF_SNAPSHOT
flag to identify it as a snapshot. This flag needs to be
set before setting some of its block pointers to the special
values BLK_SNAP and BLK_NOCOPY. If the snapshot creation fails
and we call VOP_REMOVE(), the SF_SNAPSHOT flag will let the
remove routine know that the special block pointer values need
to be rolled back before attempting deletion of the file.

Also ensure that an fsck is required after setting superblock
values in the ffs_checkcgintegrity() routine.

Reported-by:  Peter Holm
Tested-by:    Peter Holm
MFC-after:    1 week
Sponsored-by: The FreeBSD Foundation
2023-08-12 11:20:40 -07:00
.cirrus-ci
.github Vendor import of OpenSSH 9.4p1 2023-08-10 12:16:53 -04:00
bin Link /usr/bin/cpuset to a relative path 2023-08-11 04:20:16 -07:00
cddl dtrace: Add WITH_DTRACE_ASAN 2023-08-02 09:15:08 -04:00
contrib Vendor import of OpenSSH 9.4p1 2023-08-10 12:16:53 -04:00
crypto ssh: Update to OpenSSH 9.4p1 2023-08-10 23:10:18 -04:00
etc tests: Add stack grows tests 2023-08-08 18:12:09 +03:00
gnu Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
include arm64 lib32: prepare arm64 headers to redirect to arm 2023-07-25 18:59:26 -05:00
kerberos5 kerberos5: Migrate from COMPAT_32BIT to generic COMPAT_LIBCOMPAT 2023-07-09 18:49:21 +01:00
lib clang: Minor build simplification now that armv[45] is not supported 2023-08-11 22:55:10 -06:00
libexec cpuset(8): move to /bin/ 2023-08-11 00:49:02 -07:00
release EC2: Build and upload AMIs for both UFS and ZFS 2023-08-09 15:44:54 -07:00
rescue Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
sbin ping: use the in6_addr buffer when parsing src address as AF_INET6 2023-08-08 23:21:49 +02:00
secure OpenSSL: update to 3.0.10 2023-08-10 12:07:32 -04:00
share release(7): Bump date after introducing VMFSLIST in 32ae9a6b39 2023-08-12 12:39:53 +08:00
stand stand: Export _start on arm like other architectures 2023-08-05 01:14:16 +01:00
sys Set UFS/FFS file type to snapshot before changing its block pointers. 2023-08-12 11:20:40 -07:00
targets targets: Catch up with the removals of mips and sparc64 2023-08-06 22:25:37 +02:00
tests tests: Also exclude powerpc/powerpcspe from mmap_map_32bit_test 2023-08-12 09:24:15 +08:00
tools nanobsd: Remove remainder of sparc64 support 2023-08-06 22:28:13 +02:00
usr.bin cpuset(8): move to /bin/ 2023-08-11 00:49:02 -07:00
usr.sbin mountd: Fix type of signal variable 2023-08-10 12:50:35 -07:00
.arcconfig
.arclint
.cirrus.yml Cirrus-CI: use llvm16 job by default and make llvm15 manual 2023-06-22 20:26:34 -04:00
.clang-format
.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
CONTRIBUTING.md CONTRIBUTING.md: reinsert double spaces 2023-07-10 12:24:24 -06:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS
MAINTAINERS MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
Makefile universe: Demote armv6 to an extra architecture. 2023-07-27 22:30:41 -06:00
Makefile.inc1 Makefile.inc1: Remove redundant test for armv[67] 2023-08-11 22:55:10 -06:00
Makefile.libcompat Makefile.libcompat: Fix DTRACE variable 2023-08-11 00:48:01 +01:00
Makefile.sys.inc
ObsoleteFiles.inc man4: Remove stale MLINK to ath_pci.4 2023-08-09 14:35:25 +02:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES RELNOTES: add a note about lua config files in loader 2023-07-24 23:35:25 -05:00
UPDATING ath(4): Remove MIPS AHB frontend and join PCI one w/ main support again 2023-08-08 22:30:13 +02: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.