casadm: more informative logging on standby detach

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2022-03-24 10:45:10 +01:00
parent 5c8f9a0d8f
commit c11e80d085

View File

@ -3018,7 +3018,15 @@ int standby_detach(int cache_id)
.cache_id = cache_id
};
return cas_ioctl(KCAS_IOCTL_STANDBY_DETACH, &cmd);
if (cas_ioctl(KCAS_IOCTL_STANDBY_DETACH, &cmd) != SUCCESS) {
print_err(cmd.ext_err_code ? : KCAS_ERR_SYSTEM);
return FAILURE;
}
cas_printf(LOG_INFO, "Successfully detached cache instance %hu\n",
cache_id);
return SUCCESS;
}
int standby_activate(int cache_id, const char *cache_device)