From 702ae0cbb4c314c296e3d009a928a4d2282419bb Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Wed, 9 Jan 2013 09:17:30 -0800 Subject: [PATCH] Added printout for nojobs and nosteps options for AccountStorageEnforce --- src/common/slurm_protocol_defs.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/common/slurm_protocol_defs.c b/src/common/slurm_protocol_defs.c index 8619199c557..71fe947d11c 100644 --- a/src/common/slurm_protocol_defs.c +++ b/src/common/slurm_protocol_defs.c @@ -1774,6 +1774,16 @@ extern void accounting_enforce_string(uint16_t enforce, char *str, int str_len) strcat(str, ","); strcat(str, "limits"); //7 len } + if (enforce & ACCOUNTING_ENFORCE_NO_JOBS) { + if (str[0]) + strcat(str, ","); + strcat(str, "nojobs"); //7 len + } + if (enforce & ACCOUNTING_ENFORCE_NO_JOBS) { + if (str[0]) + strcat(str, ","); + strcat(str, "nosteps"); //8 len + } if (enforce & ACCOUNTING_ENFORCE_QOS) { if (str[0]) strcat(str, ","); @@ -1789,7 +1799,7 @@ extern void accounting_enforce_string(uint16_t enforce, char *str, int str_len) strcat(str, ","); strcat(str, "wckeys"); //7 len } - // total len 35 + // total len 50 if (str[0] == '\0') strcat(str, "none"); -- GitLab