diff options
author | Hannes Reinecke <hare@suse.de> | 2008-05-14 13:55:49 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-05-14 13:55:49 +0200 |
commit | 78d9ecfd4f1e37f7453e55e71f2909a58706ae10 (patch) | |
tree | eac2f83e081e0795ff11855fd67bf00a651e3c34 /extras/scsi_id/scsi_id.c | |
parent | 753417db2ba6faafa3aa30f6b15678e1557e20b8 (diff) |
scsi_id: add SGv4 support
Fall back to SGv3, if SGv3 returns a failure/is not available.
Diffstat (limited to 'extras/scsi_id/scsi_id.c')
-rw-r--r-- | extras/scsi_id/scsi_id.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/scsi_id/scsi_id.c b/extras/scsi_id/scsi_id.c index 4f0233ed0d..0f09f29b64 100644 --- a/extras/scsi_id/scsi_id.c +++ b/extras/scsi_id/scsi_id.c @@ -543,6 +543,8 @@ static int set_inq_values(struct scsi_id_device *dev_scsi, const char *path) { int retval; + dev_scsi->use_sg = 4; + retval = scsi_std_inquiry(dev_scsi, path); if (retval) return retval; |