From owner-freebsd-questions Wed Sep 20 0: 3:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f149.pav1.hotmail.com [64.4.31.149]) by hub.freebsd.org (Postfix) with ESMTP id 8CE8337B422 for ; Wed, 20 Sep 2000 00:03:22 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Sep 2000 00:03:22 -0700 Received: from 61.151.174.204 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 20 Sep 2000 07:03:22 GMT X-Originating-IP: [61.151.174.204] From: "bsdnewbie bsdnewbie" To: freebsd-questions@FreeBSD.org Subject: _A bug in ATA subsystem? Date: Wed, 20 Sep 2000 15:03:22 CST Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 20 Sep 2000 07:03:22.0298 (UTC) FILETIME=[DD0491A0:01C022D0] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -> ad_attach /* in /sys/dev/ata/ata-disk.c */ . . . -> disk_create ... cdevsw_add /* NOTE! */ ... <- disk_create ... <- ad_attach However, the function ad_detach/disk_destroy does not call "cdevsw_remove". Therefore, when you detach eg. ad0, after you type "ls /dev", the system go crash. Suggest: add a ref_cnt, when disk_create, ref_cnt++; when disk_destroy, ref_cnt--; if ref_cnt == 0, call cdevsw_remove. Is this a bug in the ATA subsystem? Thanks. best regards, bsdnewbie Sep 20, 2k _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message