From af451c397c267298ea2396f5e66cbd174188c02a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 6 Nov 2025 13:59:06 +0100 Subject: [SERVER] iscsi: Add bytesSent accounting, set thread name --- src/server/iscsi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/server/iscsi.c b/src/server/iscsi.c index 5657710..21980bf 100644 --- a/src/server/iscsi.c +++ b/src/server/iscsi.c @@ -561,6 +561,8 @@ static int iscsi_task_xfer_scsi_data_in(iscsi_connection *conn, const iscsi_task max_burst_offset += max_burst_len; } + conn->client->bytesSent += xfer_len; + return (status & ISCSI_SCSI_DATA_IN_RESPONSE_FLAGS_STATUS); } @@ -3327,6 +3329,9 @@ static int iscsi_connecction_handle_login_response(iscsi_connection *conn, iscsi return ISCSI_CONNECT_PDU_READ_ERR_LOGIN_RESPONSE; } + char tname[50]; + snprintf( tname, sizeof(tname), "i%s", conn->client->hostName ); + setThreadName( tname ); break; } -- cgit v1.2.3-55-g7522