Created the function nwipe_read_dco_real_max_sectors() which directly accesses the disk drive sending a 0xB1 device configuration overlay identify command to the drive. We read the returned data structure extracting the real max sectors value. We do this if hdparm returns nonsense for the real max sector (as it does in hdparm v9.60) for some larger drives. This value is automatically sent to the nwipe log FYI.
Added a stdout & stderr pipe to the hdparm commands as verbose data appears to be sent to stderr, as we are interested in that data this pipe captures stderr as well as stdout.
Added headers "scsi/sg.h" and "scsi/scsi_ioctl.h" as we are now sending low level commands to the drives.
Created the function nwipe_read_dco_real_max_sectors() which directly accesses the disk drive sending a 0xB1 device configuration overlay identify command to the drive. We read the returned data structure extracting the real max sectors value. We do this if hdparm returns nonsense for the real max sector (as it does in hdparm v9.60) for some larger drives. This value is automatically sent to the nwipe log FYI.
Added a stdout & stderr pipe to the hdparm commands as verbose data appears to be sent to stderr, as we are interested in that data this pipe captures stderr as well as stdout.
Added headers "scsi/sg.h" and "scsi/scsi_ioctl.h" as we are now sending low level commands to the drives.