Date: Tue, 16 Jan 2001 19:18:43 +0200 From: Mark Murray <mark@grondar.za> To: mjacob@feral.com Cc: audit@FreeBSD.ORG, "Justin T. Gibbs" <gibbs@scsiguy.com> Subject: Re: getting rid of that pesky "driver mistake" message from scsi_da... Message-ID: <200101161718.f0GHIdI33308@gratis.grondar.za> In-Reply-To: <Pine.LNX.4.21.0101151555560.8362-100000@zeppo.feral.com> ; from Matthew Jacob <mjacob@feral.com> "Mon, 15 Jan 2001 15:56:01 PST." References: <Pine.LNX.4.21.0101151555560.8362-100000@zeppo.feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Looks fine to me. I had to do he same thing in my code.
M
> 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
>
--
Mark Murray
Warning: this .sig is umop ap!sdn
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?200101161718.f0GHIdI33308>
