diff options
author | Andrew <[email protected]> | 2022-05-18 12:25:33 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-18 10:25:33 -0700 |
commit | 00ac77464ef15c56b2cffb049518b78545552a9d (patch) | |
tree | 139d413920282cdd12f2664fb133af692416f8df /include | |
parent | c0cf6ed6792e545fd614c2a88cb53756db7e03f8 (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Andrew Walker <[email protected]>
Closes #13466
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/spa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h index 232855449..442bc7792 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -898,6 +898,7 @@ typedef struct spa_stats { spa_history_kstat_t tx_assign_histogram; spa_history_list_t mmp_history; spa_history_kstat_t state; /* pool state */ + spa_history_kstat_t guid; /* pool guid */ spa_history_kstat_t iostats; } spa_stats_t; |