Author: janderwald
Date: Fri Feb 10 21:42:42 2012
New Revision: 55531
URL:
http://svn.reactos.org/svn/reactos?rev=55531&view=rev
Log:
[USBSTOR]
- Read Capacity cmd length is 10 bytes
Modified:
branches/usb-bringup-trunk/drivers/usb/usbstor/scsi.c
branches/usb-bringup-trunk/drivers/usb/usbstor/usbstor.h
Modified: branches/usb-bringup-trunk/drivers/usb/usbstor/scsi.c
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbstor/scsi.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbstor/scsi.c [iso-8859-1] Fri Feb 10 21:42:42
2012
@@ -819,7 +819,7 @@
//
// send request, response will be freed in completion routine
//
- return USBSTOR_SendRequest(DeviceObject, Irp, NULL, UFI_INQUIRY_CMD_LEN,
(PUCHAR)&Cmd, sizeof(UFI_CAPACITY_RESPONSE), (PUCHAR)Response);
+ return USBSTOR_SendRequest(DeviceObject, Irp, NULL, UFI_READ_CAPACITY_CMD_LEN,
(PUCHAR)&Cmd, sizeof(UFI_CAPACITY_RESPONSE), (PUCHAR)Response);
}
NTSTATUS
@@ -1167,7 +1167,7 @@
//
ASSERT(Request->DataBuffer);
- DPRINT("SCSIOP_READ_CAPACITY Length %\n",
Request->DataTransferLength);
+ DPRINT("SCSIOP_READ_CAPACITY Length %lu\n",
Request->DataTransferLength);
Status = USBSTOR_SendCapacityCmd(DeviceObject, Irp);
}
else if (pCDB->MODE_SENSE.OperationCode == SCSIOP_MODE_SENSE)
Modified: branches/usb-bringup-trunk/drivers/usb/usbstor/usbstor.h
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbstor/usbstor.h [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbstor/usbstor.h [iso-8859-1] Fri Feb 10
21:42:42 2012
@@ -198,6 +198,7 @@
ULONG BlockLength; // block length in
bytes
}UFI_CAPACITY_RESPONSE, *PUFI_CAPACITY_RESPONSE;
+#define UFI_READ_CAPACITY_CMD_LEN 0xA
C_ASSERT(sizeof(UFI_CAPACITY_RESPONSE) == 8);
//--------------------------------------------------------------------------------------------------------------------------------------------