Print this page
NEX-3729 KRRP changes mess up iostat(1M)
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>


 122         vminfo_t ss_vminfo;
 123         struct nc_stats ss_nc;
 124         /* vm/sys stats aggregated across all CPUs */
 125         kstat_t ss_agg_vm;
 126         kstat_t ss_agg_sys;
 127         /* ticks since boot */
 128         ulong_t ss_ticks;
 129         long ss_deficit;
 130 };
 131 
 132 /* order is significant (see sort_before()) */
 133 enum iodev_type {
 134         IODEV_CONTROLLER        = 1 << 0,
 135         IODEV_DISK              = 1 << 1,
 136         IODEV_PARTITION         = 1 << 2,
 137         IODEV_TAPE              = 1 << 3,
 138         IODEV_NFS               = 1 << 4,
 139         IODEV_IOPATH_LT         = 1 << 5, /* synthetic LunTarget */
 140         IODEV_IOPATH_LI         = 1 << 6, /* synthetic LunInitiator */
 141         IODEV_IOPATH_LTI        = 1 << 7, /* LunTgtInitiator (pathinfo) */
 142         IODEV_UNKNOWN           = 1 << 8

 143 };
 144 
 145 /* identify a disk, partition, etc. */
 146 struct iodev_id {
 147         int id;
 148         /* target id (for disks) */
 149         char tid[KSTAT_STRLEN];
 150 };
 151 
 152 /*
 153  * Used for disks, partitions, tapes, nfs, controllers, iopaths
 154  * Each entry can be a branch of a tree; for example, the disks
 155  * of a controller constitute the children of the controller
 156  * iodev_snapshot. This relationship is not strictly maintained
 157  * if is_pretty can't be found.
 158  */
 159 struct iodev_snapshot {
 160         /* original kstat name */
 161         char is_name[KSTAT_STRLEN];
 162         /* type of kstat */




 122         vminfo_t ss_vminfo;
 123         struct nc_stats ss_nc;
 124         /* vm/sys stats aggregated across all CPUs */
 125         kstat_t ss_agg_vm;
 126         kstat_t ss_agg_sys;
 127         /* ticks since boot */
 128         ulong_t ss_ticks;
 129         long ss_deficit;
 130 };
 131 
 132 /* order is significant (see sort_before()) */
 133 enum iodev_type {
 134         IODEV_CONTROLLER        = 1 << 0,
 135         IODEV_DISK              = 1 << 1,
 136         IODEV_PARTITION         = 1 << 2,
 137         IODEV_TAPE              = 1 << 3,
 138         IODEV_NFS               = 1 << 4,
 139         IODEV_IOPATH_LT         = 1 << 5, /* synthetic LunTarget */
 140         IODEV_IOPATH_LI         = 1 << 6, /* synthetic LunInitiator */
 141         IODEV_IOPATH_LTI        = 1 << 7, /* LunTgtInitiator (pathinfo) */
 142         IODEV_ZFS               = 1 << 8,
 143         IODEV_UNKNOWN           = 1 << 9
 144 };
 145 
 146 /* identify a disk, partition, etc. */
 147 struct iodev_id {
 148         int id;
 149         /* target id (for disks) */
 150         char tid[KSTAT_STRLEN];
 151 };
 152 
 153 /*
 154  * Used for disks, partitions, tapes, nfs, controllers, iopaths
 155  * Each entry can be a branch of a tree; for example, the disks
 156  * of a controller constitute the children of the controller
 157  * iodev_snapshot. This relationship is not strictly maintained
 158  * if is_pretty can't be found.
 159  */
 160 struct iodev_snapshot {
 161         /* original kstat name */
 162         char is_name[KSTAT_STRLEN];
 163         /* type of kstat */