skeleten
skeleten

Reputation: 94

How to get a list of SCSI-Disks in C/C++ under Linux?

i need to get a list or any other enumerable class with info about any connected SCSI-disks, with info just like /proc/scsi/sg/devices Please help me and thanks in advance

Upvotes: 1

Views: 834

Answers (1)

user149341
user149341

Reputation:

You've basically named a solution in your question -- just open /proc/scsi/sg/devices and read from it.

Upvotes: 2

Related Questions