[Sheepdog] [PATCH] sheepdog: add error strings

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon May 10 08:55:46 CEST 2010


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 block/sheepdog.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/block/sheepdog.c b/block/sheepdog.c
index 4c59c9d..3080b48 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -313,6 +313,10 @@ static const char * sd_strerror(int err)
 		{SD_RES_STARTUP, "The system is still booting"},
 		{SD_RES_VDI_NOT_LOCKED, "VDI isn't locked"},
 		{SD_RES_SHUTDOWN, "The system is shutting down"},
+		{SD_RES_NO_MEM, "Out of memory on the server"},
+		{SD_RES_FULL_VDI, "We already have the maximum vdis"},
+		{SD_RES_VER_MISMATCH, "Protocol version mismatch"},
+		{SD_RES_NO_SPACE, "Server has no space for new objects"},
 	};
 
 	for (i = 0; i < ARRAY_SIZE(errors); ++i)
-- 
1.5.6.5




More information about the sheepdog mailing list