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

« back to all changes in this revision

Viewing changes to src/plugins/checkpoint/none/checkpoint_none.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:
1
1
/*****************************************************************************\
2
2
 *  checkpoint_none.c - NO-OP slurm checkpoint plugin.
3
3
 *****************************************************************************
4
 
 *  Copyright (C) 2004 The Regents of the University of California.
 
4
 *  Copyright (C) 2004-2007 The Regents of the University of California.
 
5
 *  Copyright (C) 2008-2009 Lawrence Livermore National Security.
5
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
6
7
 *  Written by Morris Jette <jette1@llnl.gov>
7
 
 *  LLNL-CODE-402394.
 
8
 *  CODE-OCEC-09-009. All rights reserved.
8
9
 *  
9
10
 *  This file is part of SLURM, a resource management program.
10
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
11
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
12
 *  Please also read the included file: DISCLAIMER.
11
13
 *  
12
14
 *  SLURM is free software; you can redistribute it and/or modify it under
13
15
 *  the terms of the GNU General Public License as published by the Free
82
84
 */
83
85
const char plugin_name[]        = "Checkpoint NONE plugin";
84
86
const char plugin_type[]        = "checkpoint/none";
85
 
const uint32_t plugin_version   = 90;
 
87
const uint32_t plugin_version   = 100;
86
88
 
87
89
/*
88
90
 * init() is called when the plugin is loaded, before any other functions
102
104
 * The remainder of this file implements the standard SLURM checkpoint API.
103
105
 */
104
106
 
105
 
extern int slurm_ckpt_op ( uint16_t op, uint16_t data,
106
 
                struct step_record * step_ptr, time_t * event_time,
107
 
                uint32_t *error_code, char **error_msg )
 
107
extern int slurm_ckpt_op (uint32_t job_id, uint32_t step_id, 
 
108
                          struct step_record *step_ptr, uint16_t op,
 
109
                          uint16_t data, char *image_dir, time_t * event_time, 
 
110
                          uint32_t *error_code, char **error_msg )
108
111
{
109
112
        return ESLURM_NOT_SUPPORTED;
110
113
}
111
114
 
112
 
extern int slurm_ckpt_comp ( struct step_record * step_ptr, time_t event_time,
 
115
extern int slurm_ckpt_comp (struct step_record * step_ptr, time_t event_time,
113
116
                uint32_t error_code, char *error_msg)
114
117
{
115
118
        return ESLURM_NOT_SUPPORTED;
135
138
        return SLURM_SUCCESS;
136
139
}
137
140
 
138
 
extern int slurm_ckpt_task_comp ( struct step_record * step_ptr, uint32_t task_id,
139
 
                                  time_t event_time, uint32_t error_code, char *error_msg )
140
 
{
141
 
        return SLURM_SUCCESS;
142
 
}
143
 
 
 
141
extern int slurm_ckpt_task_comp (struct step_record * step_ptr, 
 
142
                                 uint32_t task_id, time_t event_time, 
 
143
                                 uint32_t error_code, char *error_msg )
 
144
{
 
145
        return SLURM_SUCCESS;
 
146
}
 
147
 
 
148
extern int slurm_ckpt_stepd_prefork(void *slurmd_job)
 
149
{
 
150
        return SLURM_SUCCESS;
 
151
}
 
152
 
 
153
extern int slurm_ckpt_signal_tasks(void *slurmd_job)
 
154
{
 
155
        return ESLURM_NOT_SUPPORTED;
 
156
}
 
157
 
 
158
extern int slurm_ckpt_restart_task(void *slurmd_job, char *image_dir, int gtid)
 
159
{
 
160
        return ESLURM_NOT_SUPPORTED;
 
161
}