From a15ef88f562effca00a512cc2960cff68368e01a Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Fri, 21 Feb 2014 16:29:02 -0800
Subject: [PATCH] Add new errno for overusage

---
 slurm/slurm_errno.h      | 1 +
 src/common/slurm_errno.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/slurm/slurm_errno.h b/slurm/slurm_errno.h
index a05fff7bb8b..a59399d269e 100644
--- a/slurm/slurm_errno.h
+++ b/slurm/slurm_errno.h
@@ -261,6 +261,7 @@ enum {
 	ESLURM_CLUSTER_DELETED,
 	ESLURM_ONE_CHANGE,
 	ESLURM_BAD_NAME,
+	ESLURM_OVER_USAGE,
 
 	/* plugin and custom errors */
 	ESLURM_MISSING_TIME_LIMIT       = 8000
diff --git a/src/common/slurm_errno.c b/src/common/slurm_errno.c
index 0293d406473..94e44f465bc 100644
--- a/src/common/slurm_errno.c
+++ b/src/common/slurm_errno.c
@@ -396,6 +396,8 @@ static slurm_errtab_t slurm_errtab[] = {
 	  "Can only change one at a time"                       },
 	{ ESLURM_BAD_NAME,
 	  "Unacceptable name given. (No '.' in name allowed)"   },
+	{ ESLURM_OVER_USAGE,
+	  "Request would go over available amount of usage"     },
 
 	/* plugin and custom errors */
 	{ ESLURM_MISSING_TIME_LIMIT,
-- 
GitLab