extended error messages in casadm --failover-activate
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -3011,5 +3011,10 @@ int failover_activate(int cache_id, const char *cache_device)
|
||||
}
|
||||
}
|
||||
|
||||
return cas_ioctl(KCAS_IOCTL_FAILOVER_ACTIVATE, &data);
|
||||
if (cas_ioctl(KCAS_IOCTL_FAILOVER_ACTIVATE, &data) != SUCCESS) {
|
||||
print_err(data.ext_err_code ? : KCAS_ERR_SYSTEM);
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user