Added output to `zpool online` and `offline`
commitacb6e71eda3c95ee4551bd3796defe7b57ff96f0
authorRich Ercolani <214141+rincebrain@users.noreply.github.com>
Fri, 1 Nov 2024 02:32:31 +0000 (31 22:32 -0400)
committerGitHub <noreply@github.com>
Fri, 1 Nov 2024 02:32:31 +0000 (31 22:32 -0400)
tree2d048963bd69d1a6760764fdcd4af8fb63287561
parent3c650bec152eab64bc094b7314e866610104db29
Added output to `zpool online` and `offline`

I was surprised to discover today that `zpool online` and
`zpool offline` don't print any information about why they failed in
many cases, they just return 1 with no information about why.

Let's improve that where we can without changing the library function.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #16244
cmd/zpool/zpool_main.c