eprintf("kernel module bug %d\n", scb[0]); exit(-1);
dprintf("FIXME: access to nonexistent lun %u\n", lun); len = 0;
int scsi_cmnd_process(int tid, uint32_t lun, uint8_t *scb, uint8_t *data){	int len = 0;	dprintf("%x\n", scb[0]);	switch (scb[0]) {	case INQUIRY:		len = inquiry(tid, lun, scb, data);		break;	case REPORT_LUNS:		len = report_luns(tid, lun, scb, data);		break;	case READ_CAPACITY:		len = read_capacity(tid, lun, scb, data);		break;	case MODE_SENSE:		len = mode_sense(tid, lun, scb, data);		break;	case REQUEST_SENSE:		len = request_sense(tid, lun, scb, data);		break;	case SERVICE_ACTION_IN:		len = sevice_action(tid, lun, scb, data);		break;	case START_STOP:	case TEST_UNIT_READY:	case SYNCHRONIZE_CACHE:	case VERIFY:		len = 0;		break;	case READ_6:	case READ_10:	case WRITE_6:	case WRITE_10:	case WRITE_VERIFY:	case RESERVE:	case RELEASE:	case RESERVE_10:	case RELEASE_10:	default:		eprintf("kernel module bug %d\n", scb[0]);		exit(-1);		break;	}	return len;}