diff options
| author | sr | 2012-08-30 00:36:54 +0200 |
|---|---|---|
| committer | sr | 2012-08-30 00:36:54 +0200 |
| commit | 5b9b2174512d97399c68172bffe91cf928b1400a (patch) | |
| tree | bf2cb9a7ae67cfe922fc7d2a6dcb432eaad4a2d9 /src/server/utils.h | |
| parent | Fix linebreak, add comment (diff) | |
| download | dnbd3-5b9b2174512d97399c68172bffe91cf928b1400a.tar.gz dnbd3-5b9b2174512d97399c68172bffe91cf928b1400a.tar.xz dnbd3-5b9b2174512d97399c68172bffe91cf928b1400a.zip | |
[SERVER] Set _FILE_OFFSET_BITS=64 so that images >4GiB will be handled properly on 32bit
[SERVER] Change IPC interface to be able to handle more than 1 request per connection
[SERVER] Change IPC interface to use select() so it can handle multiple connections at the same time
[SERVER] Re-Implement dnbd3_add_image() to work with image list
[SERVER] Add lots of sanity/safety checks and error messages when loading/adding an image
Diffstat (limited to 'src/server/utils.h')
| -rw-r--r-- | src/server/utils.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/server/utils.h b/src/server/utils.h index ec83e64..9f709d5 100644 --- a/src/server/utils.h +++ b/src/server/utils.h @@ -26,13 +26,17 @@ #ifndef UTILS_H_ #define UTILS_H_ -#define ERROR_FILE_NOT_FOUND 1 -#define ERROR_IMAGE_ALREADY_EXISTS 2 -#define ERROR_CONFIG_FILE_PERMISSIONS 3 -#define ERROR_IMAGE_NOT_FOUND 4 -#define ERROR_RID 5 -#define ERROR_IMAGE_IN_USE 6 -#define ERROR_UNKNOWN 10 +#define ERROR_FILE_NOT_FOUND 1 +#define ERROR_IMAGE_ALREADY_EXISTS 2 +#define ERROR_CONFIG_FILE_PERMISSIONS 3 +#define ERROR_IMAGE_NOT_FOUND 4 +#define ERROR_RID 5 +#define ERROR_IMAGE_IN_USE 6 +#define ERROR_MISSING_ARGUMENT 7 +#define ERROR_UNSPECIFIED_ERROR 8 +#define ERROR_INVALID_XML 9 +#define ERROR_UNKNOWN_COMMAND 10 +#define ERROR_SEE_LOG 11 void dnbd3_load_config(char *file); int dnbd3_add_image(dnbd3_image_t *image, char *file); |
