Get rid of non-OCF error codes
Let's put an end to random crashes and vague error messages in pyocf! Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
@@ -54,10 +54,10 @@ static int _ocf_uuid_set(const struct ocf_volume_uuid *uuid,
|
||||
int result;
|
||||
|
||||
if (!uuid->data)
|
||||
return -EINVAL;
|
||||
return -OCF_ERR_INVAL;
|
||||
|
||||
if (uuid->size > sizeof(muuid->data))
|
||||
return -ENOBUFS;
|
||||
return -OCF_ERR_INVAL;
|
||||
|
||||
result = env_memcpy(muuid->data, sizeof(muuid->data),
|
||||
uuid->data, uuid->size);
|
||||
|
Reference in New Issue
Block a user