From a53716e25eca4c7fed0054bbb8d04a35d54c5032 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Thu, 7 Aug 2003 23:51:27 +0000 Subject: [PATCH] Add new error code for invalid node state. --- doc/man/man3/slurm_reconfigure.3 | 5 ++++- slurm/slurm_errno.h | 1 + src/common/slurm_errno.c | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/man/man3/slurm_reconfigure.3 b/doc/man/man3/slurm_reconfigure.3 index 6dd6fd2e124..44b616a9db2 100644 --- a/doc/man/man3/slurm_reconfigure.3 +++ b/doc/man/man3/slurm_reconfigure.3 @@ -1,4 +1,4 @@ -.TH "Slurm API" "3" "July 2003" "Morris Jette" "Slurm administrative calls" +.TH "Slurm API" "3" "August 2003" "Morris Jette" "Slurm administrative calls" .SH "NAME" slurm_init_part_desc_msg, slurm_reconfigure, slurm_shutdown, slurm_update_job, @@ -94,6 +94,9 @@ On success, zero is returned. On error, -1 is returned, and the Slurm error code .LP \fBESLURM_INVALID_NODE_NAME\fR the requested node name(s) is/are not valid. .LP +\fBESLURM_INVALID_NODE_STATE\fR the specified state node state or requested node +state transition is not valid. +.LP \fBESLURM_INVALID_PARTITION_NAME\fR the requested partition name is not valid. .LP \fBESLURM_ACCESS_DENIED\fR the requesting user lacks authorization for the requested action (e.g. trying to delete or modify another user's job). diff --git a/slurm/slurm_errno.h b/slurm/slurm_errno.h index dfbfce5af98..13cf41d2791 100644 --- a/slurm/slurm_errno.h +++ b/slurm/slurm_errno.h @@ -122,6 +122,7 @@ enum { ESLURM_BAD_TASK_COUNT, ESLURM_INVALID_JOB_CREDENTIAL, ESLURM_IN_STANDBY_MODE, + ESLURM_INVALID_NODE_STATE, /* Quadrics Elan routine error codes */ ENOSLURM = 3000, diff --git a/src/common/slurm_errno.c b/src/common/slurm_errno.c index 31dcabf501c..8648e74a5ac 100644 --- a/src/common/slurm_errno.c +++ b/src/common/slurm_errno.c @@ -145,6 +145,8 @@ static slurm_errtab_t slurm_errtab[] = { "Error generating job credential" }, { ESLURM_IN_STANDBY_MODE, "Slurm backup controller in standby mode" }, + { ESLURM_INVALID_NODE_STATE, + "Invalid node state specified" }, /* Quadrics Elan routine error codes */ -- GitLab