Lines Matching refs:err_desc
827 struct ctl_error_desc err_desc;
837 bzero(&err_desc, sizeof(err_desc));
838 err_desc.lun_id = lun;
858 if (err_desc.lun_error != CTL_LUN_INJ_NONE) {
866 err_desc.lun_error = err_type;
872 err_desc.error_pattern |= pattern;
944 (uint8_t *)&err_desc.custom_sense,
956 err_desc.serial = delete_id;
957 if (ioctl(fd, CTL_ERROR_INJECT_DELETE, &err_desc) == -1) {
965 if (err_desc.lun_error == CTL_LUN_INJ_NONE) {
970 } else if ((err_desc.lun_error == CTL_LUN_INJ_CUSTOM)
978 err_desc.lun_error |= CTL_LUN_INJ_CONTINUOUS;
987 u_int8_t *buf_ptr = (uint8_t *)&err_desc.custom_sense;
1001 if (err_desc.error_pattern == CTL_LUN_PAT_NONE) {
1008 err_desc.error_pattern |= CTL_LUN_PAT_RANGE;
1019 if ((err_desc.pattern & CTL_LUN_PAT_READWRITE) == 0) {
1026 err_desc.lba_range.lba = lba;
1027 err_desc.lba_range.len = len;
1030 if (ioctl(fd, CTL_ERROR_INJECT, &err_desc) == -1) {
1035 (uintmax_t)err_desc.serial);