From 5b9b2174512d97399c68172bffe91cf928b1400a Mon Sep 17 00:00:00 2001 From: sr Date: Thu, 30 Aug 2012 00:36:54 +0200 Subject: [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 --- src/server/utils.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/server/utils.h') 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); -- cgit v1.2.3-55-g7522