HomeFreeBSD

zed.d/pool_import-led.sh: fix for current zpool scripts

Description

zed.d/pool_import-led.sh: fix for current zpool scripts

Also minor clean-up with folding state_to_val() into a case,
unrolling the lesser-available seq into numbers,
ignoring vdev states we don't care about,
and documentation comments

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11934
Closes #11935

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Apr 23 2021, 8:27 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 10 2021, 7:11 PM
Parents
rG39bcdd8d743b: libzutil: fix dm_get_underlying_path() return if not a DM device
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG9c5256a2fe43: zed.d/pool_import-led.sh: fix for current zpool scripts (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).May 10 2021, 7:11 PM