From 5a770b54965646d7b2983f3c6c2f4c62786b440c Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Thu, 4 Dec 2014 17:36:29 +0000 Subject: Swap resource count scopes for used/available space. Used count should be reported as per-LUN, while available should not. MFC after: 1 week --- sys/cam/ctl/ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/cam') 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; } -- cgit v1.2.3