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;
        }
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to