Expose zpool guids through kstats
authorAndrew <awalker@ixsystems.com>
Wed, 18 May 2022 17:25:33 +0000 (12:25 -0500)
committerGitHub <noreply@github.com>
Wed, 18 May 2022 17:25:33 +0000 (10:25 -0700)
commit00ac77464ef15c56b2cffb049518b78545552a9d
tree139d413920282cdd12f2664fb133af692416f8df
parentc0cf6ed6792e545fd614c2a88cb53756db7e03f8
Expose zpool guids through kstats

There are times when end-users may wish to have
a fast and convenient method to get zpool guid
without having to use libzfs. This commit
exposes the zpool guid via kstats in similar
manner to the zpool state.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andrew Walker <awalker@ixsystems.com>
Closes #13466
include/sys/spa.h
module/zfs/spa_stats.c