OPNsense - FreeBSD source
Find a file
Kirk McKusick 661ca921e8 Fix backward compatibility with UFS1 filesystems created before June 2002
The code to handle compatibility with old filesystems exists and does
the right things. The loss of compatibility was introduced 2.5 years ago
when the superblock integrity checks were added. The problem is that the
compatibility code was being run after the new integrity checks rather
than before them.

The reason that it has taken so long to show up is because it only
affected filesystems created before UFS2 got added in June 2002 and
that had never been mounted read-write (as their superblocks would
be updated by the compatibility code if they could be written).
Hence the problem was not apparent until someone tried to mount a
pre-2002 virgin UFS1 filesystem image.

See the Pahabricator review for more details.

Reviewed-by: kib
Tested-by:   Peter Holm
MFC-after:   1 week
Differential-Revision: https://reviews.freebsd.org/D48472
2025-01-16 10:44:35 -08:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github github: limit paths for style workflow 2024-12-05 17:59:51 -07:00
bin ls.1: bump date after 82fa7f83b5 and 8b92977857 2025-01-16 17:05:43 +01:00
cddl libdtrace: Be less strict when comparing pointer types 2025-01-01 00:05:03 +00:00
contrib libbsnmp: avoid division by zero with empty password 2025-01-10 21:08:02 -08:00
crypto Add 'crypto/libecc/' from commit '736d663976d1768533badbf06581481d01fade4c' 2025-01-01 15:11:18 -06:00
etc Revert "isp: Fix abort issue introduced by previous commit" 2025-01-08 13:20:09 -05:00
gnu Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
include include: add a userland version of __assert_unreachable 2025-01-12 18:41:37 -06:00
kerberos5 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
lib munmap.2: Add STANDARDS and note about portability 2025-01-16 12:50:47 -05:00
libexec tcp_wrappers: Use default C standard version 2025-01-09 13:07:51 -05:00
release release: install etc files from the source tree, not the host 2025-01-10 14:21:10 +00:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin Fix backward compatibility with UFS1 filesystems created before June 2002 2025-01-16 10:44:35 -08:00
secure secure: hook up libecc as libpkgecc 2025-01-01 15:11:22 -06:00
share BUS_CONFIG_INTR.9: Describe bus_config_intr() wrapper function 2025-01-16 10:55:20 -05:00
stand stand/kshim: Replace devclass_equal with calls to strcmp 2025-01-10 23:03:32 -05:00
sys Fix backward compatibility with UFS1 filesystems created before June 2002 2025-01-16 10:44:35 -08:00
targets Retire MK_PROFILE infrastructure 2024-11-12 12:11:51 -05:00
tests ip: Defer checks for an unspecified dstaddr until after pfil hooks 2025-01-16 16:45:16 +00:00
tools depend-cleanup: Fix match expression for AArch64 asm files 2025-01-15 14:28:03 -05:00
usr.bin bintrans(1): fix typo 2025-01-16 16:48:10 +01:00
usr.sbin pkg: Fix Coverity warnings 2025-01-16 16:45:15 +00:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml .cirrus-ci: Update the non-manual GCC build job to GCC 13 2025-01-03 10:44:44 -05:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.git-blame-ignore-revs git-blame-ignore-revs: Ignore 5c623697d6 in blame 2024-12-06 19:41:34 +08:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore .gitignore: add sys/*/compile 2024-02-02 09:20:36 -07:00
.mailmap mailmap: Translate my personal address 2024-06-22 08:57:56 +02:00
CONTRIBUTING.md CONTRIBUTING.md/style: spring cleaning 2024-05-10 15:07:03 -06:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS Update the Arm Optimized Routines 2025-01-10 10:39:34 +00:00
Makefile universe: Permit requesting a specific version of GCC 2025-01-10 22:49:59 -05:00
Makefile.inc1 build: Check NO_ROOT and METALOG for more targets 2025-01-11 08:44:53 -05:00
Makefile.libcompat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc twe.4: Remove manpage for previously-removed driver 2025-01-09 21:09:52 -05:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Document recent file handle layout changes 2025-01-15 18:21:08 +00:00
UPDATING RELNOTES: Document recent file handle layout changes 2025-01-15 18:21:08 +00: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.

For official FreeBSD bootable images, see the release 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.