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

oleksandr at FreeBSD.org oleksandr at FreeBSD.org
Fri Jul 22 11:23:27 UTC 2011


Author: oleksandr
Date: Fri Jul 22 11:23:25 2011
New Revision: 224489
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=224489

Log:
  Add new type of disk error:other to iostat

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

Modified: soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.c
==============================================================================
--- soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.c	Fri Jul 22 11:19:53 2011	(r224488)
+++ soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat/iostat.c	Fri Jul 22 11:23:25 2011	(r224489)
@@ -764,8 +764,7 @@
 	}
         if (Eflag>0) {
 		printf("                    error device statistics\n");
-		printf("device  retriable  non-retriable read error   write error"
-			    );
+		printf("device  retriable  non-retriable  read  write  other");
 		printf("\n");
         }
 	for (dn = 0; dn < num_devices; dn++) {
@@ -818,11 +817,12 @@
 			    cur.dinfo->devices[di].device_name,
 			    cur.dinfo->devices[di].unit_number) == -1)
 				err(1, "asprintf");
-			printf("%-8.8s %-12d %-12d %-12d %-12d",
+			printf("%-8.8s %-10d %-14d %-5d %-6d %-6d",
        		            devname, cur.dinfo->devices[di].dev_error.retriable,
 			    cur.dinfo->devices[di].dev_error.non_retriable,
 			    cur.dinfo->devices[di].dev_error.read_error,
-			    cur.dinfo->devices[di].dev_error.write_error);
+			    cur.dinfo->devices[di].dev_error.write_error,
+			    cur.dinfo->devices[di].dev_error.other_error);
 			printf("\n");
 			free(devname);
 	        }		


More information about the svn-soc-all mailing list