freebsd with flexible iflib nic queues
Go to file
Kirk McKusick 89fd99c251 Correct several bugs in fsck_ffs(8) triggered by corrupted filesystems.
If a directory entry has an illegal inode number (less than zero
or greater than the last inode in the filesystem) the entry is removed.
If a directory '.' or '..' entry had an illegal inode number they
were being removed. Since fsck_ffs knows what the correct value is
for these two entries fix them rather deleting them.

Add much more extensive cylinder group checks and use them to be
more careful about rebuilding a cylinder group.

Check for out-of-range block numbers before trying to free them.

When a directory is deleted also remove its cache entry created
in pass1 so that later passes do not try to operate on a deleted
directory.

Check for ctime(3) returning NULL before trying to use its return.

When freeing a  directory inode, do not try to interpret it as a
directory.

Reserve space in the inostatlist to have room to allocate a
lost+found directory.

If an invalid block number is found past the end of an inode simply
remove it rather than clearing and removing the inode.

Modernize the inoinfo structure to use queue(3) LIST rather than a
handrolled linked list implementation.

Reported by:  Bob Prohaska, John-Mark Gurney, and Mark Millard
Tested by:    Peter Holm
Reviewed by:  Peter Holm
MFC after:    2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38668
2023-04-03 04:09:58 -04:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github Fix typo: messages missing an 'a'. 2023-03-01 16:34:43 -07:00
bin uuidgen(1): fix another typo 2023-04-03 04:09:51 -04:00
cddl ctf: Remove unused function prototype for getpname() 2023-02-26 12:18:25 +08:00
contrib readelf: fix -wR option, memory leaks, and -wf minor bug 2023-04-03 04:09:54 -04:00
crypto ssh: default VerifyHostKeyDNS to no, following upstream 2023-03-01 09:19:07 -05:00
etc pkgbase: Put termcap.small in the same package as termcap 2023-03-03 12:01:22 -05:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-13 21:33:40 -05:00
include libc: Remove prototype and documentation for tzsetwall(). 2023-04-03 04:09:57 -04:00
kerberos5 kerberos5: retire now-unused MIPS support 2022-11-02 13:16:18 -04:00
lib libc: Remove prototype and documentation for tzsetwall(). 2023-04-03 04:09:57 -04:00
libexec machine-id: generate a compact version of the uuid 2023-03-01 19:16:25 +01:00
release ARM release build: enable IPv6 SLAAC by default 2023-02-12 22:32:16 +01:00
rescue rescue: Fix link order of SSL libraries and fetch. 2023-02-02 09:23:02 -08:00
sbin Correct several bugs in fsck_ffs(8) triggered by corrupted filesystems. 2023-04-03 04:09:58 -04:00
secure OpenSSL: Regen manual pages for OpenSSL 1.1.1t 2023-02-07 14:01:15 -05:00
share src.opts.mk: Remove long-unused NDIS option 2023-04-03 04:09:58 -04:00
stand length for the 64-bit entry is 32-bits, not 16-bits. 2023-03-02 17:03:57 -08:00
sys Updates to UFS/FFS superblock integrity checks when reading a superblock. 2023-04-03 04:09:58 -04:00
targets retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
tests tests: add more netlink tests for neighbors/routes 2023-04-03 04:09:57 -04:00
tools Revert "Fix cross-build support for Ubuntu 16.04" 2023-04-03 04:09:58 -04:00
usr.bin byacc: Disable backtracking extension. 2023-04-03 04:09:57 -04:00
usr.sbin bhyve: Move libcasper dependecy to lib9p 2023-04-03 04:09:56 -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: use llvm15 toolchain packages 2023-02-13 09:29:36 -05:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04: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-04-03 04:09:56 -04:00
CONTRIBUTING.md CONTRIBUTING.md: correct developer certificate of origin link markup 2023-02-27 21:36:29 -05:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS
MAINTAINERS MAINTAINERS+GitHub: Reflect ipfilter was moved from contrib to netpfil 2023-02-28 10:33:03 -08:00
Makefile universe: Switch GCC toolchains to GCC 12. 2023-01-27 13:35:13 -08:00
Makefile.inc1 make showconfig: set MACHINE and MACHINE_ARCH 2023-04-03 04:09:54 -04:00
Makefile.libcompat libcompat: avoid installing include files twice 2022-11-16 19:15:20 -05:00
Makefile.sys.inc
ObsoleteFiles.inc libc: Remove prototype and documentation for tzsetwall(). 2023-04-03 04:09:57 -04:00
README.md Vendor import of OpenSSH 9.2p1 2023-02-05 13:04:12 -05:00
RELNOTES Note upgrade to sendmail 8.17.1 2023-02-01 02:23:02 +00:00
UPDATING UPDATING 2023-02-24 23:20:52 -07: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.