]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't bother retrying errors for encrypted drives that are locked.
authorken <ken@FreeBSD.org>
Wed, 3 May 2017 14:53:27 +0000 (14:53 +0000)
committerken <ken@FreeBSD.org>
Wed, 3 May 2017 14:53:27 +0000 (14:53 +0000)
commit8f2ea7746cff884ee148c344136a98a4123e81de
treeb354eaee6fa3644f918f926cce71292324a2efa7
parentb2c36616d69730e378bda735d67cdf60c77b17ed
Don't bother retrying errors for encrypted drives that are locked.

sys/cam/scsi/scsi_all.c:
In the asc_table, if we get a 0x20,0x02 error ("Access denied -
no access rights"), don't bother retrying.  Instead, immediately
fail the command.

This is the error returned by Self Encrypting Drives (SED) when
they are locked.

MFC after: 3 days
Sponsored by: Spectra Logic
sys/cam/scsi/scsi_all.c