Prevent adding core with the same UUID twice

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2021-04-14 16:00:54 +02:00
parent aa5de7342c
commit 19276570b8
2 changed files with 27 additions and 0 deletions

View File

@@ -125,6 +125,9 @@ typedef enum {
/** Device does not meet requirements */
OCF_ERR_INVAL_CACHE_DEV,
/** Core with the uuid already exists */
OCF_ERR_CORE_UUID_EXISTS,
} ocf_error_t;
#endif /* __OCF_ERR_H__ */