From owner-freebsd-bugs@FreeBSD.ORG Thu May 26 12:20:09 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D6C716A42A for ; Thu, 26 May 2005 12:20:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3390C43D66 for ; Thu, 26 May 2005 12:20:01 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4QCK0ub089161 for ; Thu, 26 May 2005 12:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4QCK05K089160; Thu, 26 May 2005 12:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 26 May 2005 12:20:00 GMT Resent-Message-Id: <200505261220.j4QCK05K089160@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andriy Gapon Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9828B16A433 for ; Thu, 26 May 2005 12:17:32 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 921E743D5D for ; Thu, 26 May 2005 12:17:24 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j4QCHOCj093790 for ; Thu, 26 May 2005 12:17:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j4QCHOJO093774; Thu, 26 May 2005 12:17:24 GMT (envelope-from nobody) Message-Id: <200505261217.j4QCHOJO093774@www.freebsd.org> Date: Thu, 26 May 2005 12:17:24 GMT From: Andriy Gapon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/81497: ad and da do not set interface type in devstat entry X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2005 12:20:09 -0000 >Number: 81497 >Category: kern >Synopsis: ad and da do not set interface type in devstat entry >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 26 12:20:00 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andriy Gapon >Release: 5.4-RELEASE >Organization: >Environment: 5.4-RELEASE i386 6.0-CURRENT i386 >Description: (scsi) cd device driver pre-creates devstat entry before calling geom disk_create() and sets device type to DEVSTAT_TYPE_CDROM|DEVSTAT_TYPE_IF_SCSI, which is perfect IMHO. On the other hand, da and ad drivers rely on disk_create() to create a devstat entry and it is created with device type DEVSTAT_TYPE_DIRECT, which is not incorrect but is not complete either: iostat -d -t SCSI or iostat -d -t IDE wouldn't show any ad or da devices, only cd >How-To-Repeat: 1. on a system with ad or da or both disks do the following: iostat -d -t SCSI iostat -d -t IDE Result: no ad/da devices are shown contrary to iostat(1) and reasonable expectations. >Fix: no patch at this time, sorry >Release-Note: >Audit-Trail: >Unformatted: