Hi there,

As far as I understand, when Slurm starts and reads its configuration file, it does not set the default flag on the default partition.

Attached is a patch to correct this.

Regards,
--
Rémi Palancher
http://rezib.org
From 5bcbac3b0a5861807e2f5796ee13bda503a7dcb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Palancher?= <r...@rezib.org>
Date: Tue, 24 Jan 2012 16:03:48 +0100
Subject: [PATCH] default flag on partition not set on startup
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The 'default' flag was not set on partitions when Slurm reads
configuration file on startup.

This patch corrects this.

Signed-off-by: Rémi Palancher <r...@rezib.org>
---
 src/slurmctld/read_config.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/slurmctld/read_config.c b/src/slurmctld/read_config.c
index 91831d9..d9223bb 100644
--- a/src/slurmctld/read_config.c
+++ b/src/slurmctld/read_config.c
@@ -507,6 +507,7 @@ static int 
_build_single_partitionline_info(slurm_conf_partition_t *part)
                xfree(default_part_name);
                default_part_name = xstrdup(part->name);
                default_part_loc = part_ptr;
+               part_ptr->flags |= PART_FLAG_DEFAULT;
        }
 
        if (part->preempt_mode != (uint16_t) NO_VAL)
-- 
1.7.2.5

Reply via email to