mirror_zfs/lib
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
..
libavl build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libbtree Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
libefi build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libicp build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libnvpair build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
librange_tree Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
libspl libspl/mnttab: remove struct extmnttab 2026-03-10 13:07:07 -07:00
libzdb More consistent use of TREE_* macros in AVL comparators 2026-03-03 09:08:23 -08:00
libzfs zpool: Change zpool offline spares policy 2026-03-25 11:08:55 -07:00
libzfs_core abi: updates for mnttab cleanup 2026-03-10 13:07:07 -07:00
libzfsbootenv build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libzpool libzpool: lift zfs_file ops out to separate source file 2026-03-05 18:07:46 -08:00
libzstd Zstd: Integrate v1.5.7 into the ZFS build system 2026-01-20 13:41:06 -08:00
libzutil Make zpool status dedup table support raw bytes -p output 2026-03-13 09:53:56 -07:00
Makefile.am Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00