HomeFreeBSD

pvscsi: maximum target number is one less than number of targets

Description

pvscsi: maximum target number is one less than number of targets

Fix the number of targets we inquiry to be one less than the maximum
number of targets adapter reports. This gets rid of the errors reported
on VMware Workstation:

(probe36:pvscsi0:0:65:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe36:pvscsi0:0:65:0): CAM status: CCB request completed with an error

While here, print the maximum number of targets.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D39867

(cherry picked from commit 6abf81b3d6747da0baa90860d5a6e929c97c9bb9)

Details

Provenance
yuripvAuthored on May 5 2023, 9:48 AM
zleiCommitted on Tue, Nov 26, 3:32 PM
Parents
rGd4820e1727ec: mac_bsdextended: Remove \n from sysctl descriptions
Branches
Unknown
Tags
Unknown