Re: Kernel builds, but crashes at boot (amd64, Revision: 234306)
=D0=92 Tue, 17 Apr 2012 03:53:27 +0200
Edward Tomasz Napiera=C5=82a <trasz@freebsd.org> =D0=BF=D0=B8=D1=88=D0=B5=
=D1=82:
> Wiadomo=C5=9B=C4=87 napisana przez Rainer Hurling w dniu 16 kwi 2012, o g=
odz.
> 19:58:
> > On 16.04.2012 19:31 (UTC+1), Konstantin Belousov wrote:
> >> On Mon, Apr 16, 2012 at 06:15:32PM +0200, Rainer Hurling wrote:
> >>>=20
> >>> I just updated my system to r234342, only downgraded
> >>> /usr/src/sys/cam/scsi/scsi_da.c to r233746, and now the system is
> >>> booting again. So obviously there is something wrong with the
> >>> newest patch to scsi_da.c.
> >> It is too broad, try to revert exactly one patch and see whether
> >> it works.
> >=20
> > Sorry for my bad english. I wanted to say, that I only reverted
> > exactly one patch (file scsi_da.c from 234177 back to 233746
> > manually). The rest is up to r234342.
>=20
> Could you try the patch below?
>=20
> Index: sys/cam/scsi/scsi_da.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- sys/cam/scsi/scsi_da.c (revision 234314)
> +++ sys/cam/scsi/scsi_da.c (working copy)
> @@ -938,7 +938,9 @@ daopen(struct disk *dp)
> if (error !=3D 0)
> xpt_print(periph->path, "unable to retrieve capacity
> data");=20
> - if (periph->flags & CAM_PERIPH_INVALID)
> + if (periph->flags & CAM_PERIPH_INVALID ||
> + softc->disk->d_sectorsize =3D=3D 0 ||
> + softc->disk->d_mediasize =3D=3D 0)
> error =3D ENXIO;
> =20
> if (error =3D=3D 0 && (softc->flags & DA_FLAG_PACK_REMOVABLE) !=3D
> 0 &&
>=20
>=20
it gets in "head"?
I hope i will use my device that has recently worked in FreeBSD - and
now it will just not work?...
Thanks.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 14 之 14 篇):