Skip to content
Snippets Groups Projects
Commit b93bc036 authored by Morris Jette's avatar Morris Jette
Browse files

Add function to get SlurmdSpooldir config param

parent 55fc5c38
No related branches found
No related tags found
No related merge requests found
...@@ -2333,6 +2333,22 @@ char *slurm_get_job_container_plugin(void) ...@@ -2333,6 +2333,22 @@ char *slurm_get_job_container_plugin(void)
return job_container_plugin; return job_container_plugin;
} }
/* slurm_get_slurmd_spooldir
* RET slurmd_spooldir name, must be xfreed by caller */
char *slurm_get_slurmd_spooldir(void)
{
char *slurmd_spooldir = NULL;
slurm_ctl_conf_t *conf;
if (slurmdbd_conf) {
} else {
conf = slurm_conf_lock();
slurmd_spooldir = xstrdup(conf->slurmd_spooldir);
slurm_conf_unlock();
}
return slurmd_spooldir;
}
/* Change general slurm communication errors to slurmctld specific errors */ /* Change general slurm communication errors to slurmctld specific errors */
static void _remap_slurmctld_errno(void) static void _remap_slurmctld_errno(void)
{ {
......
...@@ -769,6 +769,10 @@ char *slurm_get_core_spec_plugin(void); ...@@ -769,6 +769,10 @@ char *slurm_get_core_spec_plugin(void);
* RET job_container plugin name, must be xfreed by caller */ * RET job_container plugin name, must be xfreed by caller */
char *slurm_get_job_container_plugin(void); char *slurm_get_job_container_plugin(void);
/* slurm_get_slurmd_spooldir
* RET slurmd_spooldir name, must be xfreed by caller */
char *slurm_get_slurmd_spooldir(void);
/**********************************************************************\ /**********************************************************************\
* general message management functions used by slurmctld, slurmd * general message management functions used by slurmctld, slurmd
\**********************************************************************/ \**********************************************************************/
......
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