tests: Fix graid3 insert testsThe script was passing the wrong device name to `graid3 insert` anddidn't notice that the command was failing.MFC after: 1 weekEvent: EuroBSDcon 2026 DevSummitRe
tests: Fix graid3 insert testsThe script was passing the wrong device name to `graid3 insert` anddidn't notice that the command was failing.MFC after: 1 weekEvent: EuroBSDcon 2026 DevSummitReviewed by: delphijDifferential Revision: https://reviews.freebsd.org/D59564
show more ...
gzoned: Introduce Zoned Storage emulatorgzoned(8) is a new GEOM class that exposes a host-managed zoned device(similar to ZAC/ZBC drives) on top of regular, non-zoned providers.The created mediu
gzoned: Introduce Zoned Storage emulatorgzoned(8) is a new GEOM class that exposes a host-managed zoned device(similar to ZAC/ZBC drives) on top of regular, non-zoned providers.The created medium is sliced into equally sized zones, by defaultsequential-write-required. Such zones can be turned into conventionalzones if desired. The zoned drive's state and configuration ispersistent through metadata at the tail of the backing provider, meaningthe zoned device gets recreated at the provider retaste. Zone statechanges only mark the table dirty with BIO_FLUSH committing it,mirroring drives whose zone state is volatile until a cache flush.The new class tries to emulate real zoned drives by incorporatingper-zone write pointers and support for BIO_ZONE management commands.Fault emulation through zone conditions (RWP recommended, offline, R/O),URSWRZ bit toggling and concurrent open zone limits are additionalfeatures useful for testing.While at it, fix zonectl's report of write pointer LBAs for zones thatshould have none, remove its forced debug flags and allow the geom(8)shared subroutines to detect host-managed drives.ATF-sh tests for gzoned(8) and zonectl(8) (dogfooded by gzoned(8)) areincluded, featuring helpers (see zoned_subr.sh) for testing zonedstorage support in other components or GEOM classes.Reviewed by: asomers, fuz, kenSponsored by: Google Summer of Code 2026Pull Request: https://github.com/freebsd/freebsd-src/pull/2326
tests: Increase timeoutBump the timeout value, to avoid cutoff on emulated architectures onci.freebsd.org.Reported by: JenkinsReviewed by: ngieMFC after: 1 weekDifferential Revision: https://
tests: Increase timeoutBump the timeout value, to avoid cutoff on emulated architectures onci.freebsd.org.Reported by: JenkinsReviewed by: ngieMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D54550
glabel: add a basic testReviewed by: asomersMFC after: 3 daysSponsored by: Rubicon Communications, LLC ("Netgate")Differential Revision: https://reviews.freebsd.org/D53178
ggate tests: Use unique ports among testsThis helps avoid failures when running tests in parallel.MFC after: 1 week
Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
gnop tests: SerializeSome of these tests make use of test disk devices, but then they can'trun in parallel.MFC after: 2 weeks
virstor: basic functional testReviewed by: asomers, markjSponsored by: Dell EMC IsilonDifferential Revision: https://reviews.freebsd.org/D45535
geli: allocate a UMA pool earlierThe functions g_eli_init_uma and g_eli_fini_uma are used to tracethe number of devices in GELI. There is an issue where the g_eli_createfunction may fail before g
geli: allocate a UMA pool earlierThe functions g_eli_init_uma and g_eli_fini_uma are used to tracethe number of devices in GELI. There is an issue where the g_eli_createfunction may fail before g_eli_init_uma is called, howeverg_eli_fini_uma is still executed in the fail path. This canincorrectly decrease the device count to zero, potentially leading tothe UMA pool being freed. Accessing the device after the pool has beenfreed causes a system panic.This commit resolves the issue by ensuring devices count is increassedeariler.PR: 278828Reported by: Andre Albsmeier <mail@fbsd2.e4m.org>Reviewed by: asomersMFC after: 3 daysDifferential Revision: https://reviews.freebsd.org/D45225
tests: don't run atf_* in a subshellShell limitation is that a classic function call via $() is a subshelland atf-sh(3) commands won't work as epxected there. Subsequently,atf_skip inside a func
tests: don't run atf_* in a subshellShell limitation is that a classic function call via $() is a subshelland atf-sh(3) commands won't work as epxected there. Subsequently,atf_skip inside a function won't skip a test. The test will fail later.A working approach is to pass desired variable name as argument toa function and don't run subshell.Reviewed by: ngieDifferential Revision: https://reviews.freebsd.org/D42646Fixes: ea82362219ee715cfbb195b2114e73fdc8599fa5
Add tests for gunion(8)Reviewed by: mckusick (earlier version)MFC after: 3 daysSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D41645
geli tests: Use shorter passphrases in setkey_passphraseThere is an undocumented limit on the length of a GELI passphrase, andthe test exceeded that. Most of the time it worked because a nulterm
geli tests: Use shorter passphrases in setkey_passphraseThere is an undocumented limit on the length of a GELI passphrase, andthe test exceeded that. Most of the time it worked because a nulterminator would appear early enough in the string.Reported by: JenkinsFixes: 2b7b09ac9675 ("geli tests: Add a regression test for geli setkey -J")
tests: Skip all tests that require mdconfig when /dev/mdctl missingWhen run in a jail, /dev/mdctl is missing. So skip any tests that usemdconfig or mdmfs with md in this case: they can't possibly
tests: Skip all tests that require mdconfig when /dev/mdctl missingWhen run in a jail, /dev/mdctl is missing. So skip any tests that usemdconfig or mdmfs with md in this case: they can't possibly work. Thisis in line with other tests that test for presence of required featuresand skip if they aren't present. I did this instead of checking forjails so they can still run in jails that allow creation of md devices.Sponsored by: Netflix
geli tests: Add a regression test for geli setkey -JMake sure that it can be used to change the passphrase of both attachedand detached providers.PR: 254966MFC after: 1 weekSponsored by: The
geli tests: Add a regression test for geli setkey -JMake sure that it can be used to change the passphrase of both attachedand detached providers.PR: 254966MFC after: 1 weekSponsored by: The FreeBSD Foundation
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c comment patternRemove /^/[*/]\s*\$FreeBSD\$.*\n/
Remove $FreeBSD$: one-line .h patternRemove /^\s*\*+\s*\$FreeBSD\$.*$\n/
ggate tests: Serialize
gmirror tests: Serialize
geli tests: Add a regression test for PR 271766This test case catches both of the bugs reported there.PR: 271766Reviewed by: impMFC after: 1 weekSponsored by: The FreeBSD FoundationDifferent
geli tests: Add a regression test for PR 271766This test case catches both of the bugs reported there.PR: 271766Reviewed by: impMFC after: 1 weekSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D40469
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
Skip sys.geom.class.multipath.failloop.failloop if dtrace fails to runThis test case depends on dtrace and sometimes gets affected if dtracehas issues. Make it report skipped instead of failure w
Skip sys.geom.class.multipath.failloop.failloop if dtrace fails to runThis test case depends on dtrace and sometimes gets affected if dtracehas issues. Make it report skipped instead of failure when dtrace failsto run.Sponsored by: The FreeBSD Foundation
gmultipath tests: Re-enable the failloop test in CISponsored by: The FreeBSD Foundation
Temporarily skip sys.geom.class.multipath.failloop.failloop in CIThis test case uses `dtrace -c` but it has some issues at the moment sodisable it until dtrace fixed.From markj:This is the CTF
Temporarily skip sys.geom.class.multipath.failloop.failloop in CIThis test case uses `dtrace -c` but it has some issues at the moment sodisable it until dtrace fixed.From markj:This is the CTF type ID limit which has come up quite a few timeslately. It'll be fixed with the introduction of CTFv3.PR: 258763Sponsored by: The FreeBSD Foundation
gmultipath tests: Re-enable the failloop test in CIPR: 258763MFC after: 2 weeksSponsored by: The FreeBSD Foundation
12345