From be9e3f218790c60802a96367d7934939312f33b1 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 15 Sep 2009 18:10:39 +0000 Subject: [PATCH] Merge of r1094: Size of external names, like initiator names, increased. Thanks to savik@alumni.technion.ac.il for pointing on it. git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@1096 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_const.h | 3 +++ scst/include/scst_user.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index 25238df47..b19065176 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -32,6 +32,9 @@ /* Max size of various names */ #define SCST_MAX_NAME 50 +/* Max size of external names, like initiator name */ +#define SCST_MAX_EXTERNAL_NAME 256 + /* * Size of sense sufficient to carry standard sense data. * Warning! It's allocated on stack! diff --git a/scst/include/scst_user.h b/scst/include/scst_user.h index cb61ca766..434cd7a62 100644 --- a/scst/include/scst_user.h +++ b/scst/include/scst_user.h @@ -100,8 +100,8 @@ struct scst_user_sess { aligned_u64 lun; uint16_t threads_num; uint8_t rd_only; - char initiator_name[SCST_MAX_NAME]; - char target_name[SCST_MAX_NAME]; + char initiator_name[SCST_MAX_EXTERNAL_NAME]; + char target_name[SCST_MAX_EXTERNAL_NAME]; }; struct scst_user_scsi_cmd_parse {