diff options
author | cth <none@none> | 2006-10-12 10:18:45 -0700 |
---|---|---|
committer | cth <none@none> | 2006-10-12 10:18:45 -0700 |
commit | 37fbbce5257519d600faa3d23d464b42b71c1605 (patch) | |
tree | c0f2a50b50b97964740ab5a7586f74bd87560678 /usr/src/cmd/stat/common/walkers.c | |
parent | 2bc4236aac4fe3a3ba80139bc39ee9f1e356ab55 (diff) | |
download | illumos-gate-37fbbce5257519d600faa3d23d464b42b71c1605.tar.gz |
PSARC 2005/574 MPxIO iostat improvements
4261677 iostat -x shows extra output
6316660 device name gets truncated after 9 chars with iostat -xX option.
6318308 extend support in mpxio and iostat to show I/T/L based path stats
Diffstat (limited to 'usr/src/cmd/stat/common/walkers.c')
-rw-r--r-- | usr/src/cmd/stat/common/walkers.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/usr/src/cmd/stat/common/walkers.c b/usr/src/cmd/stat/common/walkers.c index c01a52be6e..adf6d6eb6f 100644 --- a/usr/src/cmd/stat/common/walkers.c +++ b/usr/src/cmd/stat/common/walkers.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -169,7 +168,8 @@ snapshot_walk(enum snapshot_types type, struct snapshot *old, case SNAP_CONTROLLERS: case SNAP_IODEVS: - case SNAP_IOPATHS: + case SNAP_IOPATHS_LI: + case SNAP_IOPATHS_LTI: changed = iodev_walk(old ? old->s_iodevs : NULL, new->s_iodevs, cb, data); break; @@ -266,7 +266,9 @@ iodev_changed(struct iodev_snapshot *iodev, int added) name = iodev->is_pretty; switch (iodev->is_type) { - case IODEV_IOPATH: + case IODEV_IOPATH_LT: + case IODEV_IOPATH_LI: + case IODEV_IOPATH_LTI: (void) printf("<<multi-path %s: %s>>\n", added ? "added" : "removed", name); break; @@ -372,7 +374,8 @@ snapshot_has_changed(struct snapshot *old, struct snapshot *new) { int ret = 0; int cpu_mask = SNAP_CPUS | SNAP_PSETS | SNAP_SYSTEM; - int iodev_mask = SNAP_CONTROLLERS | SNAP_IODEVS | SNAP_IOPATHS; + int iodev_mask = SNAP_CONTROLLERS | SNAP_IODEVS | + SNAP_IOPATHS_LI | SNAP_IOPATHS_LTI; if (old == NULL) return (1); |