nusb/disk: allow 12 and 16 byte raw scsi commands (from erik quanstro)

This commit is contained in:
cinap_lenrek 2013-02-13 10:03:53 +01:00
parent 0243f52bae
commit af3dad5490
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -79,7 +79,7 @@ struct Umsc
/* partitions */
Part part[Maxparts];
uchar rawcmd[10];
uchar rawcmd[16];
uchar phase;
char *inq;
Ums *ums;