OpenZFS/src 88af9c8 — tests/zfs-tests/tests/functional/gang_blocks gang_blocks_special_fallback.ksh gang_blocks_redundant.ksh, tests/zfs-tests/tests/functional/mmp mmp_write_distribution.ksh

ZTS: restore tunables that a group's setup changes

- gang_blocks: setup.ksh set metaslab_force_ganging_pct to 0 without
  saving it, so cleanup.ksh had nothing to restore and it stayed 0
  (default 3) for the rest of the run.  enospc_ganging and
  removal_with_ganging, which run later and lower
  metaslab_force_ganging to force gang blocks, then made no gang
  blocks.  setup.ksh now saves the gang tunables.  The tests, which
  can no longer save and restore the same tunables, set the group's
  values back in their cleanup.
- mmp_write_distribution: set multihost_history back to the group's
  value, first thing in its cleanup.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alan Somers <asomers at gmail.com>
Signed-off-by: Matthew Ahrens <matt at mahrens.org>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Closes #19892
DeltaFile
+8-7tests/zfs-tests/tests/functional/gang_blocks/gang_blocks.kshlib
+5-2tests/zfs-tests/tests/functional/gang_blocks/setup.ksh
+2-3tests/zfs-tests/tests/functional/gang_blocks/gang_blocks_scrub_copies.ksh
+0-1tests/zfs-tests/tests/functional/gang_blocks/gang_blocks_special_fallback.ksh
+0-1tests/zfs-tests/tests/functional/gang_blocks/gang_blocks_redundant.ksh
+1-0tests/zfs-tests/tests/functional/mmp/mmp_write_distribution.ksh
+16-146 files not shown
+16-2012 files

OpenZFS/src f8f5125 — tests/zfs-tests/tests/functional/cache cache_010_pos.ksh, tests/zfs-tests/tests/functional/slog slog_013_pos.ksh

ZTS: detach the loop devices of cache_010_pos and slog_013_pos

On Linux, cache_010_pos and slog_013_pos leave their loop device
attached.  slog_013_pos's device still holds testpool's log label, so
later tests in the same boot that look up testpool with "zdb -e" fail
with "more than one matching pool".  Each test strips the device path
to its name for zpool add, so cleanup's "losetup -d loop0" fails
("failed to use device") and the failure is ignored.

- Detach the device by its full path, and check that the detach
  worked, on FreeBSD and illumos too.
- Keep the path only after the device is attached, so cleanup doesn't
  try to detach one that never was.

Reviewed by: George Wilson <gwilson at zfsmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alan Somers <asomers at gmail.com>
Signed-off-by: Matthew Ahrens <matt at mahrens.org>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Closes #19883
DeltaFile
+6-6tests/zfs-tests/tests/functional/slog/slog_013_pos.ksh
+6-6tests/zfs-tests/tests/functional/cache/cache_010_pos.ksh
+12-122 files

OpenZFS/src f0b3352 — module/zfs vdev.c vdev_mirror.c, tests/runfiles common.run

draid: fix data loss when a disk is cleared during rebuild

If a disk under a distributed spare is cleared while a sequential
rebuild (resilver) is running, data can be lost in three ways:

- When the rebuild completes, the cleared disk's DTL is excised even
  though the rebuild never repaired it.  Its spare is then detached,
  leaving the stale disk as the only copy.

  vdev_dtl_should_excise() now keeps the DTL of leaves that weren't
  rebuild targets, so the spare stays attached until a healing
  resilver or a scrub has repaired the disk.

- A column served by a distributed spare, whose data at that offset
  lives on a device being rebuilt, is read as if it were valid.  The
  rebuild may not have written that data yet, so the read can return
  stale data, which is then used to reconstruct the rebuilt column and
  written back by the forced repair.


    [14 lines not shown]
DeltaFile
+112-0tests/zfs-tests/tests/functional/redundancy/redundancy_draid_spare5.ksh
+25-6module/zfs/vdev_draid.c
+10-6module/zfs/vdev_mirror.c
+8-2module/zfs/vdev.c
+1-0tests/zfs-tests/tests/Makefile.am
+1-0tests/runfiles/common.run
+157-146 files

OpenZFS/src d960af2 — .github/workflows README.md labels.yml

CI: Unblock PRs that no longer name a dependency

The blocked job changes "Status: Blocked" only on a PR whose
description names a dependency, so that a label set by hand on any
other PR stays.  The price is that a PR whose author deletes its
"Depends on" line keeps the label the job gave it, though nothing
blocks it any more.  #19835 kept it after its description stopped
depending on #19730, and someone with triage rights had to be asked
to remove it.

A PR that names no dependency now loses the label on the events the
job already handles, an edit of its description first, but only if a
bot was the last to add it.  The job tells by reading the last 100
label changes of the PR, as the inactive job does for its own label.
A label that a person added last stays: it was set for a reason the
description does not give, and should not vanish at the next edit.
So does a label that the job cannot trace, older than those 100
changes, or on a PR whose label changes cannot be read, which gets a
warning.

    [9 lines not shown]
DeltaFile
+49-10.github/workflows/labels.yml
+2-1.github/workflows/README.md
+51-112 files

OpenZFS/src 34329f2 — .github/workflows README.md labels.yml

CI: Replace "Status: Accepted" with "Status: Maintainer Approved"

With the review labels, "Status: Maintainer Approved" tells on its own
that someone who can push to the repository has approved the code a PR
has now, which is close to that decision, and keeping both asks
maintainers to set by hand a label that can disagree with one the job
sets.  This commit makes them one label.  What changes is that it then
comes with the first approval of a maintainer, where
"Status: Accepted" waited for a maintainer to decide, which can take
more than one approval: that is the trade-off to weigh.

The reviewed job renames "Status: Accepted" to
"Status: Maintainer Approved", once and while the new name does not
exist, so that the PRs that have it, closed ones included, keep it
under the new name; a search for the old name finds nothing
afterwards.  A maintainer can still add the label by hand to accept a
PR that no maintainer approved in a review.  The job never removes a
label that someone other than a bot added last, so only a push that
changes the code takes such a label off, as it takes off an approval.

    [19 lines not shown]
DeltaFile
+7-5.github/workflows/labels.yml
+4-1.github/workflows/README.md
+11-62 files

OpenZFS/src 071227f — .github/workflows README.md labels.yml

CI: Label PRs approved by a maintainer or a contributor

"Status: Reviewed" and "Status: Maintainer Reviewed" tell that someone
has read a PR, but not whether they would merge it as it is, and they
stay after the author has rewritten the code that was read.  So a
maintainer looking for PRs ready to merge, or for PRs that another
contributor has already vetted, still has to open each of them.

The reviewed job now gives four labels from the reviews of the code
a PR has now by someone other than its author and not a bot, Copilot
being one, as before: "Status: Maintainer Reviewed" and
"Status: Maintainer Approved" for a reviewer who can push to the
repository, and "Status: Contributor Reviewed" and
"Status: Contributor Approved" for anyone else.  Any submitted review,
a bare comment included, makes a reviewer Reviewed.  They are Approved
when their latest approval, request for changes or dismissed review is
an approval of that code: a later request for changes, or the
dismissal of the approval, takes them back to Reviewed, and a later
comment does not.  The job renames "Status: Reviewed" to

    [44 lines not shown]
DeltaFile
+279-35.github/workflows/labels.yml
+13-5.github/workflows/README.md
+292-402 files

OpenZFS/src 980b5e0 — .github/workflows/scripts qemu-3-deps-vm.sh, tests/test-runner/bin test-runner.py.in

ZTS: pass the environment through sudo without -E

test-runner starts every test as root with "sudo -E". sudo-rs, which
Ubuntu 26.04 installs as sudo, does not support -E: it prints
"preserving the entire environment is not supported, '-E' is
ignored" and runs the test with a reset environment. STF_SUITE and
the rest of the suite's settings are lost, every test fails on its
first line ("/include/libtest.shlib: cannot open") and the run
reports 0% passed.

Name the variables instead. Both sudo-rs and the original sudo accept
--preserve-env=<list>, and test-runner passes every variable of its
own environment. user_run() in libtest.shlib does the same with the
list from "typeset +x". tmpfile_002_pos already runs as root, so it
calls zpool directly instead of through "sudo -E".

The CI setup for Ubuntu 26.04 swapped sudo-rs for sudo.ws to get -E
back. That swap goes away, so the Ubuntu 26.04 runs use sudo-rs. The
other "sudo -E" calls in the CI scripts do not depend on the

    [9 lines not shown]
DeltaFile
+5-2tests/zfs-tests/include/libtest.shlib
+0-4.github/workflows/scripts/qemu-3-deps-vm.sh
+1-1tests/zfs-tests/tests/functional/tmpfile/tmpfile_002_pos.c
+1-1tests/test-runner/bin/test-runner.py.in
+7-84 files

OpenZFS/src 8495773 — .github/workflows zloop.yml zfs-arm.yml, .github/workflows/scripts reuse-ci.py

CI: Reuse jobs of earlier PR runs of the same tree

A PR pushed again with only its commit messages changed, for example
reworded after a review, runs every job again, among them about sixteen
QEMU jobs of three to five hours each.  reuse-ci.py only reuses push
runs of the source fork, which may have failed or never run.  Earlier
PR runs tested the same files, as they check out the PR head and not a
merge, but were not reused: the OS list and test suite of a QEMU PR run
depend on its CI type, which a reworded ZFS-CI-Type line or a new base
can change and which the run did not record.

Let Setup record the CI type in the name of a step, which the jobs API
returns, and let a PR run also look at the latest ten PR runs of its
branch from the same head repository.  A QEMU PR run is reused only by
a run of the same CI type; runs from before this change are not.  The
newest finished result still decides each job.  Unfinished jobs of
earlier PR runs are not waited for, since the new run cancels them.

Push runs now reuse the push runs of their own repository in the same

    [9 lines not shown]
DeltaFile
+91-46.github/workflows/scripts/reuse-ci.py
+32-16.github/workflows/README.md
+10-4.github/workflows/zfs-qemu.yml
+2-2.github/workflows/zloop.yml
+2-2.github/workflows/zfs-arm.yml
+2-2.github/workflows/unit-tests.yml
+139-721 files not shown
+141-747 files

OpenZFS/src ff46bab — .github/workflows README.md, .github/workflows/scripts reuse-ci.py

CI: Reuse checkstyle only for the same commit message

reuse-ci.py reuses a fork job of any commit with the same tree as the
PR head.  That holds for builds and tests, which only see the files,
but make checkstyle also runs commitcheck, which checks the message of
the head commit: subject and body line lengths and the Signed-off-by
line.  A commit reworded after a review, with a body line now too long
or its sign-off dropped, would get the green checkstyle of the commit
it replaces.

Reuse a checkstyle job only from a run whose head commit has the same
tree and the same message.  The workflow run API returns that message
with the tree, so this needs no more requests.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Closes #19928
DeltaFile
+12-6.github/workflows/scripts/reuse-ci.py
+3-1.github/workflows/README.md
+15-72 files

OpenZFS/src 4df90ca — tests/zfs-tests/tests/functional/replacement detach.ksh

ZTS: detach: pass the pool to the zpool detach that must fail

The check that "zpool detach" fails on stripe, raidz and dRAID pools
ran "zpool detach $TESTDIR/$TESTFILE1.1" with no pool name.  zpool
then stops at "missing <device> specification" before it opens any
pool, so the check passed whatever a detach of that device would have
done.  Pass the pool name, as the detach earlier in the test does.

While here, set "options" rather than "ptions", so that file_trunc
gets -r as in the other replacement tests, and have the assertion
describe a detach rather than a replace.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Closes #19471
DeltaFile
+3-3tests/zfs-tests/tests/functional/replacement/detach.ksh
+3-31 files

OpenZFS/src e7ebe57 — tests/zfs-tests/tests/functional/replacement resilver_restart_001.ksh

ZTS: resilver_restart_001 improvements

The resilver_restart_001 test case has not been entirely reliable
when run under the CI.  Address several small issues which may be
responsible.

- Configure the pool as raidz2 instead of raidz1 since the test
  offlines two devices.  This ensures the second device is marked
  as OFFLINE instead of DEGRADED.

- Start the zpool replace after setting SCAN_SUSPEND_PROGRESS to
  close any potential race where the replace finishs to quickly.

- Wait for the offlines/onlined vdevs to fully transition to the
  expected state during the test.

- Add the true flag to sync_pool to force a TXG sync to happen
  even if it might not otherwise be required.


    [5 lines not shown]
DeltaFile
+12-7tests/zfs-tests/tests/functional/replacement/resilver_restart_001.ksh
+12-71 files

OpenZFS/src 443d76f — . META

Tag zfs-2.4.5

META file and changelog updated.

Signed-off-by: Tony Hutter <hutter2 at llnl.gov>
DeltaFile
+1-1META
+1-11 files

OpenZFS/src 8c4a9ee — tests/zfs-tests/tests/functional/redundancy redundancy_draid_spare1.ksh

ZTS: wait for dRAID unspare after clearing a device

wait_resilvered can accept the previous sequential rebuild after
clearing the original device. The verification scrub can then start
before the pending healing resilver and compare the restored device with
its spare.

Wait for the first distributed spare to become available before running
the verification scrub. Keep the existing 300-second bound and checks.

Assisted-by: OpenAI Codex
Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: Giuseppe Piscitelli <ooonea at gmail.com>
Closes #19888
DeltaFile
+1-1tests/zfs-tests/tests/functional/redundancy/redundancy_draid_spare1.ksh
+1-11 files

OpenZFS/src 0191a03 — tests/zfs-tests/tests/functional/redundancy redundancy.kshlib

ZTS: redundancy tests: replacing a device can fail with "is busy"

replace_missing_devs recreates each device file with dd and then
replaces the device with itself. dd truncates the existing file, and
the pool still has that file open as the old device. When the pool's
configuration changes before the replace (a detach from the previous
replace, for example), the pool writes its labels into the new file, and
zpool replace then finds the device in use by the pool: "is busy, or
device removal is in progress" (EBUSY), or, if the labels land before
zpool checks the file, "is part of active pool".

Remove the file before creating the new one, so the pool's writes go to
the old, unlinked file.

Reviewed by: George Wilson <gwilson at zfsmail.com>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: Matthew Ahrens <matt at mahrens.org>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Closes #19788
DeltaFile
+6-0tests/zfs-tests/tests/functional/redundancy/redundancy.kshlib
+6-01 files

OpenZFS/src 9ccf8eb — tests/zfs-tests/tests/functional/mmp mmp.kshlib mmp_zhack_reclaim.ksh

ZTS: use consistent host identities in concurrent imports

Define the MMP fixture's hostids as hexadecimal so zgenhostid and
ZFS_HOSTID select the same identities. Strip the prefix in
mmp_set_hostid when checking the written value. After a successful zhack
export, use a different identity for the activity check and restore the
pool identity for the next phase.

Both concurrent imports may fail after the initial hard-force export,
leaving the pool marked active under its previous hostid. Use -f for
the first recovery import so that this allowed outcome does not fail
the test. The activity check is still required and verified.

Assisted-by: OpenAI Codex
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: ooonea <ooonea at noreply.codeberg.org>
Closes #19585
DeltaFile
+4-4tests/zfs-tests/tests/functional/mmp/mmp.cfg
+2-5tests/zfs-tests/tests/functional/mmp/mmp_zhack_reclaim.ksh
+4-3tests/zfs-tests/tests/functional/mmp/mmp_concurrent_import.ksh
+1-1tests/zfs-tests/tests/functional/mmp/mmp.kshlib
+11-134 files

OpenZFS/src 827da18 — tests/zfs-tests/tests/functional/mmp mmp_active_import.ksh mmp.kshlib

ZTS: keep the simulated MMP host alive through import probes

The active-import test performs more than twenty import probes.
On a stalled runner they can outlast the helper's 120-second idle
period, so later probes find an inactive host instead of testing
the intended active-host rejection.

Allow a caller-specific idle duration and use 600 seconds for this
test. Cleanup still terminates the helper explicitly, and the
finite lifetime remains a failsafe. Other callers retain 120 seconds.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Dmitry R <rdmitry0911 at gmail.com>
Co-authored-by: Dmitry R <rdmitry0911 at gmail.com>
Closes #19686
DeltaFile
+3-2tests/zfs-tests/tests/functional/mmp/mmp.kshlib
+3-1tests/zfs-tests/tests/functional/mmp/mmp_active_import.ksh
+6-32 files

OpenZFS/src c6e0d6c — tests/zfs-tests/tests/functional/mmp mmp_reset_interval.ksh mmp.cfg

ZTS: give mmp_reset_interval headroom above the suspend window

A pool suspends when no MMP write succeeds for fail_intervals *
multihost_interval ms.  The test drives the interval down to
MMP_INTERVAL_MIN while fail_intervals is as low as
MMP_FAIL_INTERVALS_MIN, which arms a window of 200 ms.  A test machine
which stalls for longer than that suspends the pool, and the suspended
pool then keeps its devices, so the test which runs next cannot create
its own pool either.

Add MMP_INTERVAL_TEST_MIN, half the default interval, and use it as the
floor wherever this test varies the interval.  The smallest window it
can arm becomes 1000 ms.

The floor is needed in the second loop as well as the first.  An import
restarts the mmp thread, which initialises the window flat at
fail_intervals * interval with no smoothing, so the export and import
actions could otherwise still arm a window as small as 200 ms.


    [3 lines not shown]
DeltaFile
+4-3tests/zfs-tests/tests/functional/mmp/mmp_reset_interval.ksh
+7-0tests/zfs-tests/tests/functional/mmp/mmp.cfg
+11-32 files

OpenZFS/src d34d522 — tests/zfs-tests/cmd clone_after_trunc.c, tests/zfs-tests/tests/functional/block_cloning block_cloning_after_trunc.ksh

license: fix CDDL license headers identified by spdxcheck

All missed in 4b05f927dc by virtue of being "close enough".

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18914
DeltaFile
+11-1tests/zfs-tests/tests/functional/block_cloning/block_cloning_after_trunc.ksh
+10-0tests/zfs-tests/cmd/clone_after_trunc.c
+1-5tests/zfs-tests/tests/functional/mmp/mmp_zhack_reclaim.ksh
+4-1tests/zfs-tests/tests/functional/cli_root/zhack/zhack_label_repair_003.ksh
+4-1tests/zfs-tests/tests/functional/cli_root/zhack/zhack_label_repair_002.ksh
+4-1tests/zfs-tests/tests/functional/cli_root/zhack/zhack_label_repair_001.ksh
+34-94 files not shown
+46-1610 files

OpenZFS/src e82bce5 — tests/zfs-tests/tests/functional/mmp mmp_write_uberblocks.ksh

ZTS: fix zinject argument order in mmp_write_uberblocks

glibc's getopt() permutes argv by default (a GNU extension), reordering
flags to the front regardless of where they appear. musl's getopt() is
strict POSIX and stops parsing options at the first non-option argument.
This test's zinject invocation places -L after the positional pool name
($TESTPOOL), which only glibc tolerates; under musl, zinject sees two
leftover positional tokens ($TESTPOOL and the argument to the now-
unparsed -L) and fails with "device (-d) injection requires a single
pool name" instead of injecting the fault.

Move "-L uber" before the positional pool name. This is accepted
identically under glibc's permuting getopt(), so the change is a no-op
on every other platform.

Fixes the following tests on Alpine 3.24:
- mmp/mmp_write_uberblocks

Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>

    [2 lines not shown]
DeltaFile
+1-1tests/zfs-tests/tests/functional/mmp/mmp_write_uberblocks.ksh
+1-11 files

OpenZFS/src 131bf44 — tests/zfs-tests/tests/functional/mmp mmp_reset_interval.ksh mmp.kshlib

ZTS: resume a suspended pool in mmp_reset_interval cleanup

A pool suspended by MMP cannot be destroyed, so a failure which
suspends it leaves the pool and its devices behind, and the test which
runs next cannot create its own pool either.  Since c3f2f1aa2 such a
pool can be resumed, so clear it before the destroy.

Add mmp_clear_suspended() to mmp.kshlib and call it from
mmp_reset_interval cleanup.  The helper lives in the library so the
rest of the suite can take the same guard.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Michael Heller <75820586+mkhllr at users.noreply.github.com>
Closes #18977
DeltaFile
+13-0tests/zfs-tests/tests/functional/mmp/mmp.kshlib
+1-0tests/zfs-tests/tests/functional/mmp/mmp_reset_interval.ksh
+14-02 files

OpenZFS/src fda1efb — tests/zfs-tests/tests/functional/mmp mmp.kshlib

ZTS: fix mmp_set_hostid on Alpine Linux (musl libc)

musl libc's gethostid() ignores /etc/hostid and returns 0, so the
hostid verification in mmp_set_hostid always fails after zgenhostid
writes the file.  Fall back to reading /etc/hostid directly with od
when the hostid command disagrees, which works correctly on both
glibc and musl systems.

Fixes the following tests on Alpine 3.24:
- mmp/mmp_active_import
- mmp/mmp_concurrent_import
- mmp/mmp_exported_import
- mmp/mmp_hostid
- mmp/mmp_inactive_import
- mmp/mmp_on_off
- mmp/mmp_on_thread
- mmp/mmp_on_uberblocks
- mmp/mmp_on_zdb
- mmp/mmp_reset_interval

    [7 lines not shown]
DeltaFile
+7-1tests/zfs-tests/tests/functional/mmp/mmp.kshlib
+7-11 files

OpenZFS/src f1fb1f0 — tests/zfs-tests/tests/functional/mmp mmp_concurrent_import.ksh

ZTS: wait for the zhack pids mmp_concurrent_import started

verify_zhack() looks up the processes to wait for by name:

    ZHACKPIDS=$(pgrep zhack)
    for pid in $ZHACKPIDS; do
            wait $pid

so it only waits for the zhacks that pgrep happens to see.  One that has
not reached its exec() yet is still named after the shell that forked
it, and one that has already exited is gone; either way the test
continues while a zhack may still hold the pool imported, and the
import_activity_check() that follows then finds activity where it
requires mmp_result: 0.  A zhack missed this way is also not counted,
so IMPORT_COUNT can silently disagree with what actually happened.

A CI run failed this way.  Two zhacks were started, only one was
reported, the other was still running at the end and was killed by
cleanup:

    [21 lines not shown]
DeltaFile
+22-12tests/zfs-tests/tests/functional/mmp/mmp_concurrent_import.ksh
+22-121 files

OpenZFS/src 0317365 — tests/zfs-tests/tests/functional/mmp mmp.kshlib mmp_on_off.ksh

ZTS: mmp_on_off must not leave a suspended pool behind

mmp_on_off runs with zfs_multihost_interval=100 and the default ten
fail intervals, so MMP suspends the pool when no MMP write has
succeeded for one second.  In CI one MMP write took 1.25 s:

    WARNING: MMP writes to pool 'testpool' have not succeeded in
    over 1109 ms; suspending pool

A pool suspended by MMP can't be cleared on its own host (#19033), so
cleanup failed ("pool is imported on a different host") and left it
imported.  The tests after it failed on their zpool create, and
mmp_on_zdb's cleanup destroyed it: zpool destroy -f unmounts the root
dataset, and the unmount waits in zil_commit() for the suspended pool
forever, so the CI job ran into its 300 minute timeout.

mmp_clear_suspended() should have stopped that destroy, but it asks
zpool for the pool's health, and once a cleanup has removed the
hostid, zpool reports the hostid mismatch (ONLINE), not the

    [12 lines not shown]
DeltaFile
+11-0tests/zfs-tests/tests/functional/mmp/mmp_on_off.ksh
+5-1tests/zfs-tests/tests/functional/mmp/mmp.kshlib
+16-12 files

OpenZFS/src f43a4c0 — .github/workflows/scripts qemu-test-repo-vm.sh

CI: handle failed module load in zfs-qemu-packages

There are cases where the dkms packages will build but fail to load
while doing the test install step of zfs-qemu-packages.  When
that happens, we should mark the specific test as a failure but
continue with the other test installs.  Also print some diagnostic
info on why the module load failed.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Signed-off-by: Tony Hutter <hutter2 at llnl.gov>
Closes #20100
DeltaFile
+12-1.github/workflows/scripts/qemu-test-repo-vm.sh
+12-11 files

OpenZFS/src 7e57f3c — .github/workflows/scripts qemu-2-start.sh

CI: update Alpine Linux 3.24 image to 3.24.4 (#20033)

Bump the Alpine 3.24 QEMU cloudinit image from 3.24.2-r2 to 3.24.4-r0.

Assisted-by: Antigravity

Signed-off-by: Ananda Bhattacharya <a3217055 at gmail.com>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Reviewed-by: Alexander Moch <mail at alexmoch.com>
DeltaFile
+2-2.github/workflows/scripts/qemu-2-start.sh
+2-21 files

OpenZFS/src 8f3b221 — .github/workflows/scripts qemu-2-start.sh

CI: update Alpine Linux 3.24 image to 3.24.4 (#20033)

Bump the Alpine 3.24 QEMU cloudinit image from 3.24.2-r2 to 3.24.4-r0.

Assisted-by: Antigravity

Signed-off-by: Ananda Bhattacharya <a3217055 at gmail.com>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Reviewed-by: Alexander Moch <mail at alexmoch.com>
DeltaFile
+2-2.github/workflows/scripts/qemu-2-start.sh
+2-21 files

OpenZFS/src 7877bcc — .github/workflows/scripts qemu-1-setup.sh

CI: calculate and prioritize fast apt mirrors in QEMU setup

GitHub-hosted ubuntu-24.04 runners land on both Azure and AWS EC2, where
default cloud apt mirrors frequently throttle or stall until the 60
minute Setup QEMU timeout.  Probe a random sample of US mirrors in
parallel, rank them fastest-first in /etc/apt/apt-mirrors.txt with short
socket timeouts and the official Ubuntu mirrors as fallbacks, and retry
on the next mirror if apt-get install exceeds 5 minutes.

Also run apt-get update only after the mirrors are ranked, and fix the
quoting of the unneeded package pattern so the preinstalled packages
are actually removed.

Assisted-by: Antigravity
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Ananda Bhattacharya <a3217055 at gmail.com>
Closes #20027
DeltaFile
+66-21.github/workflows/scripts/qemu-1-setup.sh
+66-211 files

OpenZFS/src db7c3d6 — tests/zfs-tests/tests/functional/fault auto_offline_001_pos.ksh

ZTS: auto_offline_001_pos: rescan only the scsi_debug host

insert_disk without a host makes scan_scsi_hosts write "- - -" to the
scan file of every SCSI host. On a VM with eight virtio_scsi
controllers, each of those scans takes about 9 seconds: for every LUN
it probes and does not find, the scan allocates a temporary device and
frees it again, and each time the host's shared tag set is updated,
which freezes the queue of the disk behind it. A reattach then takes
about 67 seconds, and the test, which reattaches its disk eight
times, is killed at its 10 minute timeout.

Every other caller of insert_disk passes the host of its device. Do the
same here: record the scsi_debug host before the first removal, while
the device still exists, and rescan only that host.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Tigerblue77 <37409593+tigerblue77 at users.noreply.github.com>
Closes #20060
DeltaFile
+6-3tests/zfs-tests/tests/functional/fault/auto_offline_001_pos.ksh
+6-31 files

OpenZFS/src ff37959 — module/zfs txg.c

Don't busy-loop in txg_sync_thread() while the pool is suspended

Since c3f2f1aa2 ("vdev probe to slow disk can stall mmp write
checker"), txg_sync_thread() skips the sync of a suspended pool with a
bare "continue".  Whatever ended its wait (an expired txg timer, a
txg_wait_synced() caller, an active scan or pending frees) stays true
while the pool is suspended, so the thread loops without sleeping,
holding tx_sync_lock, until the pool resumes.  An exiting thread loops
forever.

A pool suspended while no txg is syncing, which is how an MMP
suspension usually happens, therefore costs a whole CPU.  Kernels
without full preemption report soft lockups and RCU stalls, and every
caller of txg_wait_synced() or txg_wait_open() blocks on the mutex
instead of the condvar, so TXG_WAIT_SIGNAL and TXG_WAIT_SUSPEND waits
can no longer be interrupted or return early.

Wait on tx_sync_more_cv for up to a second instead, and let an exiting
thread go on to exit.

    [6 lines not shown]
DeltaFile
+10-1module/zfs/txg.c
+10-11 files

OpenZFS/src 2f7b010 — tests/zfs-tests/tests/functional/cli_root/zfs_load-key zfs_load-key.cfg zfs_load-key_common.kshlib

ZTS: use IPv4 loopback explicitly in HTTPS key tests

The Python HTTPS fixture binds an IPv4 socket, while clients resolve
localhost independently and can select IPv6. Use the same explicit
IPv4 loopback address for the server and keylocation URLs. Add an IP
subject alternative name to the test certificate so verification
continues to validate the endpoint.

Debian 13 CI reset every HTTPS key request without logging a request
at the fixture. This change removes address-family ambiguity; the
original reset's precise cause is not established by the CI logs.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: George Melikov <mail at gmelikov.ru>
Closes #19265
DeltaFile
+4-1tests/zfs-tests/tests/functional/cli_root/zfs_load-key/zfs_load-key_common.kshlib
+2-1tests/zfs-tests/tests/functional/cli_root/zfs_load-key/zfs_load-key.cfg
+6-22 files