Fix error message when removing unplugged cache
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
3392b509ee
commit
3b0236aca9
@ -1153,6 +1153,10 @@ int stop_cache(uint16_t cache_id, int flush)
|
|||||||
"to operate normally. If you want to stop cache without fully\n"
|
"to operate normally. If you want to stop cache without fully\n"
|
||||||
"flushing dirty data, use '-n' option.\n");
|
"flushing dirty data, use '-n' option.\n");
|
||||||
return INTERRUPTED;
|
return INTERRUPTED;
|
||||||
|
} else if (cmd.ext_err_code == OCF_ERR_WRITE_CACHE){
|
||||||
|
cas_printf(LOG_ERR, "Removed cache %d with errors\n", cache_id);
|
||||||
|
print_err(cmd.ext_err_code);
|
||||||
|
return FAILURE;
|
||||||
} else {
|
} else {
|
||||||
cas_printf(LOG_ERR, "Error while removing cache %d\n", cache_id);
|
cas_printf(LOG_ERR, "Error while removing cache %d\n", cache_id);
|
||||||
print_err(cmd.ext_err_code);
|
print_err(cmd.ext_err_code);
|
||||||
|
Loading…
Reference in New Issue
Block a user