summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2017-05-08 14:48:37 +0000
committerken <ken@FreeBSD.org>2017-05-08 14:48:37 +0000
commit7274cf4b3fe3e7b782f1cb885a10646f5005f593 (patch)
tree5f5d7e0b12baa5b95be3fb378a0ebe0dd1f976da /sys/cam
parent6e4a77a9e910d3ad2f48e3e93a7b66f5842cfdb9 (diff)
downloadFreeBSD-src-7274cf4b3fe3e7b782f1cb885a10646f5005f593.zip
FreeBSD-src-7274cf4b3fe3e7b782f1cb885a10646f5005f593.tar.gz
MFC r317745:
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. Sponsored by: Spectra Logic
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index 73e3121..cace6f52 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -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 */
OpenPOWER on IntegriCloud