Informative error for incorrect IO class 0 name
Instead of generic 'Invalid input parameter' Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
This commit is contained in:
parent
0461de9e24
commit
f15d3238ad
@ -2327,6 +2327,10 @@ static inline int partition_get_line(CSVFILE *csv,
|
||||
}
|
||||
strncpy_s(cnfg->info[part_id].name, sizeof(cnfg->info[part_id].name),
|
||||
name, strnlen_s(name, sizeof(cnfg->info[part_id].name)));
|
||||
if (0 == part_id && strcmp(name, "unclassified")) {
|
||||
cas_printf(LOG_ERR, "IO class 0 must have the default name 'unclassified'\n");
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
/* Validate Priority*/
|
||||
*error_col = part_csv_coll_prio;
|
||||
|
Loading…
Reference in New Issue
Block a user