mirror_zfs/tests/zfs-tests
Tony Hutter b44a3ecf4a
zpool: Change zpool offline spares policy
The zpool offline man page says that you cannot use 'zpool offline'
on spares.  However, testing found that you could in fact force fault
(zpool offline -f) spares.

Change the policy to:
1. You can never force-fault or offline dRAID spares.
2. You can only force-fault or offline traditional spares if they're
   active.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Akash B <akash-b@hpe.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #18282
2026-03-25 11:08:55 -07:00
..
callbacks CI: Add Alpine Linux 3.23 runner to the pipeline (#18087) 2025-12-30 09:29:48 -08:00
cmd Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
include draid: fix data corruption after disk clear 2026-03-11 14:54:20 -07:00
tests zpool: Change zpool offline spares policy 2026-03-25 11:08:55 -07:00
.gitignore autoconf: use include directives instead of recursing down cmd 2022-05-10 10:18:38 -07:00
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00