nusb/disk: allow 12 and 16 byte raw scsi commands (from erik quanstro)
This commit is contained in:
parent
0243f52bae
commit
af3dad5490
2 changed files with 2 additions and 2 deletions
|
@ -812,7 +812,7 @@ dwrite(Req *req)
|
|||
}
|
||||
switch(lun->phase){
|
||||
case Pcmd:
|
||||
if(count != 6 && count != 10){
|
||||
if(count != 6 && count != 10 && count != 12 && count != 16){
|
||||
respond(req, "bad command length");
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ struct Umsc
|
|||
/* partitions */
|
||||
Part part[Maxparts];
|
||||
|
||||
uchar rawcmd[10];
|
||||
uchar rawcmd[16];
|
||||
uchar phase;
|
||||
char *inq;
|
||||
Ums *ums;
|
||||
|
|
Loading…
Reference in a new issue