// carry out command
final SelectReport selectReport = cdb.getSelectReport();
LOGGER.debug("selectReport = " + selectReport);
// there are only well known LUNs
ReportLunsParameterData reportLunsParameterData;
// TODO the switch isn't really needed right now, but maybe in
// future implementations
switch (selectReport) {
case SELECTED_ADDRESSING_METHODS :
case WELL_KNOWN_LUNS_ONLY :
case ALL :
reportLunsParameterData = new ReportLunsParameterData(session.getTargetServer().getConfig().getLogicalUnitNumber());
break;
default :
throw new InternetSCSIException();
/*
* Unreachable, this case has already been checked in the ReportLunsCDB constructor