Add zfs_prepare_disk script for disk firmware install
commit78fd79eacdc98f5452f69d62b55ba3f6c4d8018c
authorTony Hutter <hutter2@llnl.gov>
Thu, 21 Sep 2023 15:36:26 +0000 (21 08:36 -0700)
committerTony Hutter <hutter2@llnl.gov>
Tue, 7 Nov 2023 00:45:07 +0000 (6 16:45 -0800)
tree0d1137fcd507d301071c2e5334ec9a835e375344
parent6d693e20a20d7abd88dbae1f1075b2aca8c2faa2
Add zfs_prepare_disk script for disk firmware install

Have libzfs call a special `zfs_prepare_disk` script before a disk is
included into the pool.  The user can edit this script to add things
like a disk firmware update or a disk health check.  Use of the script
is totally optional. See the zfs_prepare_disk manpage for full details.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #15243
14 files changed:
cmd/zed/agents/zfs_mod.c
cmd/zpool/zpool_iter.c
cmd/zpool/zpool_util.h
cmd/zpool/zpool_vdev.c
config/Rules.am
contrib/debian/openzfs-zfsutils.install
include/libzfs.h
lib/libzfs/libzfs.abi
lib/libzfs/libzfs_util.c
man/Makefile.am
man/man8/.gitignore
man/man8/zfs_prepare_disk.8.in [new file with mode: 0644]
scripts/Makefile.am
scripts/zfs_prepare_disk [new file with mode: 0755]