diff options
author | Serapheim Dimitropoulos <[email protected]> | 2018-08-20 09:52:37 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-08-20 09:52:37 -0700 |
commit | a448a2557ec4938ed6944c7766fe0b8e6e5f6456 (patch) | |
tree | 1d622c6c40aeb9c34d233ad562b2920ab2ef651c /module/zfs/spa.c | |
parent | fa84714abbb9316208bef7188009ee74204d532e (diff) |
Introduce read/write kstats per dataset
The following patch introduces a few statistics on reads and writes
grouped by dataset. These statistics are implemented as kstats
(backed by aggregate sums for performance) and can be retrieved by
using the dataset objset ID number. The motivation for this change is
to provide some preliminary analytics on dataset usage/performance.
Reviewed-by: Richard Elling <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Signed-off-by: Serapheim Dimitropoulos <[email protected]>
Closes #7705
Diffstat (limited to 'module/zfs/spa.c')
-rw-r--r-- | module/zfs/spa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 0d0cb556c..39f329bea 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -306,6 +306,8 @@ spa_prop_get_config(spa_t *spa, nvlist_t **nvp) spa_prop_add_list(*nvp, ZPOOL_PROP_VERSION, NULL, version, ZPROP_SRC_LOCAL); } + spa_prop_add_list(*nvp, ZPOOL_PROP_LOAD_GUID, + NULL, spa_load_guid(spa), src); } if (pool != NULL) { |