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){
|
switch(lun->phase){
|
||||||
case Pcmd:
|
case Pcmd:
|
||||||
if(count != 6 && count != 10){
|
if(count != 6 && count != 10 && count != 12 && count != 16){
|
||||||
respond(req, "bad command length");
|
respond(req, "bad command length");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ struct Umsc
|
||||||
/* partitions */
|
/* partitions */
|
||||||
Part part[Maxparts];
|
Part part[Maxparts];
|
||||||
|
|
||||||
uchar rawcmd[10];
|
uchar rawcmd[16];
|
||||||
uchar phase;
|
uchar phase;
|
||||||
char *inq;
|
char *inq;
|
||||||
Ums *ums;
|
Ums *ums;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue