~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to contribs/perlapi/libslurm-perl/conf.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
slurm_ctl_conf_to_hv(slurm_ctl_conf_t* conf, HV* hv)
18
18
{
19
19
        STORE_FIELD(hv, conf, last_update, time_t);
 
20
        STORE_FIELD(hv, conf, accounting_storage_enforce, uint16_t);
 
21
        if(conf->accounting_storage_backup_host)
 
22
                STORE_FIELD(hv, conf, accounting_storage_backup_host, charp);
 
23
        if(conf->accounting_storage_host)
 
24
                STORE_FIELD(hv, conf, accounting_storage_host, charp);
 
25
        if(conf->accounting_storage_loc)
 
26
                STORE_FIELD(hv, conf, accounting_storage_loc, charp);
 
27
        if(conf->accounting_storage_pass)
 
28
                STORE_FIELD(hv, conf, accounting_storage_pass, charp);
 
29
        STORE_FIELD(hv, conf, accounting_storage_port, uint32_t);
 
30
        if(conf->accounting_storage_type)
 
31
                STORE_FIELD(hv, conf, accounting_storage_type, charp);
 
32
        if(conf->accounting_storage_user)
 
33
                STORE_FIELD(hv, conf, accounting_storage_user, charp);
20
34
        if(conf->authtype)
21
35
                STORE_FIELD(hv, conf, authtype, charp);
22
36
        if(conf->backup_addr)
27
41
        STORE_FIELD(hv, conf, cache_groups, uint16_t);
28
42
        if(conf->checkpoint_type)
29
43
                STORE_FIELD(hv, conf, checkpoint_type, charp);
 
44
        if(conf->cluster_name)
 
45
                STORE_FIELD(hv, conf, cluster_name, charp);
30
46
        if(conf->control_addr)
31
47
                STORE_FIELD(hv, conf, control_addr, charp);
32
48
        if(conf->control_machine)
33
49
                STORE_FIELD(hv, conf, control_machine, charp);
34
50
        if(conf->crypto_type)
35
51
                STORE_FIELD(hv, conf, crypto_type, charp);
 
52
        STORE_FIELD(hv, conf, debug_flags, uint32_t);
 
53
        STORE_FIELD(hv, conf, def_mem_per_task, uint32_t);
 
54
        STORE_FIELD(hv, conf, disable_root_jobs, uint16_t);
 
55
        STORE_FIELD(hv, conf, enforce_part_limits, uint16_t);
36
56
        if(conf->epilog)
37
57
                STORE_FIELD(hv, conf, epilog, charp);
 
58
        STORE_FIELD(hv, conf, epilog_msg_time, uint32_t);
 
59
        if(conf->epilog_slurmctld)
 
60
                STORE_FIELD(hv, conf, epilog_slurmctld, charp);
 
61
        STORE_FIELD(hv, conf, fast_schedule, uint16_t);
38
62
        STORE_FIELD(hv, conf, first_job_id, uint32_t);
39
 
        STORE_FIELD(hv, conf, next_job_id, uint32_t);
40
 
        STORE_FIELD(hv, conf, fast_schedule, uint16_t);
 
63
        STORE_FIELD(hv, conf, health_check_interval, uint16_t);
 
64
        if(conf->health_check_program)
 
65
                STORE_FIELD(hv, conf, health_check_program, charp);
41
66
        STORE_FIELD(hv, conf, inactive_limit, uint16_t);
 
67
        STORE_FIELD(hv, conf, job_acct_gather_freq, uint16_t);
42
68
        if(conf->job_acct_gather_type)
43
69
                STORE_FIELD(hv, conf, job_acct_gather_type, charp);
44
 
        STORE_FIELD(hv, conf, job_acct_gather_freq, uint16_t);
45
 
        if(conf->accounting_storage_loc)
46
 
                STORE_FIELD(hv, conf, accounting_storage_loc, charp);
47
 
        if(conf->accounting_storage_type)
48
 
                STORE_FIELD(hv, conf, accounting_storage_type, charp);
49
 
        if(conf->accounting_storage_user)
50
 
                STORE_FIELD(hv, conf, accounting_storage_user, charp);
51
 
        if(conf->accounting_storage_host)
52
 
                STORE_FIELD(hv, conf, accounting_storage_host, charp);
53
 
        if(conf->accounting_storage_pass)
54
 
                STORE_FIELD(hv, conf, accounting_storage_pass, charp);
55
 
        STORE_FIELD(hv, conf, accounting_storage_port, uint32_t);
 
70
        if(conf->job_ckpt_dir)
 
71
                STORE_FIELD(hv, conf, job_ckpt_dir, charp);
 
72
        if(conf->job_comp_host)
 
73
                STORE_FIELD(hv, conf, job_comp_host, charp);
56
74
        if(conf->job_comp_loc)
57
75
                STORE_FIELD(hv, conf, job_comp_loc, charp);
 
76
        if(conf->job_comp_pass)
 
77
                STORE_FIELD(hv, conf, job_comp_pass, charp);
 
78
        STORE_FIELD(hv, conf, job_comp_port, uint32_t);
58
79
        if(conf->job_comp_type)
59
80
                STORE_FIELD(hv, conf, job_comp_type, charp);
60
81
        if(conf->job_comp_user)
61
82
                STORE_FIELD(hv, conf, job_comp_user, charp);
62
 
        if(conf->job_comp_host)
63
 
                STORE_FIELD(hv, conf, job_comp_host, charp);
64
 
        if(conf->job_comp_pass)
65
 
                STORE_FIELD(hv, conf, job_comp_pass, charp);
66
 
        STORE_FIELD(hv, conf, job_comp_port, uint32_t);
 
83
        if(conf->job_credential_private_key)
 
84
                STORE_FIELD(hv, conf, job_credential_private_key, charp);
 
85
        if(conf->job_credential_public_certificate)
 
86
                STORE_FIELD(hv, conf, job_credential_public_certificate, charp);
67
87
        STORE_FIELD(hv, conf, job_file_append, uint16_t); 
 
88
        STORE_FIELD(hv, conf, job_requeue, uint16_t); 
 
89
        STORE_FIELD(hv, conf, kill_on_bad_exit, uint16_t);
68
90
        STORE_FIELD(hv, conf, kill_wait, uint16_t);
 
91
        if(conf->licenses)
 
92
                STORE_FIELD(hv, conf, licenses, charp);
69
93
        if(conf->mail_prog)
70
94
                STORE_FIELD(hv, conf, mail_prog, charp);
71
95
        STORE_FIELD(hv, conf, max_job_cnt, uint16_t);
 
96
        STORE_FIELD(hv, conf, max_mem_per_task, uint32_t);
72
97
        STORE_FIELD(hv, conf, min_job_age, uint16_t);
73
98
        if(conf->mpi_default)
74
99
                STORE_FIELD(hv, conf, mpi_default, charp);
 
100
        if(conf->mpi_params)
 
101
                STORE_FIELD(hv, conf, mpi_params, charp);
75
102
        STORE_FIELD(hv, conf, msg_timeout, uint16_t);
 
103
        STORE_FIELD(hv, conf, next_job_id, uint32_t);
 
104
        if(conf->node_prefix)
 
105
                STORE_FIELD(hv, conf, node_prefix, charp);
 
106
        STORE_FIELD(hv, conf, over_time_limit, uint16_t);
76
107
        if(conf->plugindir)
77
108
                STORE_FIELD(hv, conf, plugindir, charp);
78
109
        if(conf->plugstack)
79
110
                STORE_FIELD(hv, conf, plugstack, charp);
 
111
        STORE_FIELD(hv, conf, priority_decay_hl, uint32_t);
 
112
        STORE_FIELD(hv, conf, priority_favor_small, uint16_t);
 
113
        STORE_FIELD(hv, conf, priority_max_age, uint32_t);
 
114
        STORE_FIELD(hv, conf, priority_reset_period, uint16_t);
 
115
        STORE_FIELD(hv, conf, priority_type, charp);
 
116
        STORE_FIELD(hv, conf, priority_weight_age, uint32_t);
 
117
        STORE_FIELD(hv, conf, priority_weight_fs, uint32_t);
 
118
        STORE_FIELD(hv, conf, priority_weight_js, uint32_t);
 
119
        STORE_FIELD(hv, conf, priority_weight_part, uint32_t);
 
120
        STORE_FIELD(hv, conf, priority_weight_qos, uint32_t);
80
121
        STORE_FIELD(hv, conf, private_data, uint16_t);
81
122
        if(conf->proctrack_type)
82
123
                STORE_FIELD(hv, conf, proctrack_type, charp);
83
124
        if(conf->prolog)
84
125
                STORE_FIELD(hv, conf, prolog, charp);
 
126
        if(conf->prolog_slurmctld)
 
127
                STORE_FIELD(hv, conf, prolog_slurmctld, charp);
85
128
        STORE_FIELD(hv, conf, propagate_prio_process, uint16_t);
86
129
        if(conf->propagate_rlimits)
87
130
                STORE_FIELD(hv, conf, propagate_rlimits, charp);
88
131
        if(conf->propagate_rlimits_except)
89
132
                STORE_FIELD(hv, conf, propagate_rlimits_except, charp);
90
 
        STORE_FIELD(hv, conf, ret2service, uint16_t);
91
133
        STORE_FIELD(hv, conf, resume_rate, uint16_t);
92
134
        if(conf->resume_program)
93
135
                STORE_FIELD(hv, conf, resume_program, charp);
 
136
        STORE_FIELD(hv, conf, resv_over_run, uint16_t);
 
137
        STORE_FIELD(hv, conf, ret2service, uint16_t);
 
138
        if(conf->salloc_default_command)
 
139
                STORE_FIELD(hv, conf, salloc_default_command, charp);
 
140
        if(conf->sched_params)
 
141
                STORE_FIELD(hv, conf, sched_params, charp);
 
142
        STORE_FIELD(hv, conf, sched_time_slice, uint16_t);
94
143
        if(conf->schedtype)
95
144
                STORE_FIELD(hv, conf, schedtype, charp);
96
145
        STORE_FIELD(hv, conf, schedport, uint16_t);
101
150
        STORE_FIELD(hv, conf, slurm_user_id, uint32_t);
102
151
        if(conf->slurm_user_name)
103
152
                STORE_FIELD(hv, conf, slurm_user_name, charp);
 
153
        STORE_FIELD(hv, conf, slurmd_user_id, uint32_t);
 
154
        if(conf->slurmd_user_name)
 
155
                STORE_FIELD(hv, conf, slurmd_user_name, charp);
104
156
        STORE_FIELD(hv, conf, slurmctld_debug, uint16_t);
105
157
        if(conf->slurmctld_logfile)
106
158
                STORE_FIELD(hv, conf, slurmctld_logfile, charp);
111
163
        STORE_FIELD(hv, conf, slurmd_debug, uint16_t);
112
164
        if(conf->slurmd_logfile)
113
165
                STORE_FIELD(hv, conf, slurmd_logfile, charp);
 
166
        if(conf->slurmd_pidfile)
 
167
                STORE_FIELD(hv, conf, slurmd_pidfile, charp);
114
168
        STORE_FIELD(hv, conf, slurmd_port, uint32_t);
115
169
        if(conf->slurmd_spooldir)
116
170
                STORE_FIELD(hv, conf, slurmd_spooldir, charp);
117
 
        if(conf->slurmd_pidfile)
118
 
                STORE_FIELD(hv, conf, slurmd_pidfile, charp);
119
171
        STORE_FIELD(hv, conf, slurmd_timeout, uint16_t);
120
172
        if(conf->slurm_conf)
121
173
                STORE_FIELD(hv, conf, slurm_conf, charp);
 
174
        if(conf->srun_epilog)
 
175
                STORE_FIELD(hv, conf, srun_epilog, charp);
 
176
        if(conf->srun_prolog)
 
177
                STORE_FIELD(hv, conf, srun_prolog, charp);
122
178
        if(conf->state_save_location)
123
179
                STORE_FIELD(hv, conf, state_save_location, charp);
124
180
        if(conf->suspend_exc_nodes)
140
196
                STORE_FIELD(hv, conf, task_prolog, charp);
141
197
        if(conf->tmp_fs)
142
198
                STORE_FIELD(hv, conf, tmp_fs, charp);
143
 
        STORE_FIELD(hv, conf, wait_time, uint16_t);
144
 
        if(conf->job_credential_private_key)
145
 
                STORE_FIELD(hv, conf, job_credential_private_key, charp);
146
 
        if(conf->job_credential_public_certificate)
147
 
                STORE_FIELD(hv, conf, job_credential_public_certificate, charp);
148
 
        if(conf->srun_prolog)
149
 
                STORE_FIELD(hv, conf, srun_prolog, charp);
150
 
        if(conf->srun_epilog)
151
 
                STORE_FIELD(hv, conf, srun_epilog, charp);
152
 
        if(conf->node_prefix)
153
 
                STORE_FIELD(hv, conf, node_prefix, charp);
 
199
        if(conf->topology_plugin)
 
200
                STORE_FIELD(hv, conf, topology_plugin, charp);
 
201
        STORE_FIELD(hv, conf, track_wckey, uint16_t);
154
202
        STORE_FIELD(hv, conf, tree_width, uint16_t);
155
 
        STORE_FIELD(hv, conf, use_pam, uint16_t);
156
203
        if(conf->unkillable_program)
157
204
                STORE_FIELD(hv, conf, unkillable_program, charp);
158
205
        STORE_FIELD(hv, conf, unkillable_timeout, uint16_t);
 
206
        STORE_FIELD(hv, conf, use_pam, uint16_t);
 
207
        STORE_FIELD(hv, conf, wait_time, uint16_t);
159
208
        return 0;
160
209
}
161
210