|
In the Linux system, the device symbol of the optical drive can also be hda, hdb, etc. How can I tell in the code whether the hda is an optical drive or a hard disk? Thank you.
In addition, if the scsi device judges the devicetype field in the INQUIRYDATA data structure, if the value is 0, it is the hard disk? |
|