Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 May 2017 14:48:39 +0000 (UTC)
From:      "Kenneth D. Merry" <ken@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r317941 - stable/10/sys/cam/scsi
Message-ID:  <201705081448.v48EmdpC081590@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ken
Date: Mon May  8 14:48:39 2017
New Revision: 317941
URL: https://svnweb.freebsd.org/changeset/base/317941

Log:
  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

Modified:
  stable/10/sys/cam/scsi/scsi_all.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/scsi/scsi_all.c
==============================================================================
--- stable/10/sys/cam/scsi/scsi_all.c	Mon May  8 14:48:37 2017	(r317940)
+++ stable/10/sys/cam/scsi/scsi_all.c	Mon May  8 14:48:39 2017	(r317941)
@@ -1613,7 +1613,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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705081448.v48EmdpC081590>