Hi,

I may post this message to a wrong place but I think I can get the answer
here.
I tried to send a SCSI command, Request Sense, to a SCSI disk logic unit,
but there are two buffers, one is the data buffer and the other is the sense
data buffer. Which buffer should be used for this command? I red in the
document of SPC-2 and is still puzzled at it. It seems that the sense buffer
is used only for autosense situation. As a result, I think I should use the
data buffer. However, I could not make sure.
Please help me. Thanks!

Re: about SCSI command by nospam

nospam
Tue Jul 20 19:53:11 CDT 2004

Use the data buffer. RequestSense should always succeed, so the autosense
will contain no error.

"Boswell" <boswellz@263.net> wrote in message
news:uI$#3hhbEHA.4092@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I may post this message to a wrong place but I think I can get the answer
> here.
> I tried to send a SCSI command, Request Sense, to a SCSI disk logic unit,
> but there are two buffers, one is the data buffer and the other is the
sense
> data buffer. Which buffer should be used for this command? I red in the
> document of SPC-2 and is still puzzled at it. It seems that the sense
buffer
> is used only for autosense situation. As a result, I think I should use
the
> data buffer. However, I could not make sure.
> Please help me. Thanks!
>
>
>



Re: about SCSI command by Maxim

Maxim
Tue Jul 20 01:58:03 CDT 2004

No need in ever sending REQUEST SENSE.

REQUEST SENSE is used only to get the error description after the failed
another command, and is issued either automatically by SCSIPORT or
automatically by the miniport hardware after a failed command.

So, send the real command, and then examine SenseInfoBuffer if SrbStatus is
ERROR and ScsiStatus is CHECK_CONDITION.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Boswell" <boswellz@263.net> wrote in message
news:uI$%233hhbEHA.4092@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I may post this message to a wrong place but I think I can get the answer
> here.
> I tried to send a SCSI command, Request Sense, to a SCSI disk logic unit,
> but there are two buffers, one is the data buffer and the other is the sense
> data buffer. Which buffer should be used for this command? I red in the
> document of SPC-2 and is still puzzled at it. It seems that the sense buffer
> is used only for autosense situation. As a result, I think I should use the
> data buffer. However, I could not make sure.
> Please help me. Thanks!
>
>
>



Re: about SCSI command by Peter

Peter
Tue Jul 20 15:57:17 CDT 2004

don't send request sense. It clears any outstanding contingent-allegiance
condition on the device and, as a result, you could be hiding delayed I/O
errors, media changes, broken reservations, etc...

In any event, as someone pointed out, the port driver already retrives the
sense info for any command that fails, so it's unclear what you're hoping to
gain by doing this other than polling for errors that you need to let
scsiport detect on its own.

-p

--
This posting is provided "AS IS" with no warranties, and confers no rights.
<nospam@cristalink.com> wrote in message
news:uqKQr3hbEHA.1548@TK2MSFTNGP12.phx.gbl...
> Use the data buffer. RequestSense should always succeed, so the autosense
> will contain no error.
>
> "Boswell" <boswellz@263.net> wrote in message
> news:uI$#3hhbEHA.4092@TK2MSFTNGP11.phx.gbl...
>> Hi,
>>
>> I may post this message to a wrong place but I think I can get the answer
>> here.
>> I tried to send a SCSI command, Request Sense, to a SCSI disk logic unit,
>> but there are two buffers, one is the data buffer and the other is the
> sense
>> data buffer. Which buffer should be used for this command? I red in the
>> document of SPC-2 and is still puzzled at it. It seems that the sense
> buffer
>> is used only for autosense situation. As a result, I think I should use
> the
>> data buffer. However, I could not make sure.
>> Please help me. Thanks!
>>
>>
>>
>
>