From owner-cvs-src@FreeBSD.ORG Tue Feb 6 20:29:41 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3351F16A409; Tue, 6 Feb 2007 20:29:41 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 0E20313C4A5; Tue, 6 Feb 2007 20:29:41 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l16KTeGt057881; Tue, 6 Feb 2007 20:29:40 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l16KTejV057880; Tue, 6 Feb 2007 20:29:40 GMT (envelope-from jhb) Message-Id: <200702062029.l16KTejV057880@repoman.freebsd.org> From: John Baldwin Date: Tue, 6 Feb 2007 20:29:40 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/iostat iostat.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2007 20:29:41 -0000 jhb 2007-02-06 20:29:40 UTC FreeBSD src repository Modified files: usr.sbin/iostat iostat.c Log: Make iostat(8) fully work on crash dumps again (broken since 5.0): - Pass the address of the variable we are reading to kvm_read() rather than the index into the nlist array. - Properly report errors from kvm_read() which returns -1 on error, not 0. MFC after: 3 days Revision Changes Path 1.32 +6 -5 src/usr.sbin/iostat/iostat.c