Project

General

Profile

Feature #6303

support KSTAT_DATA_STRING in non-virtual named kstats

Added by Hans Rosenfeld about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
kernel
Start date:
2015-10-08
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

It is currently not possible to have non-virtual named kstats containing long strings (KSTAT_DATA_STRING). It is relatively simple to change that by extending the read_kstat_data() function in the kstat module to handle long strings. The string data is copied into the user-supplied buffer following the kstat data and the pointers are updated.

History

#1

Updated by Electric Monk about 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit c0e96d867a045da50bf7e014cab94cb44528a0f5

commit  c0e96d867a045da50bf7e014cab94cb44528a0f5
Author: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Date:   2015-11-05T16:59:04.000Z

    6303 support KSTAT_DATA_STRING in non-virtual named kstats
    Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
    Reviewed by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF