extended error messages in casadm --failover-activate
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
5c1987440e
commit
8f53682954
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -178,6 +178,10 @@ struct {
|
|||||||
OCF_ERR_CACHE_STANDBY,
|
OCF_ERR_CACHE_STANDBY,
|
||||||
"Operation not permitted in failover standby mode"
|
"Operation not permitted in failover standby mode"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
OCF_ERR_FAILOVER_ATTACHED,
|
||||||
|
"Cache device is attached, please detach it first with --failover-detach"
|
||||||
|
},
|
||||||
|
|
||||||
/* CAS kernel error mappings*/
|
/* CAS kernel error mappings*/
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user