From owner-freebsd-scsi@FreeBSD.ORG Mon Apr 11 16:09:05 2011 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EC6A106567E; Mon, 11 Apr 2011 16:09:05 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id BD3508FC1F; Mon, 11 Apr 2011 16:09:04 +0000 (UTC) Received: by bwz12 with SMTP id 12so5977002bwz.13 for ; Mon, 11 Apr 2011 09:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=LZs8j6Pi47+4b5ubVwMj/g+yzvXfzo0BHGm8d6XWf6k=; b=AvP+15Pl3Ua0bZJe8D+t78AwuD9eLOexM9qM7L52d+lsjLvbMVvJKAJaQT0CPA8d8W aXEXLyVFwRhr2+PH72MeMN8tSnn9zG3APvJ9GlslRpRmE4kLqIixNN/lECWcpp/ooPPi oc8kjQ6XBQTxvCxGMrhGrSetRPWqQTMj9Nu1M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=P/HBh7AFT44seTq+jYYUBsNZTML3cglLchtALgQUEbM73Cw3zET/SCSc7cfM6JYsqL CzWn//roBn2LDyNN1LsvNsDXTygX6H52+Et0R3oxk9BB0xnXvHGLoV3zhcWwIwT3oHef 9DtTKBLMg0XLevCmmu2pdjl5kQaAHn6oakL7g= Received: by 10.204.20.147 with SMTP id f19mr89029bkb.163.1302538143238; Mon, 11 Apr 2011 09:09:03 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id j13sm736693faa.3.2011.04.11.09.09.01 (version=SSLv3 cipher=OTHER); Mon, 11 Apr 2011 09:09:02 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DA3279C.5090409@FreeBSD.org> Date: Mon, 11 Apr 2011 19:09:00 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110310 Thunderbird/3.1.9 MIME-Version: 1.0 To: "Kenneth D. Merry" References: <20110331223339.GA13682@freebsd.org> <201104010843.47367.jhb@freebsd.org> <20110404204316.GA11367@freebsd.org> <4D9D9917.3030102@FreeBSD.org> <20110410115644.GA55815@freebsd.org> <4DA210D3.5090807@FreeBSD.org> <20110411154339.GB63246@nargothrond.kdm.org> In-Reply-To: <20110411154339.GB63246@nargothrond.kdm.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org Subject: Re: multiple issues with devstat_*(9) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2011 16:09:05 -0000 On 11.04.2011 18:43, Kenneth D. Merry wrote: > On Sun, Apr 10, 2011 at 23:19:31 +0300, Alexander Motin wrote: >> Alexander Best wrote: >>> 2) the pass* devices still don't show up under ide/scsi/other. that's ok, but >>> then the src comments and manual pages need to be changed accordingly. >> >> As I have told - it is a bug/feature of libdevstat. It should not be >> difficult to fix, if it is really a bug. > > That was intentional, if I can remember what I intended in 1997/1998. > > The reason was that since there is one passthrough device created for every > device that CAM manages, you don't want to show pass(4) devices when the > user says 'iostat -t scsi'. Otherwise he might get all pass(4) devices, > depending on the order of devices in the system. > > But, if it's pass(4) devices you want, you can ask for them specifically, > or for all SCSI/IDE pass(4) devices, as mav did above. But it is impossible to get, for example, all SCSI devices including pass. Either only non-pass, or pass only. It is strange that if I won't specify "-t" (most probable for inexperienced users), I'll gel all devices including pass, but if specify "-t scsi" (as more advanced user who knows what to ask), I'll get only non-pass. It is at least inconsistent. -- Alexander Motin