From e306933c93063bd3870cbdbff3ffaad405275b18 Mon Sep 17 00:00:00 2001 From: Baruch Even Date: Sun, 17 Jan 2016 17:41:45 +0200 Subject: [PATCH] Adjust inquiry request to 96 bytes This works best even for old SCSI devices --- arch/arch-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arch-linux.c b/arch/arch-linux.c index db2927c..6ff930d 100644 --- a/arch/arch-linux.c +++ b/arch/arch-linux.c @@ -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;