A new CLI argument was introduced to switch between disk and zpool operation mode: -u <MODE>
When no operation mode is explicitly given, the script works in disk mode. This completely ignores zfs pools and works as before.
When operation mode is set to zpool by supplying -u zpool, the script now operates on a per-zpool basis. I/O is monitored for the pool as a whole and disks are only spun down if the complete pool was idle for a given number of seconds. ZFS pools are either detected automatically or can be supplied manually (see help text for -i and -m).
Drives are referenced by GPTID (CORE) or partuuid (SCALE) in ZFS pool mode.