HomeFreeBSD

zpool/zfs: Add '-a|--all' option to scrub, trim, initialize

Description

zpool/zfs: Add '-a|--all' option to scrub, trim, initialize

Add support for the '-a | --all' option to perform trim,
scrub, and initialize operations on all pools.
Previously, specifying a pool name was mandatory for
these operations. With this enhancement, users can now
execute these operations across all pools at once,
without needing to manually iterate over each pool
from the command line.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Akash B <akash-b@hpe.com>
Closes #17524

Details

Provenance
Akash B <akash-b@hpe.com>Authored on Jul 29 2025, 9:50 PM
GitHub <noreply@github.com>Committed on Jul 29 2025, 9:50 PM
Parents
rGfc885f308f52: Don't use wrong weight when passivating group
Branches
Unknown
Tags
Unknown