From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 7 19:50:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 030B11065672 for ; Tue, 7 Jul 2009 19:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D24958FC1B for ; Tue, 7 Jul 2009 19:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n67Jo1Y7008641 for ; Tue, 7 Jul 2009 19:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n67Jo1ZY008640; Tue, 7 Jul 2009 19:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 7 Jul 2009 19:50:01 GMT Resent-Message-Id: <200907071950.n67Jo1ZY008640@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mikolaj Golub Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 515AE106566C for ; Tue, 7 Jul 2009 19:49:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3485B8FC12 for ; Tue, 7 Jul 2009 19:49:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n67JnX4n058888 for ; Tue, 7 Jul 2009 19:49:33 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n67JnW2h058887; Tue, 7 Jul 2009 19:49:32 GMT (envelope-from nobody) Message-Id: <200907071949.n67JnW2h058887@www.freebsd.org> Date: Tue, 7 Jul 2009 19:49:32 GMT From: Mikolaj Golub To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/136437: New port: sysutils/devstat Utility to display device statistics X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2009 19:50:02 -0000 >Number: 136437 >Category: ports >Synopsis: New port: sysutils/devstat Utility to display device statistics >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 07 19:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Mikolaj Golub >Release: >Organization: >Environment: >Description: devstat displays disk statistics provided by devstat(9) kernel interface. This is very simple utility, it does not do much, but I found it very useful on my hosts when I needed to collect disk statistics periodically or got it form core dump. Actually I would like to have something like this in base system, but in ports is nice too :-) The output (a la netstat -s): zhuzha:~% devstat ad4 ad4: 21229123584 bytes read 28455829504 bytes written 0 bytes freed 3537002 reads 2062427 writes 0 frees 0 other duration: 11804 16497676851130177162/2^64 sec reads 295340 1262669492698438076/2^64 sec writes 0 0/2^64 sec frees 11280 10298079202142795648/2^64 sec busy time 1 283602973081342936/2^64 sec creation time 512 block size tags sent: 5599429 simple 0 ordered 0 head of queue supported statistics measurements flags: 0 device type: 0 devstat list insert priority: 4095 >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # devstat # devstat/Makefile # devstat/pkg-descr # devstat/distinfo # echo c - devstat mkdir -p devstat > /dev/null 2>&1 echo x - devstat/Makefile sed 's/^X//' >devstat/Makefile << '6fbc317929988281ae9bf5e86f67189e' X# New ports collection makefile for: devstat X# Date created: 13 April 2008 X# Whom: Mikolaj Golub X# X# $FreeBSD: ports/devstat/Makefile,v 1.5 2009/07/07 19:30:02 mikolaj Exp $ X# X XPORTNAME= devstat XPORTVERSION= 0.3.1 XCATEGORIES= sysutils XMASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} X XMAINTAINER= to.my.trociny@gmail.com XCOMMENT= Utility to display device statistics X XUSE_MAKE= yes X XPLIST_FILES= bin/devstat XMAN8= devstat.8 X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/devstat ${PREFIX}/bin/ X ${INSTALL_MAN} ${WRKSRC}/devstat.8 ${PREFIX}/man/man8 X X.include 6fbc317929988281ae9bf5e86f67189e echo x - devstat/pkg-descr sed 's/^X//' >devstat/pkg-descr << 'ede4822d890353e8eb626a298ed191b2' Xdevstat is a small program that displays device statistics Xavailable via kernel devstat(9) interface. X XWWW: http://devstat.googlecode.com/ XAuthor: Mikolaj Golub ede4822d890353e8eb626a298ed191b2 echo x - devstat/distinfo sed 's/^X//' >devstat/distinfo << '49bc2dc7f9a3cc44650a7d1a46123548' XMD5 (devstat-0.3.1.tar.gz) = 3359298b7e86e0edfdd1b6fa0c1a199c XSHA256 (devstat-0.3.1.tar.gz) = 45240a42223002f6aa1fa434ef03ed179c38115394f2c03754d52325dfe7930f XSIZE (devstat-0.3.1.tar.gz) = 4260 49bc2dc7f9a3cc44650a7d1a46123548 exit >Release-Note: >Audit-Trail: >Unformatted: