Chris Siebenmann
2013-08-26 20:37:28 UTC
Is there currently any official or recommended way of getting state
information about pools out of ZFS in a program (ie, not by running
'zpool status' and so on and parsing the output)?
If there isn't any currently recommended way, do people have
opinions on what approach would be the best idea and the most
likely one to turn into a recommended way (or a supported API)
in the future?
(I know how to do it unofficially by extracting the current pool
configuration and state information from libzfs and then parsing it.
I'm wondering if there's a better, more future proof way.)
Thanks in advance.
- cks
information about pools out of ZFS in a program (ie, not by running
'zpool status' and so on and parsing the output)?
If there isn't any currently recommended way, do people have
opinions on what approach would be the best idea and the most
likely one to turn into a recommended way (or a supported API)
in the future?
(I know how to do it unofficially by extracting the current pool
configuration and state information from libzfs and then parsing it.
I'm wondering if there's a better, more future proof way.)
Thanks in advance.
- cks