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
003c3759
Commit
003c3759
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Minor logic changes for clean AIX build.
parent
f3cf94c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/checkpoint/aix/checkpoint_aix.c
+24
-11
24 additions, 11 deletions
src/plugins/checkpoint/aix/checkpoint_aix.c
with
24 additions
and
11 deletions
src/plugins/checkpoint/aix/checkpoint_aix.c
+
24
−
11
View file @
003c3759
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
#include
"src/common/log.h"
#include
"src/common/log.h"
#include
"src/common/pack.h"
#include
"src/common/pack.h"
#include
"src/common/xassert.h"
#include
"src/common/xmalloc.h"
#include
"src/common/xmalloc.h"
#include
"src/slurmctld/slurmctld.h"
#include
"src/slurmctld/slurmctld.h"
...
@@ -104,20 +105,23 @@ extern int slurm_ckpt_op ( uint16_t op, uint16_t data,
...
@@ -104,20 +105,23 @@ extern int slurm_ckpt_op ( uint16_t op, uint16_t data,
struct
step_record
*
step_ptr
)
struct
step_record
*
step_ptr
)
{
{
int
rc
=
SLURM_SUCCESS
;
int
rc
=
SLURM_SUCCESS
;
struct
check_job_info
*
check_ptr
=
(
struct
check_job_info
*
)
step_ptr
->
check_job
;
xassert
(
check_ptr
);
switch
(
op
)
{
switch
(
op
)
{
case
CHECK_COMPLETE
:
case
CHECK_COMPLETE
:
step_ptr
->
check_job
->
ckpt_errno
=
0
;
check_ptr
->
ckpt_errno
=
0
;
if
(
step_ptr
->
check_job
->
vacate
)
break
;
break
;
case
CHECK_DISABLE
:
case
CHECK_DISABLE
:
step_ptr
->
check_
job
->
disabled
=
1
;
check_
ptr
->
disabled
=
1
;
break
;
break
;
case
CHECK_ENABLE
:
case
CHECK_ENABLE
:
step_ptr
->
check_
job
->
disabled
=
0
;
check_
ptr
->
disabled
=
0
;
break
;
break
;
case
CHECK_FAILED
:
case
CHECK_FAILED
:
step_ptr
->
check_
job
->
ckpt_errno
=
data
;
check_
ptr
->
ckpt_errno
=
data
;
break
;
break
;
case
CHECK_CREATE
:
case
CHECK_CREATE
:
case
CHECK_VACATE
:
case
CHECK_VACATE
:
...
@@ -135,8 +139,11 @@ extern int slurm_ckpt_op ( uint16_t op, uint16_t data,
...
@@ -135,8 +139,11 @@ extern int slurm_ckpt_op ( uint16_t op, uint16_t data,
extern
int
slurm_ckpt_error
(
struct
step_record
*
step_ptr
,
extern
int
slurm_ckpt_error
(
struct
step_record
*
step_ptr
,
uint32_t
*
ckpt_errno
,
char
**
ckpt_strerror
)
uint32_t
*
ckpt_errno
,
char
**
ckpt_strerror
)
{
{
struct
check_job_info
*
check_ptr
=
(
struct
check_job_info
*
)
step_ptr
->
check_job
;
if
(
ckpt_errno
)
if
(
ckpt_errno
)
*
ckpt_errno
=
step_ptr
->
check_
job
->
ckpt_errno
;
*
ckpt_errno
=
check_
ptr
->
ckpt_errno
;
else
else
return
EINVAL
;
return
EINVAL
;
...
@@ -150,7 +157,7 @@ extern int slurm_ckpt_error ( struct step_record * step_ptr,
...
@@ -150,7 +157,7 @@ extern int slurm_ckpt_error ( struct step_record * step_ptr,
extern
int
slurm_ckpt_alloc_job
(
check_jobinfo_t
*
jobinfo
)
extern
int
slurm_ckpt_alloc_job
(
check_jobinfo_t
*
jobinfo
)
{
{
*
jobinfo
=
(
check_jobinfo_t
)
xmalloc
(
sizeof
(
check_jobinfo
_t
));
*
jobinfo
=
(
check_jobinfo_t
)
xmalloc
(
sizeof
(
struct
check_job
_
info
));
return
SLURM_SUCCESS
;
return
SLURM_SUCCESS
;
}
}
...
@@ -162,16 +169,22 @@ extern int slurm_ckpt_free_job(check_jobinfo_t jobinfo)
...
@@ -162,16 +169,22 @@ extern int slurm_ckpt_free_job(check_jobinfo_t jobinfo)
extern
int
slurm_ckpt_pack_job
(
check_jobinfo_t
jobinfo
,
Buf
buffer
)
extern
int
slurm_ckpt_pack_job
(
check_jobinfo_t
jobinfo
,
Buf
buffer
)
{
{
pack16
(
job_info
->
ckpt_errno
,
buffer
);
struct
check_job_info
*
check_ptr
=
pack16
(
job_info
->
disabled
,
buffer
);
(
struct
check_job_info
*
)
jobinfo
;
pack16
(
check_ptr
->
ckpt_errno
,
buffer
);
pack16
(
check_ptr
->
disabled
,
buffer
);
return
SLURM_SUCCESS
;
return
SLURM_SUCCESS
;
}
}
extern
int
slurm_ckpt_unpack_job
(
check_jobinfo_t
jobinfo
,
Buf
buffer
)
extern
int
slurm_ckpt_unpack_job
(
check_jobinfo_t
jobinfo
,
Buf
buffer
)
{
{
safe_unpack16
(
&
jobinfo
->
ckpt_errno
,
buffer
);
struct
check_job_info
*
check_ptr
=
safe_unpack16
(
&
jobinfo
->
disabled
,
buffer
);
(
struct
check_job_info
*
)
jobinfo
;
safe_unpack16
(
&
check_ptr
->
ckpt_errno
,
buffer
);
safe_unpack16
(
&
check_ptr
->
disabled
,
buffer
);
return
SLURM_SUCCESS
;
return
SLURM_SUCCESS
;
...
...
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