aboutsummaryrefslogtreecommitdiff
path: root/sys/cam
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-12-04 17:36:29 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-12-04 17:36:29 +0000
commit5a770b54965646d7b2983f3c6c2f4c62786b440c (patch)
tree9f2b6f7158408463b4aa86db8b3c854c66619a30 /sys/cam
parentb42a6953a156ca06f9b7f1948319a539f3122e8d (diff)
downloadsrc-5a770b54965646d7b2983f3c6c2f4c62786b440c.tar.gz
src-5a770b54965646d7b2983f3c6c2f4c62786b440c.zip
Swap resource count scopes for used/available space.
Used count should be reported as per-LUN, while available should not. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=275478
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index 8aabd1946557..a1c9d3b31da1 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -6956,7 +6956,7 @@ ctl_lbp_log_sense_handler(struct ctl_scsiio *ctsio,
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_scsiio *ctsio,
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;
}