Autogenerated SCST target names made deprecated

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3387 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-04-16 15:30:33 +00:00
parent a49868a2e1
commit 21d503cbb7
2 changed files with 8 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ Summary of changes between versions 2.0.0 and 2.1.0
to prevent possible starvation under heavy load and in some cases to prevent possible starvation under heavy load and in some cases
improve performance improve performance
- Autogenerated SCST target names made deprecated
- Custom parse improvements - Custom parse improvements
- Logging improvements - Logging improvements

View File

@@ -506,6 +506,12 @@ struct scst_tgt *scst_register_target(struct scst_tgt_template *vtt,
} else { } else {
static int tgt_num; /* protected by scst_mutex */ static int tgt_num; /* protected by scst_mutex */
PRINT_WARNING("Usage of autogenerated SCST target names "
"is deprecated and will be removed in one of the next "
"versions. It is strongly recommended to update target "
"driver %s to use hardware related persistent target "
"names instead", vtt->name);
tgt->tgt_name = kasprintf(GFP_KERNEL, "%s%s%d", vtt->name, tgt->tgt_name = kasprintf(GFP_KERNEL, "%s%s%d", vtt->name,
SCST_DEFAULT_TGT_NAME_SUFFIX, tgt_num); SCST_DEFAULT_TGT_NAME_SUFFIX, tgt_num);
if (tgt->tgt_name == NULL) { if (tgt->tgt_name == NULL) {