Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173634
b: refs/heads/master
c: 1e49f78
h: refs/heads/master
v: v3
  • Loading branch information
Douglas Gilbert authored and James Bottomley committed Dec 4, 2009
1 parent 40cc23e commit f0324f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 851b164231d1117673aa44c00c7622e48b7dfcf4
refs/heads/master: 1e49f78505b2c4df193614d774bf46d067cda7d8
13 changes: 9 additions & 4 deletions trunk/drivers/scsi/scsi_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,12 @@ static int inquiry_evpd_89(unsigned char * arr)
}


/* Block limits VPD page (SBC-3) */
static unsigned char vpdb0_data[] = {
/* from 4th byte */ 0,0,0,4,
0,0,0x4,0,
0,0,0,64,
/* from 4th byte */ 0,0,0,4, 0,0,0x4,0, 0,0,0,64,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
};

static int inquiry_evpd_b0(unsigned char * arr)
Expand Down Expand Up @@ -731,11 +733,14 @@ static int inquiry_evpd_b0(unsigned char * arr)
return sizeof(vpdb0_data);
}

/* Block device characteristics VPD page (SBC-3) */
static int inquiry_evpd_b1(unsigned char *arr)
{
memset(arr, 0, 0x3c);
arr[0] = 0;
arr[1] = 1;
arr[1] = 1; /* non rotating medium (e.g. solid state) */
arr[2] = 0;
arr[3] = 5; /* less than 1.8" */

return 0x3c;
}
Expand Down

0 comments on commit f0324f3

Please sign in to comment.