Drive model is normally obtained via libata and this generally works fine for SATA/SAS/NVME and often USB but for the SSK HE-G3001 (chipset Jmicron JMS578) adapter libata returns `ssk' as the drive model. Smartctl and hdparm return the drive model correctly so why libata returns SSK I'm not sure.
The drive serial number is obtained correctly.
One way around this is to write a IOCTL function that obtains drive model directly from the drive, for both SATA and SCSI command sets depending upon the bus. If a illegal request is returned by the drive, nwipe falls back to using the data libata returns for model no.
Drive model is normally obtained via libata and this generally works fine for SATA/SAS/NVME and often USB but for the SSK HE-G3001 (chipset Jmicron JMS578) adapter libata returns `ssk' as the drive model. Smartctl and hdparm return the drive model correctly so why libata returns SSK I'm not sure.
The drive serial number is obtained correctly.
One way around this is to write a IOCTL function that obtains drive model directly from the drive, for both SATA and SCSI command sets depending upon the bus. If a illegal request is returned by the drive, nwipe falls back to using the data libata returns for model no.