diff options
author | smh <smh@FreeBSD.org> | 2012-12-12 16:14:14 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2012-12-12 16:14:14 +0000 |
commit | 7cfbf00054f117af6ef72f80710fa60c73f9c8dc (patch) | |
tree | b3c412375f8a0b68a98bd772994d356b34506c30 /sys/cddl/compat | |
parent | c03248a464173c43816755d3e8ce21b0686748a4 (diff) | |
download | FreeBSD-src-7cfbf00054f117af6ef72f80710fa60c73f9c8dc.zip FreeBSD-src-7cfbf00054f117af6ef72f80710fa60c73f9c8dc.tar.gz |
Renamed zfs trim stats removing duplicate zio_trim identifier from the name
Added description option to kstats.
Added descriptions for zio_trim kstats
PR: kern/173113
Submitted by: Steven Hartland
Reviewed by: pjd
Approved by: pjd
MFC after: 2 weeks
Diffstat (limited to 'sys/cddl/compat')
-rw-r--r-- | sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c | 2 | ||||
-rw-r--r-- | sys/cddl/compat/opensolaris/sys/kstat.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c b/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c index 621aec0..ba65109 100644 --- a/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c +++ b/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c @@ -118,7 +118,7 @@ kstat_install(kstat_t *ksp) SYSCTL_ADD_PROC(&ksp->ks_sysctl_ctx, SYSCTL_CHILDREN(ksp->ks_sysctl_root), OID_AUTO, ksent->name, CTLTYPE_U64 | CTLFLAG_RD, ksent, sizeof(*ksent), - kstat_sysctl, "QU", ""); + kstat_sysctl, "QU", ksent->desc); } } diff --git a/sys/cddl/compat/opensolaris/sys/kstat.h b/sys/cddl/compat/opensolaris/sys/kstat.h index d73bd22..acf6626 100644 --- a/sys/cddl/compat/opensolaris/sys/kstat.h +++ b/sys/cddl/compat/opensolaris/sys/kstat.h @@ -53,6 +53,8 @@ typedef struct kstat_named { #define KSTAT_DATA_INT64 3 #define KSTAT_DATA_UINT64 4 uchar_t data_type; +#define KSTAT_DESCLEN 128 + char desc[KSTAT_DESCLEN]; union { uint64_t ui64; } value; |