]> git.proxmox.com Git - mirror_spl.git/commit
Add pool state /proc entry, "SUSPENDED" pools (SPL)
authorTony Hutter <hutter2@llnl.gov>
Wed, 15 Aug 2018 16:39:55 +0000 (09:39 -0700)
committerTony Hutter <hutter2@llnl.gov>
Fri, 6 Jul 2018 09:45:01 +0000 (02:45 -0700)
commit06b5dfd4ae10d35e43ae7353dd054ab3ff1ebf07
tree02fe076cbe304cfcc3dc928527a4eca9d20ad849
parente566796e3de921bde841f0718d1fcf915abc2556
Add pool state /proc entry, "SUSPENDED" pools (SPL)

(This is the SPL backported code from f0ed6c744)

1. Add a proc entry to display the pool's state:

$ cat /proc/spl/kstat/zfs/tank/state
ONLINE

This is done without using the spa config locks, so it will
never hang.

2. Fix 'zpool status' and 'zpool list -o health' output to print
"SUSPENDED" instead of "ONLINE" for suspended pools.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #7331
Closes #7563
include/sys/kstat.h
module/spl/spl-kstat.c