Minor cleanups, fixes and updates

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1657 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-04-27 16:29:58 +00:00
parent b5965d2844
commit 1c21b1ffb8
10 changed files with 58 additions and 14 deletions
+2 -2
View File
@@ -2338,7 +2338,7 @@ static void execute_task_management(struct iscsi_cmnd *req)
int function = req_hdr->function & ISCSI_FUNCTION_MASK;
struct scst_rx_mgmt_params params;
TRACE(TRACE_MGMT, "TM fn %d", function);
TRACE(TRACE_MGMT, "iSCSI TM fn %d", function);
TRACE_MGMT_DBG("TM req %p, ITT %x, RTT %x, sn %u, con %p", req,
cmnd_itt(req), req_hdr->rtt, req_hdr->cmd_sn, conn);
@@ -3277,7 +3277,7 @@ static void iscsi_send_task_mgmt_resp(struct iscsi_cmnd *req, int status)
TRACE_ENTRY();
TRACE_MGMT_DBG("TM req %p finished", req);
TRACE(TRACE_MGMT, "TM fn %d finished, status %d", fn, status);
TRACE(TRACE_MGMT, "iSCSI TM fn %d finished, status %d", fn, status);
rsp = iscsi_alloc_rsp(req);
rsp_hdr = (struct iscsi_task_rsp_hdr *)&rsp->pdu.bhs;
+5 -5
View File
@@ -328,7 +328,7 @@ int kernel_params_get(u32 tid, u64 sid, int type, struct iscsi_param *params)
if ((err = ioctl(ctrl_fd, ISCSI_PARAM_GET, &info)) < 0) {
err = -errno;
log_debug(1, "Can't get session params for session 0x%" PRIu64
log_debug(1, "Can't get session params for session 0x%" PRIx64
" (tid %u, err %d): %s\n", sid, tid, err, strerror(errno));
}
@@ -370,7 +370,7 @@ int kernel_params_set(u32 tid, u64 sid, int type, u32 partial,
if ((err = ioctl(ctrl_fd, ISCSI_PARAM_SET, &info)) < 0) {
err = -errno;
log_error("Can't set session params for session 0x%" PRIu64
log_error("Can't set session params for session 0x%" PRIx64
" (tid %u, type %d, partial %d, err %d): %s\n", sid,
tid, type, partial, err, strerror(errno));
}
@@ -415,7 +415,7 @@ int kernel_session_create(struct connection *conn)
res = ioctl(ctrl_fd, ADD_SESSION, &info);
if (res < 0) {
res = -errno;
log_error("Can't create sess 0x%" PRIu64 " (tid %d, "
log_error("Can't create sess 0x%" PRIx64 " (tid %d, "
"initiator %s): %s\n", conn->sess->sid.id64, conn->tid,
conn->sess->initiator, strerror(errno));
}
@@ -437,7 +437,7 @@ int kernel_session_destroy(u32 tid, u64 sid)
res = ioctl(ctrl_fd, DEL_SESSION, &info);
if (res < 0) {
res = -errno;
log_debug(2, "Can't destroy sess 0x%" PRIu64 " (tid %d): %s\n",
log_debug(2, "Can't destroy sess 0x%" PRIx64 " (tid %d): %s\n",
sid, tid, strerror(errno));
}
@@ -462,7 +462,7 @@ int kernel_conn_create(u32 tid, u64 sid, u32 cid, u32 stat_sn, u32 exp_stat_sn,
res = ioctl(ctrl_fd, ADD_CONN, &info);
if (res < 0) {
res = -errno;
log_error("Can't create conn %x (sess 0x%" PRIu64 ", tid %d): %s\n",
log_error("Can't create conn %x (sess 0x%" PRIx64 ", tid %d): %s\n",
cid, sid, tid, strerror(errno));
}
+1 -1
View File
@@ -561,7 +561,7 @@ static void login_start(struct connection *conn)
err = init_conn_session_params(conn);
if (err != 0) {
log_error("Can't get session params for session 0x%" PRIu64
log_error("Can't get session params for session 0x%" PRIx64
" (err %d): %s\n", conn->sid.id64, err,
strerror(-err));
login_rsp_tgt_err(conn, ISCSI_STATUS_TARGET_ERROR);
+4 -1
View File
@@ -5490,7 +5490,10 @@ int scst_rx_mgmt_fn(struct scst_session *sess,
mcmd->cmd_sn_set = params->cmd_sn_set;
mcmd->cmd_sn = params->cmd_sn;
TRACE(TRACE_MGMT, "TM fn %d", params->fn);
if (params->fn <= SCST_TARGET_RESET)
TRACE(TRACE_MGMT, "TM fn %d", params->fn);
else
TRACE_MGMT_DBG("TM fn %d", params->fn);
TRACE_MGMT_DBG("sess=%p, tag_set %d, tag %lld, lun_set %d, "
"lun=%lld, cmd_sn_set %d, cmd_sn %d, priv %p", sess,
+8 -2
View File
@@ -647,8 +647,14 @@ static int do_tm(struct vdisk_cmd *vcmd)
TRACE_ENTRY();
TRACE(TRACE_MGMT, "TM fn %d (sess_h %"PRIx64", cmd_h_to_abort %d)",
cmd->tm_cmd.fn, cmd->tm_cmd.sess_h, cmd->tm_cmd.cmd_h_to_abort);
if (cmd->tm_cmd.fn <= SCST_TARGET_RESET)
TRACE(TRACE_MGMT, "TM fn %d (sess_h %"PRIx64", cmd_h_to_abort "
"%d)", cmd->tm_cmd.fn, cmd->tm_cmd.sess_h,
cmd->tm_cmd.cmd_h_to_abort);
else
TRACE_MGMT_DBG("TM fn %d (sess_h %"PRIx64", cmd_h_to_abort %d)",
cmd->tm_cmd.fn, cmd->tm_cmd.sess_h,
cmd->tm_cmd.cmd_h_to_abort);
memset(reply, 0, sizeof(*reply));
reply->cmd_h = cmd->cmd_h;
+1 -1
View File
@@ -81,7 +81,7 @@ struct vdisk_dev {
#endif
#endif
struct vdisk_tgt_dev tgt_devs[25];
struct vdisk_tgt_dev tgt_devs[64];
char *name; /* Name of virtual device,
must be <= SCSI Model + 1 */
+7
View File
@@ -132,6 +132,13 @@
transfers from/to underlying SCSI devices.
</span></li>
</ul>
<h1>Certification</h1>
<p>SCST core engine has passed VMware certification as part of
<a href="http://scalecomputing.com/products">Scale&rsquo;s Intelligent Clustered Storage</a> technology developed by
<a href="http://scalecomputing.com">Scale Computing</a>.</p>
</div>
<div id="rightbar">
<h1>Documentation</h1>
+7
View File
@@ -118,6 +118,13 @@
Tested mostly on i386 and x86_64, but should work on any other supported by Linux platform.</p>
<p>You can find the latest development version of this driver in the SCST SVN. See the download page how to setup
access to it.</p>
<h1>Certification</h1>
<p>ISCSI-SCST engine has passed VMware certification as part of
<a href="http://scalecomputing.com/products">Scale&rsquo;s Intelligent Clustered Storage</a> technology developed by
<a href="http://scalecomputing.com">Scale Computing</a>.</p>
<p class="post-footer align-right">
<a href="iscsi-scst-howto.txt" class="readmore">HOWTO</a>
<a href="SCST_Gentoo_HOWTO.txt" class="readmore">Gentoo HOWTO</a>
+21
View File
@@ -0,0 +1,21 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<object><noscript>
<meta http-equiv="Refresh" content="0; URL=http://iscsi-scst.sourceforge.net">
</noscript></object>
<title>Old iSCSI-SCST page</title>
</head>
<body>
<script language="JavaScript1.1" type="text/javascript">
<!--
location.replace("http://iscsi-scst.sourceforge.net");
//-->
</script>
</body>
</html>
+2 -2
View File
@@ -62,7 +62,7 @@
<td class="companybox" width="33%">
<a href="http://www.id-7.com"><img src="http://www.id-7.com/logos/scst-100.jpg" alt="ID7, Ltd"></a></td>
<td class="companybox" width="33%">
<a href="http://www.axxana.com"><img src="http://www.axxana.com/images/logo.jpg" alt="Axxana"></a></td>
<a href="http://www.axxana.com"><img src="http://www.axxana.com/Axxana/_images/Logo.jpg" alt="Axxana"></a></td>
<td class="companybox" width="33%">
<a href="http://www.datadomain.com"><img src="http://www.datadomain.com/images/logo_emc_datadomain_transitional.gif" alt="Data Domain"></a></td>
</tr>
@@ -72,7 +72,7 @@
<td class="companybox" width="33%">
<font size="3" color="black">Enjellic Systems Development</font></td>
<td class="companybox" width="33%">
<a href="http://www.logicworks.net"><img src="http://www.logicworks.net/sites/all/themes/logicworks_smarty/images/logo.png" alt="Logicworks"></a></td>
<a href="http://www.logicworks.net"><img src="http://www.logicworks.net/sites/logicworks.net/themes/logicworks_smarty/images/logo.png" alt="Logicworks"></a></td>
</tr>
<tr>
<td class="companybox" width="33%">