From owner-svn-src-all@freebsd.org Sun Jul 2 06:26:40 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4988D9EADD for ; Sun, 2 Jul 2017 06:26:40 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp001.apm-internet.net (smtp001.apm-internet.net [85.119.248.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1801E81C7F for ; Sun, 2 Jul 2017 06:26:39 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: (qmail 30337 invoked from network); 2 Jul 2017 06:19:55 -0000 X-APM-Authkey: 18389/1 2 Received: from unknown (HELO meld.njm.me.uk) (90.194.167.105) by smtp001.apm-internet.net with SMTP; 2 Jul 2017 06:19:55 -0000 Received: from triton.njm.me.uk (triton.njm.me.uk [192.168.144.133]) by meld.njm.me.uk (8.15.2/8.15.2) with ESMTP id v626Jpnd013004; Sun, 2 Jul 2017 07:19:51 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from localhost (localhost [127.0.0.1]) by triton.njm.me.uk (8.15.2/8.15.2) with ESMTP id v626Jpgo070892; Sun, 2 Jul 2017 07:19:51 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Sun, 02 Jul 2017 07:19:51 +0100 From: "N.J. Mann" To: Allan Jude cc: svn-src-all@freebsd.org Subject: Re: svn commit: r320555 - head/usr.sbin/diskinfo Message-ID: <613933F1305AF7B7EDEED034@triton.njm.me.uk> In-Reply-To: <201707012134.v61LYvFc026064@repo.freebsd.org> References: <201707012134.v61LYvFc026064@repo.freebsd.org> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jul 2017 06:26:40 -0000 Hi, On Saturday, July 01, 2017 21:34:57 +0000 Allan Jude wrote: > Author: allanjude > Date: Sat Jul 1 21:34:57 2017 > New Revision: 320555 > URL: https://svnweb.freebsd.org/changeset/base/320555 > > Log: > Add -s (serial) and -p (physpath) to diskinfo [...] > @@ -52,6 +58,12 @@ Print fields one per line with a descriptive comment. > Perform a simple measurement of the I/O read command overhead. > .It Fl i > Perform a simple IOPS benchmark. > +.It Fl p > +Return the physical path of the disk. > +This is a string that identifies the physical path to the disk in the > +storage enclsoure. ^^^^^^^^^^ > +.It Fl s > +Return the disk serial number > .It Fl t > Perform a simple and rather naive benchmark of the disks seek > and transfer performance. > @@ -62,6 +74,13 @@ with the following fields: device name, sectorsize, me > media size in sectors, stripe size, stripe offset, firmware cylinders, > firmware heads, and firmware sectors. > The last three fields are only present if the information is available. > +.It Fl i > +Return the disk ident, usually the serial number. > +.It Fl p > +Return the physical path of the disk. > +This is a string that identifies the physical path to the disk in the > +storage enclsoure. ^^^^^^^^^^ Cheers, Nick. --