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
70be2b4a
Commit
70be2b4a
authored
9 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
burst_buffer: Move function static
parent
d37629ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/burst_buffer/common/burst_buffer_common.c
+11
-5
11 additions, 5 deletions
src/plugins/burst_buffer/common/burst_buffer_common.c
src/plugins/burst_buffer/common/burst_buffer_common.h
+0
-4
0 additions, 4 deletions
src/plugins/burst_buffer/common/burst_buffer_common.h
with
11 additions
and
9 deletions
src/plugins/burst_buffer/common/burst_buffer_common.c
+
11
−
5
View file @
70be2b4a
...
@@ -70,6 +70,12 @@
...
@@ -70,6 +70,12 @@
/* For possible future use by burst_buffer/generic */
/* For possible future use by burst_buffer/generic */
#define _SUPPORT_GRES 0
#define _SUPPORT_GRES 0
static
void
_bb_job_del2
(
bb_job_t
*
bb_job
);
static
uid_t
*
_parse_users
(
char
*
buf
);
static
int
_persist_match
(
void
*
x
,
void
*
key
);
static
void
_persist_purge
(
void
*
x
);
static
char
*
_print_users
(
uid_t
*
buf
);
/* Translate comma delimitted list of users into a UID array,
/* Translate comma delimitted list of users into a UID array,
* Return value must be xfreed */
* Return value must be xfreed */
static
uid_t
*
_parse_users
(
char
*
buf
)
static
uid_t
*
_parse_users
(
char
*
buf
)
...
@@ -161,7 +167,7 @@ extern void bb_clear_cache(bb_state_t *state_ptr)
...
@@ -161,7 +167,7 @@ extern void bb_clear_cache(bb_state_t *state_ptr)
while
(
job_current
)
{
while
(
job_current
)
{
xassert
(
job_current
->
magic
==
BB_JOB_MAGIC
);
xassert
(
job_current
->
magic
==
BB_JOB_MAGIC
);
job_next
=
job_current
->
next
;
job_next
=
job_current
->
next
;
bb_job_del2
(
job_current
);
_
bb_job_del2
(
job_current
);
job_current
=
job_next
;
job_current
=
job_next
;
}
}
}
}
...
@@ -1086,8 +1092,8 @@ extern bool bb_free_alloc_rec(bb_state_t *state_ptr, bb_alloc_t *bb_alloc)
...
@@ -1086,8 +1092,8 @@ extern bool bb_free_alloc_rec(bb_state_t *state_ptr, bb_alloc_t *bb_alloc)
* -1 for no limit (asynchronous)
* -1 for no limit (asynchronous)
* status OUT - Job exit code
* status OUT - Job exit code
* Return stdout+stderr of spawned program, value must be xfreed. */
* Return stdout+stderr of spawned program, value must be xfreed. */
char
*
bb_run_script
(
char
*
script_type
,
char
*
script_path
,
extern
char
*
bb_run_script
(
char
*
script_type
,
char
*
script_path
,
char
**
script_argv
,
int
max_wait
,
int
*
status
)
char
**
script_argv
,
int
max_wait
,
int
*
status
)
{
{
int
i
,
new_wait
,
resp_size
=
0
,
resp_offset
=
0
;
int
i
,
new_wait
,
resp_size
=
0
,
resp_offset
=
0
;
pid_t
cpid
;
pid_t
cpid
;
...
@@ -1336,7 +1342,7 @@ extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id)
...
@@ -1336,7 +1342,7 @@ extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id)
xassert
(
bb_job
->
magic
==
BB_JOB_MAGIC
);
xassert
(
bb_job
->
magic
==
BB_JOB_MAGIC
);
bb_job
->
magic
=
0
;
bb_job
->
magic
=
0
;
*
bb_pjob
=
bb_job
->
next
;
*
bb_pjob
=
bb_job
->
next
;
bb_job_del2
(
bb_job
);
_
bb_job_del2
(
bb_job
);
return
;
return
;
}
}
bb_pjob
=
&
bb_job
->
next
;
bb_pjob
=
&
bb_job
->
next
;
...
@@ -1345,7 +1351,7 @@ extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id)
...
@@ -1345,7 +1351,7 @@ extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id)
}
}
/* Delete a bb_job_t record. DOES NOT UNLINK FROM HASH TABLE */
/* Delete a bb_job_t record. DOES NOT UNLINK FROM HASH TABLE */
extern
void
bb_job_del2
(
bb_job_t
*
bb_job
)
static
void
_
bb_job_del2
(
bb_job_t
*
bb_job
)
{
{
int
i
;
int
i
;
...
...
This diff is collapsed.
Click to expand it.
src/plugins/burst_buffer/common/burst_buffer_common.h
+
0
−
4
View file @
70be2b4a
...
@@ -279,10 +279,6 @@ extern bb_job_t *bb_job_alloc(bb_state_t *state_ptr, uint32_t job_id);
...
@@ -279,10 +279,6 @@ extern bb_job_t *bb_job_alloc(bb_state_t *state_ptr, uint32_t job_id);
/* Delete a bb_job_t record, hashed by job_id */
/* Delete a bb_job_t record, hashed by job_id */
extern
void
bb_job_del
(
bb_state_t
*
state_ptr
,
uint32_t
job_id
);
extern
void
bb_job_del
(
bb_state_t
*
state_ptr
,
uint32_t
job_id
);
/* Delete a bb_job_t record. DOES NOT UNLINK FROM HASH TABLE */
extern
void
bb_job_del2
(
bb_job_t
*
bb_job
);
//FIXME: DELETE THIS, MAKE STATIC IN COMMON.C
/* Return a pointer to the existing bb_job_t record for a given job_id or
/* Return a pointer to the existing bb_job_t record for a given job_id or
* NULL if not found */
* NULL if not found */
extern
bb_job_t
*
bb_job_find
(
bb_state_t
*
state_ptr
,
uint32_t
job_id
);
extern
bb_job_t
*
bb_job_find
(
bb_state_t
*
state_ptr
,
uint32_t
job_id
);
...
...
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