OPNsense - FreeBSD source
Find a file
Abdelkader Boudih 7faa082b0c cam (scsi): silence "Medium not present" SCSI sense logging for removable media
Change SS_FATAL to SS_FAIL for SCSI sense code 0x3A (Medium not present)
to suppress console spam when card readers or other removable media
devices have no media inserted.

The error is still returned to callers (ENXIO), but no longer prints to
dmesg during boot/probe.

Verified with Apple SD Card Reader - reduced boot messages from 4 to 2.

Reviewed by:	emaste, imp
Differential Revision: https://reviews.freebsd.org/D55287

(cherry picked from commit 3d218b6289cf4675abdeef17a4489e71f8e1935e)
2026-04-22 12:48:35 -04:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github .github: support all stable branches 2026-04-02 11:11:44 +01:00
bin sh: Increase default history size to POSIX mandated minimum of 128 2026-04-15 21:33:35 -04:00
cddl ctfmerge: fix segfault when building on macOS 2025-12-15 14:22:54 -08:00
contrib libfido2: Update to 1.16.0 2026-04-22 10:24:02 -04:00
crypto crypto/openssl: update artifacts to match 3.5.6 release artifacts 2026-04-11 19:14:40 -07:00
etc pkgbase: Move all of Kyua into the kyua package 2026-04-07 15:52:09 +00:00
gnu diff3: Move to own package 2025-10-03 09:52:43 -07:00
include unistd.h: _Fork(2) is required by POSIX 2024 2026-04-17 03:42:38 +03:00
kerberos5 heimdal-kadmin: Add support for the -f dump option 2025-10-07 18:47:21 -07:00
krb5 krb5: Make the build a bit quieter 2026-03-31 15:57:28 +00:00
lib libarchive: Update configuration 2026-04-22 15:43:33 +02:00
libexec rc.conf: Fix typo in comment 2026-04-20 04:43:27 +00:00
release pkgbase: remove incorrect clang shlib requires 2026-04-22 09:47:39 -04:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin manuals: System message vs kernel message 2026-04-13 16:02:32 -04:00
secure crypto/openssl: add new manpage from release 3.5.6 2026-04-11 19:15:00 -07:00
share ix(4): Add support for firmware logging for E610 adapters 2026-04-21 22:22:50 +02:00
stand stand/powerpc: Fix a typo in a source code comment 2026-04-22 11:21:23 +02:00
sys cam (scsi): silence "Medium not present" SCSI sense logging for removable media 2026-04-22 12:48:35 -04:00
targets blocklist: Rename blacklist to blocklist 2025-10-14 00:53:16 +00:00
tests pkru: Fix handling of 1GB largepage mappings 2026-04-21 15:42:41 +00:00
tools INIT_ALL: Fix typo in option description 2026-04-22 10:23:13 -04:00
usr.bin libarchive: merge from vendor branch 2026-04-22 15:43:16 +02:00
usr.sbin jail: fix crash with startup commands on a jail without name 2026-04-22 23:59:32 +08: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: Switch back to tzst packages, but use level 1 2025-10-14 20:47:10 -04:00
.clang-format clang-format: adjust to sort C++ headers per style(9) 2026-02-21 19:44:24 -08:00
.clean_build_epoch build: introduce the notion of a build epoch 2025-08-14 23:43:42 -05:00
.git-blame-ignore-revs git-blame-ignore-revs: witness white space cleanup and style(9) tweeks 2025-08-29 18:01:43 +08:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore src.sys.mk: Support src.conf in SRCTOP 2025-09-16 13:27:43 +00:00
.mailmap mailmap: Add Joyu Liao 2025-06-26 14:13:21 +02:00
CONTRIBUTING.md CONTRIBUTING: Tweak the language 2025-08-08 11:16:13 -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 capsicum-test: Move out of contrib 2026-02-06 11:15:09 -05:00
Makefile Makefile: Update doxygen requirements 2026-02-05 16:49:54 -05:00
Makefile.inc1 packages: Always use the bootstrap flua 2026-04-12 20:12:16 +01:00
Makefile.libcompat Makefile.libcompat: Use same PATH for _lc_build-tools as _build-tools 2025-08-22 21:46:15 +01:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc ObsoleteFiles.inc: remove stale allwinner pages 2026-04-16 12:17:35 -03:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Add entry for 0c370a416b 2026-02-12 12:47:53 -07:00
UPDATING libpam: Move to a new "pam" package 2026-04-07 12:01:39 +01: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.