Re: [PATCH] Make SCSI Status CONDITION MET equivalent to GOOD

2018-02-23 Thread Bart Van Assche
On Wed, 2018-02-21 at 20:48 -0500, Douglas Gilbert wrote: > + if (result) { > + if (sense_valid && (sshdr.sense_key == RECOVERED_ERROR)) { > + /* if ATA PASS-THROUGH INFORMATION AVAILABLE skip > + * print since caller wants ATA registers. Onl

[PATCH] Make SCSI Status CONDITION MET equivalent to GOOD

2018-02-21 Thread Douglas Gilbert
The SCSI PRE-FETCH (10 or 16) command is present both on hard disks and some SSDs. It is useful when the address of the next block(s) to be read is known but it is not following the LBA of the current READ (so read-ahead won't help). It returns two "good" SCSI Status values. If the requested blocks