Skip to content
Snippets Groups Projects
Commit 916fcb83 authored by Carlos Tripiana Montes's avatar Carlos Tripiana Montes Committed by Danny Auble
Browse files

job_container/tmpfs: logic from container_p_create to its own function

In preparation for subsequent changes.

No functional change.

Bug 11093
parent fe8462a3
No related branches found
No related tags found
No related merge requests found
...@@ -318,7 +318,7 @@ static int _rm_data(const char *path, const struct stat *st_buf, ...@@ -318,7 +318,7 @@ static int _rm_data(const char *path, const struct stat *st_buf,
return 0; return 0;
} }
extern int container_p_create(uint32_t job_id) static int _create_ns(uint32_t job_id)
{ {
char job_mount[PATH_MAX]; char job_mount[PATH_MAX];
char ns_holder[PATH_MAX]; char ns_holder[PATH_MAX];
...@@ -558,6 +558,11 @@ exit2: ...@@ -558,6 +558,11 @@ exit2:
return rc; return rc;
} }
extern int container_p_create(uint32_t job_id)
{
return _create_ns(job_id);
}
/* Add a process to a job container, create the proctrack container to add */ /* Add a process to a job container, create the proctrack container to add */
extern int container_p_join_external(uint32_t job_id) extern int container_p_join_external(uint32_t job_id)
{ {
......
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