svn commit: r275478 - head/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Thu Dec 4 17:36:30 UTC 2014
Author: mav
Date: Thu Dec 4 17:36:29 2014
New Revision: 275478
URL: https://svnweb.freebsd.org/changeset/base/275478
Log:
Swap resource count scopes for used/available space.
Used count should be reported as per-LUN, while available should not.
MFC after: 1 week
Modified:
head/sys/cam/ctl/ctl.c
Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c Thu Dec 4 17:26:04 2014 (r275477)
+++ head/sys/cam/ctl/ctl.c Thu Dec 4 17:36:29 2014 (r275478)
@@ -6956,7 +6956,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;
}
@@ -6969,7 +6969,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-head
mailing list