Date: Thu, 3 Nov 2011 20:05:20 +0100 From: Thomas Eberhardt <sneakywumpus@googlemail.com> To: FreeBSD Stable Mailing List <freebsd-stable@freebsd.org> Subject: Re: smartctl / mpt on 9.0-RC1 Message-ID: <5AA1B2B7-EC88-44E0-9537-A91E2AFDFFFE@googlemail.com> In-Reply-To: <4EB2E2D7.2050809@os2.kiev.ua> References: <4EB1BCAD.7080206@zzattack.org> <20111102233807.GA67112@icarus.home.lan> <4EB1D6F9.3060008@zzattack.org> <20111103000124.GA67550@icarus.home.lan> <4EB1DD51.4080808@zzattack.org> <20111103002352.GA67904@icarus.home.lan> <4EB2538D.3090108@zzattack.org> <4EB2CB75.6070003@os2.kiev.ua> <CAD4099km0FcvUMSw=sY7HB73dtvfQgcVE16VJdGpGK96V%2B4hhA@mail.gmail.com> <4EB2E2D7.2050809@os2.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_5B42BEA0-B217-43D5-B49B-1A31BD7D87D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi. I got the same problem. After some debugging I came up with the following patch: --- os_freebsd.cpp.orig 2011-10-06 18:43:44.000000000 +0200 +++ os_freebsd.cpp 2011-10-23 11:19:31.492599837 +0200 @@ -1044,8 +1044,13 @@ } =20 if (iop->sensep) { +#if CAM_VERSION < 0x16 memcpy(iop->sensep,&(ccb->csio.sense_data),sizeof(struct = scsi_sense_data)); iop->resp_sense_len =3D sizeof(struct scsi_sense_data); +#else + memcpy(iop->sensep,&(ccb->csio.sense_data),sizeof(struct = scsi_sense_data_fixed)); + iop->resp_sense_len =3D sizeof(struct scsi_sense_data_fixed); +#endif } =20 iop->scsi_status =3D ccb->csio.scsi_status; On 03.11.2011, at 19:52, Alex Samorukov wrote: > Thank you. I currently got shell, but user-only, what is useless for = me ;-) (All ioctl/cam commands require superuser) >=20 > I asked for the root and now waiting for it. You can also provide = shell so i will have more boxes to test. I am expecting some very = trivial bug caused by some wrong data returned from the driver without = strict check in smartctl. >=20 > On 11/03/2011 07:43 PM, James wrote: >> On Thu, Nov 3, 2011 at 12:12 PM, Alex Samorukov<ml@os2.kiev.ua> = wrote: >>> I am smartmontools developer and FreeBSD port maintainer. If you >>> could provide shell access to the affected system i can try to debug >>> issue. I have no access to the mpt devices myself and it is unclear >>> what going on from provided backtrace. >> Hi Alex. If you're unable to get shell access from Frank, I'd be >> glad to help out. I have mps(4) and mpt(4) hardware available and >> experience the same bug. >>=20 >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org" --Apple-Mail=_5B42BEA0-B217-43D5-B49B-1A31BD7D87D0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5AA1B2B7-EC88-44E0-9537-A91E2AFDFFFE>