Skip to content
Snippets Groups Projects
Commit 7d6cb0d5 authored by Moe Jette's avatar Moe Jette
Browse files

Modify smap so it shows all nodes and partitions by default (even

nodes that the user can't access, otherwise there are holes in
its maps).
parent f73e9449
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,9 @@ documents those changes that are of interest to users and admins.
=============================
-- Modify sfree (BGL command) so that --all option no longer requires
an argument.
-- Modify smap so it shows all nodes and partitions by default (even
nodess that the user can't access, otherwise there are holes in
its maps).
* Changes in SLURM 0.6.0-pre4
=============================
......
......@@ -81,7 +81,7 @@ extern void get_slurm_part()
if (part_info_ptr) {
error_code = slurm_load_partitions(part_info_ptr->last_update,
&new_part_ptr, 0);
&new_part_ptr, SHOW_ALL);
if (error_code == SLURM_SUCCESS)
slurm_free_partition_info_msg(part_info_ptr);
else if (slurm_get_errno() == SLURM_NO_CHANGE_IN_DATA) {
......@@ -90,7 +90,7 @@ extern void get_slurm_part()
}
} else {
error_code = slurm_load_partitions((time_t) NULL,
&new_part_ptr, 0);
&new_part_ptr, SHOW_ALL);
}
if (error_code) {
if (quiet_flag != 1) {
......@@ -169,7 +169,7 @@ extern void get_bgl_part()
if (part_info_ptr) {
error_code = slurm_load_partitions(part_info_ptr->last_update,
&new_part_ptr, 0);
&new_part_ptr, SHOW_ALL);
if (error_code == SLURM_SUCCESS)
slurm_free_partition_info_msg(part_info_ptr);
else if (slurm_get_errno() == SLURM_NO_CHANGE_IN_DATA) {
......@@ -178,7 +178,7 @@ extern void get_bgl_part()
}
} else {
error_code = slurm_load_partitions((time_t) NULL,
&new_part_ptr, 0);
&new_part_ptr, SHOW_ALL);
}
if (error_code) {
......
......@@ -75,7 +75,7 @@ int main(int argc, char *argv[])
//char *name;
log_init(xbasename(argv[0]), opts, SYSLOG_FACILITY_DAEMON, NULL);
parse_command_line(argc, argv);
while (slurm_load_node((time_t) NULL, &new_node_ptr, 0)) {
while (slurm_load_node((time_t) NULL, &new_node_ptr, SHOW_ALL)) {
error_code = slurm_get_errno();
printf("slurm_load_node: %s\n", slurm_strerror(error_code));
if (params.display == COMMANDS) {
......@@ -254,7 +254,7 @@ part_fini:
if (node_info_ptr) {
error_code = slurm_load_node(
node_info_ptr->last_update,
&new_node_ptr, 0);
&new_node_ptr, SHOW_ALL);
if (error_code == SLURM_SUCCESS)
slurm_free_node_info_msg(
node_info_ptr);
......@@ -265,7 +265,7 @@ part_fini:
}
} else {
error_code = slurm_load_node((time_t) NULL,
&new_node_ptr, 0);
&new_node_ptr, SHOW_ALL);
}
if (error_code && (quiet_flag != 1)) {
if(!params.commandline) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment