Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ctl/ctl_tpc.c
Context not available. | |||||
#include <sys/conf.h> | #include <sys/conf.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/nv.h> | |||||
#include <sys/dnv.h> | |||||
#include <machine/atomic.h> | #include <machine/atomic.h> | ||||
#include <cam/cam.h> | #include <cam/cam.h> | ||||
Context not available. | |||||
struct scsi_ec_segment *seg; | struct scsi_ec_segment *seg; | ||||
struct tpc_list *list, *tlist; | struct tpc_list *list, *tlist; | ||||
uint8_t *ptr; | uint8_t *ptr; | ||||
char *value; | const char *value; | ||||
int len, off, lencscd, lenseg, leninl, nseg; | int len, off, lencscd, lenseg, leninl, nseg; | ||||
CTL_DEBUG_PRINT(("ctl_extended_copy_lid1\n")); | CTL_DEBUG_PRINT(("ctl_extended_copy_lid1\n")); | ||||
Context not available. | |||||
list = malloc(sizeof(struct tpc_list), M_CTL, M_WAITOK | M_ZERO); | list = malloc(sizeof(struct tpc_list), M_CTL, M_WAITOK | M_ZERO); | ||||
list->service_action = cdb->service_action; | list->service_action = cdb->service_action; | ||||
value = ctl_get_opt(&lun->be_lun->options, "insecure_tpc"); | value = dnvlist_get_string(lun->be_lun->options, "insecure_tpc", NULL); | ||||
if (value != NULL && strcmp(value, "on") == 0) | if (value != NULL && strcmp(value, "on") == 0) | ||||
list->init_port = -1; | list->init_port = -1; | ||||
else | else | ||||
Context not available. | |||||
struct scsi_ec_segment *seg; | struct scsi_ec_segment *seg; | ||||
struct tpc_list *list, *tlist; | struct tpc_list *list, *tlist; | ||||
uint8_t *ptr; | uint8_t *ptr; | ||||
char *value; | const char *value; | ||||
int len, off, lencscd, lenseg, leninl, nseg; | int len, off, lencscd, lenseg, leninl, nseg; | ||||
CTL_DEBUG_PRINT(("ctl_extended_copy_lid4\n")); | CTL_DEBUG_PRINT(("ctl_extended_copy_lid4\n")); | ||||
Context not available. | |||||
list = malloc(sizeof(struct tpc_list), M_CTL, M_WAITOK | M_ZERO); | list = malloc(sizeof(struct tpc_list), M_CTL, M_WAITOK | M_ZERO); | ||||
list->service_action = cdb->service_action; | list->service_action = cdb->service_action; | ||||
value = ctl_get_opt(&lun->be_lun->options, "insecure_tpc"); | value = dnvlist_get_string(lun->be_lun->options, "insecure_tpc", NULL); | ||||
if (value != NULL && strcmp(value, "on") == 0) | if (value != NULL && strcmp(value, "on") == 0) | ||||
list->init_port = -1; | list->init_port = -1; | ||||
else | else | ||||
Context not available. |