Skip to content

Commit

Permalink
Adjust inquiry request to 96 bytes
Browse files Browse the repository at this point in the history
This works best even for old SCSI devices
  • Loading branch information
baruch committed Jan 17, 2016
1 parent 93ea379 commit e306933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arch-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ int disk_dev_identify(disk_dev_t *dev, char *vendor, char *model, char *fw_rev,
*ata_buf_len = 0;
memset(buf, 0, sizeof(buf));

cdb_len = cdb_inquiry_simple(cdb, 64);
cdb_len = cdb_inquiry_simple(cdb, 96);
ret = sg_ioctl(dev->fd, cdb, cdb_len, buf, sizeof(buf), SG_DXFER_FROM_DEV, sense, sizeof(sense), &buf_read, &sense_read, &io_res);
if (ret < 0)
return -1;
Expand Down

0 comments on commit e306933

Please sign in to comment.