mirror_zfs/lib/libzfs
Tony Hutter 69142125d7 zpool: Add slot power control, print power status
Add `zpool` flags to control the slot power to drives.  This assumes
your SAS or NVMe enclosure supports slot power control via sysfs.

The new `--power` flag is added to `zpool offline|online|clear`:

    zpool offline --power <pool> <device>    Turn off device slot power
    zpool online --power <pool> <device>     Turn on device slot power
    zpool clear --power <pool> [device]      Turn on device slot power

If the ZPOOL_AUTO_POWER_ON_SLOT env var is set, then the '--power'
option is automatically implied for `zpool online` and `zpool clear`
and does not need to be passed.

zpool status also gets a --power option to print the slot power status.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Mart Frauenlob <AllKind@fastest.cc>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #15662
2024-01-29 15:12:06 -08:00
..
os
.gitignore
libzfs_changelist.c Add '-u' - nomount flag for zfs set 2023-10-03 15:41:46 -07:00
libzfs_config.c
libzfs_crypto.c
libzfs_dataset.c Add '-u' - nomount flag for zfs set 2023-10-03 15:41:46 -07:00
libzfs_diff.c
libzfs_impl.h
libzfs_import.c Fix "out of memory" error 2024-01-29 14:53:29 -08:00
libzfs_iter.c
libzfs_mount.c
libzfs_pool.c zpool: Add slot power control, print power status 2024-01-29 15:12:06 -08:00
libzfs_sendrecv.c
libzfs_status.c
libzfs_util.c Add zfs_prepare_disk script for disk firmware install 2023-11-06 16:45:07 -08:00
libzfs.abi zpool: Add slot power control, print power status 2024-01-29 15:12:06 -08:00
libzfs.pc.in
libzfs.suppr
Makefile.am
THIRDPARTYLICENSE.openssl
THIRDPARTYLICENSE.openssl.descrip