From 4e3c33a8e3db572a5b677459a9800dc13a773f64 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 19 Aug 2009 18:49:18 +0000
Subject: [PATCH] Validate PreemptType and PreemptMode for BlueGene systems

---
 src/common/read_config.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/common/read_config.c b/src/common/read_config.c
index 335296e5e77..2b4d1dc1535 100644
--- a/src/common/read_config.c
+++ b/src/common/read_config.c
@@ -2184,6 +2184,12 @@ _validate_and_set_defaults(slurm_ctl_conf_t *conf, s_p_hashtbl_t *hashtbl)
 			      "incompatible");
 		}
 	}
+#ifdef HAVE_BG
+	if (strcmp(conf->preempt_type, "preempt/none") != 0)
+		fatal("PreemptType incompatable with BlueGene systems");
+	if (conf->preempt_mode != PREEMPT_MODE_OFF)
+		fatal("PreemptMode incompatable with BlueGene systems");
+#endif
 
 	if (s_p_get_string(&temp_str, "PriorityDecayHalfLife", hashtbl)) {
 		int max_time = time_str2mins(temp_str);
-- 
GitLab