fsm.c (211095) | fsm.c (217859) |
---|---|
1/*- 2 * Copyright (c) 2005-2010 Daniel Braniss <danny@cs.huji.ac.il> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * 26 */ 27 28/* 29 | $Id: fsm.c,v 2.8 2007/05/19 16:34:21 danny Exp danny $ 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005-2010 Daniel Braniss <danny@cs.huji.ac.il> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * 26 */ 27 28/* 29 | $Id: fsm.c,v 2.8 2007/05/19 16:34:21 danny Exp danny $ 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sbin/iscontrol/fsm.c 211095 2010-08-09 12:36:36Z des $"); | 33__FBSDID("$FreeBSD: head/sbin/iscontrol/fsm.c 217859 2011-01-25 22:25:16Z cracauer $"); |
34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/socket.h> 38#include <sys/sysctl.h> 39 40#include <netinet/in.h> 41#include <netinet/tcp.h> --- 312 unchanged lines hidden (view full) --- 354 syslog(LOG_WARNING, "ISCSIGETCAM failed: %d", errno); 355 return 0; 356 } 357 debug(1, "nluns=%d", sess->cam.target_nluns); 358 /* 359 | for now will do this for each lun ... 360 */ 361 for(n = i = 0; i < sess->cam.target_nluns; i++) { | 34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/socket.h> 38#include <sys/sysctl.h> 39 40#include <netinet/in.h> 41#include <netinet/tcp.h> --- 312 unchanged lines hidden (view full) --- 354 syslog(LOG_WARNING, "ISCSIGETCAM failed: %d", errno); 355 return 0; 356 } 357 debug(1, "nluns=%d", sess->cam.target_nluns); 358 /* 359 | for now will do this for each lun ... 360 */ 361 for(n = i = 0; i < sess->cam.target_nluns; i++) { |
362 debug(2, "CAM path_id=%d target_id=%d target_lun=%d", 363 sess->cam.path_id, sess->cam.target_id, sess->cam.target_lun[i]); | 362 debug(2, "CAM path_id=%d target_id=%d", 363 sess->cam.path_id, sess->cam.target_id); |
364 365 sess->camdev = cam_open_btl(sess->cam.path_id, sess->cam.target_id, 366 i, O_RDWR, NULL); 367 if(sess->camdev == NULL) { 368 //syslog(LOG_WARNING, "%s", cam_errbuf); 369 debug(3, "%s", cam_errbuf); 370 continue; 371 } --- 388 unchanged lines hidden --- | 364 365 sess->camdev = cam_open_btl(sess->cam.path_id, sess->cam.target_id, 366 i, O_RDWR, NULL); 367 if(sess->camdev == NULL) { 368 //syslog(LOG_WARNING, "%s", cam_errbuf); 369 debug(3, "%s", cam_errbuf); 370 continue; 371 } --- 388 unchanged lines hidden --- |