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
a95a7fee
Commit
a95a7fee
authored
22 years ago
by
jce
Browse files
Options
Downloads
Patches
Plain Diff
Added pack.c this will eventually contain all the pack code slurmctld
parent
466db4be
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmctld/pack.c
+72
-0
72 additions, 0 deletions
src/slurmctld/pack.c
with
72 additions
and
0 deletions
src/slurmctld/pack.c
0 → 100644
+
72
−
0
View file @
a95a7fee
/*****************************************************************************\
* pack.c - pack slurmctld structures into buffers understood by the
* slurm_protocol
*****************************************************************************
* Copyright (C) 2002 The Regents of the University of California.
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
* Written by moe jette <jette1@llnl.gov>, Joseph Ekstrom (ekstrom1@llnl.gov)
* UCRL-CODE-2002-040.
*
* This file is part of SLURM, a resource management program.
* For details, see <http://www.llnl.gov/linux/slurm/>.
*
* SLURM is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* SLURM is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along
* with SLURM; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
\*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include
<assert.h>
#include
<ctype.h>
#include
<errno.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
<src/common/bitstring.h>
#include
<src/common/list.h>
#include
<src/slurmctld/slurmctld.h>
#define BUF_SIZE 1024
void
pack_ctld_job_step_info
(
struct
step_record
*
step
,
void
**
buf_ptr
,
int
*
buf_len
)
{
char
node_list
[
BUF_SIZE
];
if
(
step
->
node_bitmap
)
bit_fmt
(
node_list
,
BUF_SIZE
,
step
->
node_bitmap
);
else
node_list
[
0
]
=
'\0'
;
pack_job_step_info_members
(
step
->
job_ptr
->
job_id
,
step
->
step_id
,
step
->
job_ptr
->
user_id
,
step
->
start_time
,
step
->
job_ptr
->
partition
,
node_list
,
buf_ptr
,
buf_len
);
}
void
pack_job_step_info_reponse_msg
(
List
steps
)
{
}
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