Date: Mon, 15 Jan 2001 15:56:01 -0800 (PST) From: Matthew Jacob <mjacob@feral.com> To: audit@FreeBSD.ORG Cc: "Justin T. Gibbs" <gibbs@scsiguy.com> Subject: Re: getting rid of that pesky "driver mistake" message from scsi_da... Message-ID: <Pine.LNX.4.21.0101151555560.8362-100000@zeppo.feral.com> In-Reply-To: <Pine.LNX.4.21.0101141526410.7069-100000@zeppo.feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Going once....
>
> Index: cam/scsi/scsi_da.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v
> retrieving revision 1.61
> diff -u -r1.61 scsi_da.c
> --- cam/scsi/scsi_da.c 2001/01/08 00:32:51 1.61
> +++ cam/scsi/scsi_da.c 2001/01/14 23:26:43
> @@ -127,6 +127,7 @@
> struct disk_params params;
> struct disk disk;
> union ccb saved_ccb;
> + dev_t dev;
> };
>
> struct da_quirk_entry {
> @@ -899,6 +899,9 @@
> cam_extend_release(daperiphs, periph->unit_number);
> xpt_print_path(periph->path);
> printf("removing device entry\n");
> + if (softc->dev) {
> + disk_destroy(softc->dev);
> + }
> free(softc, M_DEVBUF);
> }
>
> @@ -1048,7 +1051,7 @@
> /*
> * Register this media as a disk
> */
> - disk_create(periph->unit_number, &softc->disk, 0,
> + softc->dev = disk_create(periph->unit_number, &softc->disk, 0,
> &da_cdevsw, &dadisk_cdevsw);
>
> /*
>
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-audit" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0101151555560.8362-100000>
