Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
e5c8de12
Commit
e5c8de12
authored
12 years ago
by
Morris Jette
Browse files
Options
Downloads
Plain Diff
Merge branch 'slurm-2.5'
parents
2993b423
2af5ce33
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NEWS
+1
-0
1 addition, 0 deletions
NEWS
src/common/slurm_protocol_defs.c
+9
-4
9 additions, 4 deletions
src/common/slurm_protocol_defs.c
src/sinfo/print.c
+22
-5
22 additions, 5 deletions
src/sinfo/print.c
src/slurmctld/reservation.c
+1
-0
1 addition, 0 deletions
src/slurmctld/reservation.c
with
33 additions
and
9 deletions
NEWS
+
1
−
0
View file @
e5c8de12
...
...
@@ -25,6 +25,7 @@ documents those changes that are of interest to users and admins.
* Changes in SLURM 2.5.2
========================
-- Fix advanced reservation recovery logic when upgrading from version 2.4.
* Changes in SLURM 2.5.1
========================
...
...
This diff is collapsed.
Click to expand it.
src/common/slurm_protocol_defs.c
+
9
−
4
View file @
e5c8de12
...
...
@@ -1483,9 +1483,12 @@ extern char *node_state_string(uint16_t inx)
bool
power_up_flag
=
(
inx
&
NODE_STATE_POWER_UP
);
if
(
maint_flag
)
{
if
(
no_resp_flag
)
if
((
base
==
NODE_STATE_ALLOCATED
)
||
(
base
==
NODE_STATE_MIXED
))
;
else
if
(
no_resp_flag
)
return
"MAINT*"
;
if
(
base
!=
NODE_STATE_ALLOCATED
)
else
return
"MAINT"
;
}
if
(
drain_flag
)
{
...
...
@@ -1601,9 +1604,11 @@ extern char *node_state_string_compact(uint16_t inx)
inx
=
(
uint16_t
)
(
inx
&
NODE_STATE_BASE
);
if
(
maint_flag
)
{
if
(
no_resp_flag
)
if
((
inx
==
NODE_STATE_ALLOCATED
)
||
(
inx
==
NODE_STATE_MIXED
))
;
else
if
(
no_resp_flag
)
return
"MAINT*"
;
if
(
inx
!=
NODE_STATE_ALLOCATED
)
else
return
"MAINT"
;
}
if
(
drain_flag
)
{
...
...
This diff is collapsed.
Click to expand it.
src/sinfo/print.c
+
22
−
5
View file @
e5c8de12
...
...
@@ -988,10 +988,18 @@ int _print_size(sinfo_data_t * sinfo_data, int width,
int
_print_state_compact
(
sinfo_data_t
*
sinfo_data
,
int
width
,
bool
right_justify
,
char
*
suffix
)
{
char
*
upper_state
,
*
lower_state
;
uint16_t
my_state
;
if
(
sinfo_data
&&
sinfo_data
->
nodes_total
)
{
char
*
upper_state
=
node_state_string_compact
(
sinfo_data
->
node_state
);
char
*
lower_state
=
_str_tolower
(
upper_state
);
my_state
=
sinfo_data
->
node_state
;
if
(
sinfo_data
->
cpus_alloc
&&
(
sinfo_data
->
cpus_alloc
!=
sinfo_data
->
cpus_total
))
{
my_state
&=
NODE_STATE_FLAGS
;
my_state
|=
NODE_STATE_MIXED
;
}
upper_state
=
node_state_string_compact
(
my_state
);
lower_state
=
_str_tolower
(
upper_state
);
_print_str
(
lower_state
,
width
,
right_justify
,
true
);
xfree
(
lower_state
);
}
else
if
(
sinfo_data
)
...
...
@@ -1007,9 +1015,18 @@ int _print_state_compact(sinfo_data_t * sinfo_data, int width,
int
_print_state_long
(
sinfo_data_t
*
sinfo_data
,
int
width
,
bool
right_justify
,
char
*
suffix
)
{
char
*
upper_state
,
*
lower_state
;
uint16_t
my_state
;
if
(
sinfo_data
&&
sinfo_data
->
nodes_total
)
{
char
*
upper_state
=
node_state_string
(
sinfo_data
->
node_state
);
char
*
lower_state
=
_str_tolower
(
upper_state
);
my_state
=
sinfo_data
->
node_state
;
if
(
sinfo_data
->
cpus_alloc
&&
(
sinfo_data
->
cpus_alloc
!=
sinfo_data
->
cpus_total
))
{
my_state
&=
NODE_STATE_FLAGS
;
my_state
|=
NODE_STATE_MIXED
;
}
upper_state
=
node_state_string
(
my_state
);
lower_state
=
_str_tolower
(
upper_state
);
_print_str
(
lower_state
,
width
,
right_justify
,
true
);
xfree
(
lower_state
);
}
else
if
(
sinfo_data
)
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/reservation.c
+
1
−
0
View file @
e5c8de12
...
...
@@ -1322,6 +1322,7 @@ slurmctld_resv_t *_load_reservation_state(Buf buffer,
safe_unpack_time
(
&
resv_ptr
->
start_time
,
buffer
);
safe_unpack8
((
uint8_t
*
)
&
resv_ptr
->
user_not
,
buffer
);
}
else
{
resv_ptr
->
full_nodes
=
1
;
/* Added in v2.5 */
safe_unpackstr_xmalloc
(
&
resv_ptr
->
accounts
,
&
uint32_tmp
,
buffer
);
safe_unpack_time
(
&
resv_ptr
->
end_time
,
buffer
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment