Date: Wed, 20 Sep 2000 15:03:22 CST From: "bsdnewbie bsdnewbie" <bsdnewbie@hotmail.com> To: freebsd-questions@FreeBSD.org Subject: _A bug in ATA subsystem? Message-ID: <F149jCRGryWtIIZS2TR0000df68@hotmail.com>
next in thread | raw e-mail | index | archive | help
-> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F149jCRGryWtIIZS2TR0000df68>