mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
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:
@@ -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
|
||||
improve performance
|
||||
|
||||
- Autogenerated SCST target names made deprecated
|
||||
|
||||
- Custom parse improvements
|
||||
|
||||
- Logging improvements
|
||||
|
||||
@@ -506,6 +506,12 @@ struct scst_tgt *scst_register_target(struct scst_tgt_template *vtt,
|
||||
} else {
|
||||
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,
|
||||
SCST_DEFAULT_TGT_NAME_SUFFIX, tgt_num);
|
||||
if (tgt->tgt_name == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user