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 @@
}
if (iop->sensep) {
+#if CAM_VERSION < 0x16
memcpy(iop->sensep,&(ccb->csio.sense_data),sizeof(struct scsi_sense_data));
iop->resp_sense_len = sizeof(struct scsi_sense_data);
+#else
+ memcpy(iop->sensep,&(ccb->csio.sense_data),sizeof(struct
scsi_sense_data_fixed));
+ iop->resp_sense_len = sizeof(struct scsi_sense_data_fixed);
+#endif
}
iop->scsi_status = 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)
>
> 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.
>
> On 11/03/2011 07:43 PM, James wrote:
>> On Thu, Nov 3, 2011 at 12:12 PM, Alex Samorukov<[email protected]> 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.
>>
>
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "[email protected]"