* Write operation data direction is obviously host-to-device
* Write operation will always return an error, one needs to send request sense until the write is actually done. This gets floppy writing working. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38406 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -880,7 +880,14 @@ usb_disk_block_write(device_lun *lun, uint32 blockPosition, uint16 blockCount,
|
|||||||
do {
|
do {
|
||||||
snooze(10000);
|
snooze(10000);
|
||||||
result = usb_disk_operation(lun, commandBlock, buffer, length,
|
result = usb_disk_operation(lun, commandBlock, buffer, length,
|
||||||
true);
|
false);
|
||||||
|
|
||||||
|
TRACE("write result : %s\n", strerror(result));
|
||||||
|
|
||||||
|
do {
|
||||||
|
snooze(10000);
|
||||||
|
result = usb_disk_request_sense(lun);
|
||||||
|
} while (result != B_OK);
|
||||||
} while (result != B_OK);
|
} while (result != B_OK);
|
||||||
|
|
||||||
if (result == B_OK)
|
if (result == B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user