socsvn commit: r225227 - soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat

oleksandr at FreeBSD.org oleksandr at FreeBSD.org
Thu Aug 18 14:54:55 UTC 2011


Author: oleksandr
Date: Thu Aug 18 14:54:52 2011
New Revision: 225227
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=225227

Log:
  Add new type of error to iostat

Modified:
  soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.8
  soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.c

Modified: soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.8
==============================================================================
--- soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.8	Thu Aug 18 14:33:43 2011	(r225226)
+++ soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.8	Thu Aug 18 14:54:52 2011	(r225227)
@@ -136,15 +136,19 @@
 .It Other
 Read/write errors
 .It Recoverable
-Recovered errors
+Recovered data with retries
 .It Device Not Ready
-Device is not ready
+Medium not present
 .It Media
-Errors appeared in the disk device
+Address mark not found or logical block of address out of range
 .It Hardware
-Errors associated with hardware
+Internal target failure
 .It Illegal Request
-The request to the device was illegal
+Invalid field or parameter value invalid
+.It Unit Attention
+Operator medium removal request
+.It Aborted Command
+Command phase error
 .El
 .El
 .It Fl h

Modified: soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.c
==============================================================================
--- soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.c	Thu Aug 18 14:33:43 2011	(r225226)
+++ soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.c	Thu Aug 18 14:54:52 2011	(r225227)
@@ -817,7 +817,8 @@
 		        printf("Device: %-8.8s Retriable: %d Non-retriable: %d "
                                "Read: %d Write: %d Other: %d        " 
                                "Recovered: %d Device Not Ready: %d Media: %d "
-                               "Hardware: %d Illegal Request: %d",
+                               "Hardware: %d Illegal Request: %d        "
+                               "Unit Attention: %d Aborted Command: %d",
                                 devname,
        		                cur.dinfo->devices[di].dev_error.retriable,
 			        cur.dinfo->devices[di].dev_error.non_retriable,
@@ -828,7 +829,9 @@
    			        cur.dinfo->devices[di].dev_error.not_ready,
   			        cur.dinfo->devices[di].dev_error.media_error,
   			        cur.dinfo->devices[di].dev_error.hardware,
-  			        cur.dinfo->devices[di].dev_error.illegal_req);
+  			        cur.dinfo->devices[di].dev_error.illegal_req,
+  			        cur.dinfo->devices[di].dev_error.unit_attention,
+  			        cur.dinfo->devices[di].dev_error.aborted_command);
 			printf("\n");
 			free(devname);
 	        }		


More information about the svn-soc-all mailing list