-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #369 from daltonbohning/master
daos: dcp: enhanced error checking
- Loading branch information
Showing
8 changed files
with
426 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* Defines common error codes */ | ||
|
||
/* enable C++ codes to include this header directly */ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#ifndef MFU_ERRORS_H | ||
#define MFU_ERRORS_H | ||
|
||
/* Generic error codes */ | ||
#define MFU_ERR 1000 | ||
#define MFU_ERR_INVAL_ARG 1001 | ||
|
||
/* DCP-specific error codes */ | ||
#define MFU_ERR_DCP 1100 | ||
#define MFU_ERR_DCP_COPY 1101 | ||
|
||
/* DAOS-specific error codes*/ | ||
#define MFU_ERR_DAOS 4000 | ||
#define MFU_ERR_DAOS_INVAL_ARG 4001 | ||
|
||
/* Error macros */ | ||
#define MFU_ERRF "%s(%d)" | ||
#define MFU_ERRP(rc) "MFU_ERR", rc | ||
|
||
#endif /* MFU_ERRORS_H */ | ||
|
||
/* enable C++ codes to include this header directly */ | ||
#ifdef __cplusplus | ||
} /* extern "C" */ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.