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
05a14864
Commit
05a14864
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
revert a hostname change
parent
c0cb1750
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+1
-0
1 addition, 0 deletions
NEWS
src/common/read_config.c
+16
-8
16 additions, 8 deletions
src/common/read_config.c
with
17 additions
and
8 deletions
NEWS
+
1
−
0
View file @
05a14864
...
@@ -17,6 +17,7 @@ documents those changes that are of interest to users and admins.
...
@@ -17,6 +17,7 @@ documents those changes that are of interest to users and admins.
no job memory limit specified (--mem). Also see DefMemPerTask and
no job memory limit specified (--mem). Also see DefMemPerTask and
MaxMemPerTask in "man slurm.conf". Enforcement is dependent upon job
MaxMemPerTask in "man slurm.conf". Enforcement is dependent upon job
accounting being enabled with non-zero value for JoabAcctGatherFrequency.
accounting being enabled with non-zero value for JoabAcctGatherFrequency.
-- Change default node tmp_disk size to zero (for diskless nodes).
* Changes in SLURM 1.3.0-pre8
* Changes in SLURM 1.3.0-pre8
=============================
=============================
...
...
This diff is collapsed.
Click to expand it.
src/common/read_config.c
+
16
−
8
View file @
05a14864
...
@@ -42,15 +42,14 @@
...
@@ -42,15 +42,14 @@
#include
<assert.h>
#include
<assert.h>
#include
<ctype.h>
#include
<ctype.h>
#include
<errno.h>
#include
<errno.h>
#include
<pthread.h>
#include
<pwd.h>
#include
<pwd.h>
#include
<stdio.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<stdlib.h>
#include
<string.h>
#include
<string.h>
#include
<sys/types.h>
#include
<sys/types.h>
#include
<sys/utsname.h>
#include
<time.h>
#include
<time.h>
#include
<unistd.h>
#include
<unistd.h>
#include
<pthread.h>
#include
<slurm/slurm.h>
#include
<slurm/slurm.h>
...
@@ -1011,18 +1010,27 @@ extern int slurm_conf_get_cpus_sct(const char *node_name,
...
@@ -1011,18 +1010,27 @@ extern int slurm_conf_get_cpus_sct(const char *node_name,
* (e.g. "linux123.foo.bar" becomes "linux123")
* (e.g. "linux123.foo.bar" becomes "linux123")
* OUT name
* OUT name
*/
*/
extern
int
int
gethostname_short
(
char
*
name
,
size_t
len
)
gethostname_short
(
char
*
name
,
size_t
len
)
{
{
struct
utsname
buf
;
int
error_code
,
name_len
;
char
*
dot_ptr
,
path_name
[
1024
];
if
(
uname
(
&
buf
))
error_code
=
gethostname
(
path_name
,
sizeof
(
path_name
));
return
errno
;
if
(
error_code
)
return
error_code
;
dot_ptr
=
strchr
(
path_name
,
'.'
);
if
(
dot_ptr
==
NULL
)
dot_ptr
=
path_name
+
strlen
(
path_name
);
else
dot_ptr
[
0
]
=
'\0'
;
if
(
strlen
(
buf
.
nodename
)
>=
len
)
name_len
=
(
dot_ptr
-
path_name
);
if
(
name_len
>
len
)
return
ENAMETOOLONG
;
return
ENAMETOOLONG
;
strcpy
(
name
,
buf
.
node
name
);
strcpy
(
name
,
path_
name
);
return
0
;
return
0
;
}
}
...
...
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