Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Nov 2015 00:50:46 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r290527 - in stable/9: sbin/camcontrol share/misc
Message-ID:  <201511080050.tA80ok3p048479@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sun Nov  8 00:50:46 2015
New Revision: 290527
URL: https://svnweb.freebsd.org/changeset/base/290527

Log:
  MFstable/10 r290385:
  
  MFC r289913,r289916:
  
  r289913:
  
  Use 't' (bits) not 'i' (bytes) for describing MRIE (aka
  "Method of Reporting Informational Exceptions") in the SCSI mode database as
  the field described in X3T10/94-190 (revision 4; page 2, table 1) [1.] is
  4 bits wide, not 4 bytes wide
  
  1. http://ftp.t10.org/ftp/t10/document.94/94-190r4.pdf
  
  Bug 200619
  Reported by: Michael Baptist <mbaptist@isilon.com>
  Submitted by: Lars Skodje <lskodje@isilon.com>
  Sponsored by: EMC / Isilon Storage Division
  
  r289916:
  
  Limit RESOLUTION_MAX to INT_MAX, not UINT_MAX (all spelled out) so the
  mode value isn't always clipped to -1 when (resolution * size) == 32, which
  would have been the case with values => {4i,32b,32t}.
  
  This seems to have been broken in r64382.
  
  PR: 200619
  Reported by: Michael Baptist
  Submitted by: Lars Skodje
  Sponsored by: EMC / Isilon Storage Division

Modified:
  stable/9/sbin/camcontrol/modeedit.c
  stable/9/share/misc/scsi_modes
Directory Properties:
  stable/9/   (props changed)
  stable/9/sbin/   (props changed)
  stable/9/sbin/camcontrol/   (props changed)
  stable/9/share/   (props changed)
  stable/9/share/misc/   (props changed)

Modified: stable/9/sbin/camcontrol/modeedit.c
==============================================================================
--- stable/9/sbin/camcontrol/modeedit.c	Sun Nov  8 00:50:18 2015	(r290526)
+++ stable/9/sbin/camcontrol/modeedit.c	Sun Nov  8 00:50:46 2015	(r290527)
@@ -246,7 +246,7 @@ editentry_set(char *name, char *newvalue
  *     currently workaround it (even for int64's), so we have to kludge it.
  */
 #define	RESOLUTION_MAX(size) ((resolution * (size) == 32)? 		\
-	(int)0xffffffff: (1 << (resolution * (size))) - 1)
+	INT_MAX: (1 << (resolution * (size))) - 1)
 
 	assert(newvalue != NULL);
 	if (*newvalue == '\0')

Modified: stable/9/share/misc/scsi_modes
==============================================================================
--- stable/9/share/misc/scsi_modes	Sun Nov  8 00:50:18 2015	(r290526)
+++ stable/9/share/misc/scsi_modes	Sun Nov  8 00:50:46 2015	(r290527)
@@ -106,7 +106,7 @@
 	{EBACKERR} t1
 	{LogErr} t1
 	{Reserved} *t4
-	{MRIE} b4
+	{MRIE} t4
 	{Interval Timer} i4
 	{Report Count} i4
 }



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