diff options
author | Igor K <[email protected]> | 2019-09-03 22:12:31 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-09-03 12:12:31 -0700 |
commit | e242b67cee1dbaf09a27e7c78c55c5505ac88ff4 (patch) | |
tree | 8cb0baeb7a2d87512f707de1b66bccd294669857 /module | |
parent | a91e4790a60a40467170080a39424f7976e63550 (diff) |
Fix panic on DilOS with kstat per dataset statistics
Account for ZFS_MAX_DATASET_NAME_LEN in kstat data size. This value
is ignored in the Linux kstat code but resolves the issue for other
platforms.
Reviewed-by: Serapheim Dimitropoulos <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Igor Kozhukhov <[email protected]>
Closes #9254
Closes #9151
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/dataset_kstats.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/zfs/dataset_kstats.c b/module/zfs/dataset_kstats.c index 522825c42..e46a0926d 100644 --- a/module/zfs/dataset_kstats.c +++ b/module/zfs/dataset_kstats.c @@ -135,6 +135,7 @@ dataset_kstats_create(dataset_kstats_t *dk, objset_t *objset) kstat->ks_data = dk_kstats; kstat->ks_update = dataset_kstats_update; kstat->ks_private = dk; + kstat->ks_data_size += ZFS_MAX_DATASET_NAME_LEN; kstat_install(kstat); dk->dk_kstats = kstat; |