From 7028efa4a2124b20dc677b1ce3b7fc895347b774 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Fri, 12 May 2006 18:25:26 +0000
Subject: [PATCH] Add descriptive comment, no change in logic.

---
 src/srun/allocate.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/srun/allocate.c b/src/srun/allocate.c
index 4d352b6f097..ba19b0a5bbc 100644
--- a/src/srun/allocate.c
+++ b/src/srun/allocate.c
@@ -119,11 +119,18 @@ allocate_nodes(void)
 			info("Warning: %s", slurm_strerror(resp->error_code));
 		_wait_for_resources(&resp);
 	}
+	/* For diagnosing a node problem, administrators need to sometimes
+	 * run a job on N nodes one of which must be the node believed to 
+	 * have a problem (e.g. "srun -N4 -w bad_node diagnostic"). The 
+	 * below logic prevents this from working and necessiates the 
+	 * admin identify four specific nodes to use for the above test
+	 * instead of just the one bad node. Otherwise only the one 
+	 * bad node is used in the job's allocation. */
 	if(resp->node_list && j->req_nodes) {
 		xfree(resp->node_list);
 		resp->node_list = xstrdup(j->req_nodes);
 	}
-	
+
     done:
 	xsignal_set_mask(&oset);
 	xsignal(SIGINT,  ointf);
-- 
GitLab