mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
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
This commit is contained in:
1 parent
15fc093acc
commit
c36036beff
1 file changed
+1
-1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317745
@@ -1614,7 +1614,7 @@ static struct asc_table_entry asc_table[] = {
|
||||
{ SST(0x20, 0x01, SS_RDEF, /* XXX TBD */
|
||||
"Access denied - initiator pending-enrolled") },
|
||||
/* DT PWROMAEBK */
|
||||
{ SST(0x20, 0x02, SS_RDEF, /* XXX TBD */
|
||||
{ SST(0x20, 0x02, SS_FATAL | EPERM,
|
||||
"Access denied - no access rights") },
|
||||
/* DT PWROMAEBK */
|
||||
{ SST(0x20, 0x03, SS_RDEF, /* XXX TBD */
|
||||
|
||||
Reference in new issue
Block a user