Date: Fri, 22 Jul 2011 11:23:25 +0000 From: oleksandr@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r224489 - soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat Message-ID: <20110722112325.65DC51065672@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110722112325.65DC51065672>