Reorganize remove-inacitve command

Don't remove inactive core if it has dirt cache lines assigned unless `force`
flag is specified.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2021-04-12 13:46:57 +02:00
parent 8a8572d8bb
commit 4e680bb50a
6 changed files with 24 additions and 24 deletions

View File

@@ -258,7 +258,11 @@ struct {
KCAS_ERR_CORE_IN_ACTIVE_STATE,
"Core device is in active state"
},
{
KCAS_ERR_INACTIVE_CORE_IS_DIRTY,
"The cache contains dirty data assigned to the core. If you want to "
"continue, please use --force option.\nWarning: the data will be lost"
},
};
const char *cas_strerr(int cas_error_code)