mirror_zfs/lib/libzfs
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
..
os libzfs: use mount_setattr for selective remount including legacy mounts 2026-03-09 11:06:22 -07:00
.gitignore Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libzfs_changelist.c zfs: replace uu_avl with sys/avl 2025-11-17 06:21:26 -08:00
libzfs_config.c zfs: replace uu_avl with sys/avl 2025-11-17 06:21:26 -08:00
libzfs_crypto.c libzpool: remove global libzpool includes 2025-11-12 10:03:15 -08:00
libzfs_dataset.c libzfs/mnttab: lift mnttab cache into separate file 2026-03-10 13:07:07 -07:00
libzfs_diff.c fix libzfs diff mem leak in an error path 2026-03-10 12:39:49 -07:00
libzfs_impl.h libzfs/mnttab: shorten names, reorg a bit 2026-03-10 13:07:07 -07:00
libzfs_import.c Prefer VERIFY0(n) over VERIFY(n == 0) 2025-08-07 11:40:59 -07:00
libzfs_iter.c Sort the blocking snapshots list #12751 (#17264) 2025-05-01 17:40:23 -07:00
libzfs_mnttab.c libzfs/mnttab: shorten names, reorg a bit 2026-03-10 13:07:07 -07:00
libzfs_mount.c libzfs: use mount_setattr for selective remount including legacy mounts 2026-03-09 11:06:22 -07:00
libzfs_pool.c zpool: Change zpool offline spares policy 2026-03-25 11:08:55 -07:00
libzfs_sendrecv.c Fix the send --exclude option to work with encryption 2026-03-12 15:10:28 -07:00
libzfs_share_nfs.c libshare: fold into libzfs and reorg headers a little 2025-12-19 19:52:33 -08:00
libzfs_share.c libshare: fold into libzfs and reorg headers a little 2025-12-19 19:52:33 -08:00
libzfs_share.h libshare: fold into libzfs and reorg headers a little 2025-12-19 19:52:33 -08:00
libzfs_status.c Suppress some ashift warnings 2025-10-13 10:41:42 -07:00
libzfs_util.c libspl/mnttab: remove struct extmnttab 2026-03-10 13:07:07 -07:00
libzfs.abi Make zpool status dedup table support raw bytes -p output 2026-03-13 09:53:56 -07:00
libzfs.pc.in Spruce up pkg-config files for libzfs/libzfs_core 2020-09-04 11:11:18 -07:00
libzfs.suppr Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00
Makefile.am libzfs/mnttab: lift mnttab cache into separate file 2026-03-10 13:07:07 -07:00
THIRDPARTYLICENSE.openssl Fix typos in lib/ 2019-09-02 17:53:27 -07:00
THIRDPARTYLICENSE.openssl.descrip Encryption patch follow-up 2017-10-11 16:54:48 -04:00