From owner-svn-soc-all@FreeBSD.ORG Thu Aug 18 14:54:55 2011 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 1C0581065672 for ; Thu, 18 Aug 2011 14:54:53 +0000 (UTC) (envelope-from oleksandr@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Thu, 18 Aug 2011 14:54:53 +0000 Date: Thu, 18 Aug 2011 14:54:53 +0000 From: oleksandr@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20110818145453.1C0581065672@hub.freebsd.org> Cc: Subject: socsvn commit: r225227 - soc2011/oleksandr/oleksandr-head/head/usr.sbin/iostat X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2011 14:54:55 -0000 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); }