Changeset View
Changeset View
Standalone View
Standalone View
sbin/camcontrol/persist.c
Show First 20 Lines • Show All 447 Lines • ▼ Show 20 Lines | scsipersist(struct cam_device *device, int argc, char **argv, char *combinedopt, | ||||
ccb = cam_getccb(device); | ccb = cam_getccb(device); | ||||
if (ccb == NULL) { | if (ccb == NULL) { | ||||
warnx("%s: error allocating CCB", __func__); | warnx("%s: error allocating CCB", __func__); | ||||
error = 1; | error = 1; | ||||
goto bailout; | goto bailout; | ||||
} | } | ||||
CCB_CLEAR_ALL_EXCEPT_HDR(&ccb->csio); | |||||
while ((c = getopt(argc, argv, combinedopt)) != -1) { | while ((c = getopt(argc, argv, combinedopt)) != -1) { | ||||
switch (c) { | switch (c) { | ||||
case 'a': | case 'a': | ||||
all_tg_pt = 1; | all_tg_pt = 1; | ||||
break; | break; | ||||
case 'I': { | case 'I': { | ||||
int error_str_len = 128; | int error_str_len = 128; | ||||
char error_str[error_str_len]; | char error_str[error_str_len]; | ||||
▲ Show 20 Lines • Show All 495 Lines • Show Last 20 Lines |