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){ 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;
} }

View file

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