Skip to content

Commit

Permalink
Only ask for 32 bytes of inquiry data
Browse files Browse the repository at this point in the history
Related to issue baruch#54
  • Loading branch information
baruch committed Jan 16, 2016
1 parent 6f7c7f1 commit aeceb39
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, sizeof(buf));
cdb_len = cdb_inquiry_simple(cdb, 32);
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 aeceb39

Please sign in to comment.