Size of external names, like initiator names, increased.
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 14 Sep 2009 18:08:18 +0000 (18:08 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 14 Sep 2009 18:08:18 +0000 (18:08 +0000)
Thanks to savik@alumni.technion.ac.il for pointing on it.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1094 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/include/scst_const.h
scst/include/scst_user.h

index 45c64bd..a5ad17f 100644 (file)
@@ -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!
index 225825c..135d178 100644 (file)
@@ -104,8 +104,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 {