svn commit: r275694 - stable/10/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Thu Dec 11 00:25:26 UTC 2014


Author: mav
Date: Thu Dec 11 00:25:26 2014
New Revision: 275694
URL: https://svnweb.freebsd.org/changeset/base/275694

Log:
  MFC r275478: Swap resource count scopes for used/available space.
  
  Used count should be reported as per-LUN, while available should not.

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

Modified: stable/10/sys/cam/ctl/ctl.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl.c	Wed Dec 10 23:30:18 2014	(r275693)
+++ stable/10/sys/cam/ctl/ctl.c	Thu Dec 11 00:25:26 2014	(r275694)
@@ -7153,7 +7153,7 @@ ctl_lbp_log_sense_handler(struct ctl_scs
 		phdr->param_len = 8;
 		data = (uint8_t *)(phdr + 1);
 		scsi_ulto4b(val >> CTL_LBP_EXPONENT, data);
-		data[4] = 0x01; /* per-LUN */
+		data[4] = 0x02; /* per-pool */
 		data += phdr->param_len;
 	}
 
@@ -7166,7 +7166,7 @@ ctl_lbp_log_sense_handler(struct ctl_scs
 		phdr->param_len = 8;
 		data = (uint8_t *)(phdr + 1);
 		scsi_ulto4b(val >> CTL_LBP_EXPONENT, data);
-		data[4] = 0x02; /* per-pool */
+		data[4] = 0x01; /* per-LUN */
 		data += phdr->param_len;
 	}
 


More information about the svn-src-stable mailing list