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
df5dfc47
Commit
df5dfc47
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
tweak logic to set exclusive flag for partition shared parameter
parent
2e380995
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/sview/part_info.c
+16
-9
16 additions, 9 deletions
src/sview/part_info.c
with
16 additions
and
9 deletions
src/sview/part_info.c
+
16
−
9
View file @
df5dfc47
...
@@ -329,6 +329,8 @@ static void _set_active_combo_part(GtkComboBox *combo,
...
@@ -329,6 +329,8 @@ static void _set_active_combo_part(GtkComboBox *combo,
action
=
1
;
action
=
1
;
else
if
(
!
strcmp
(
temp_char
,
"force"
))
else
if
(
!
strcmp
(
temp_char
,
"force"
))
action
=
2
;
action
=
2
;
else
if
(
!
strcmp
(
temp_char
,
"exclusive"
))
action
=
3
;
else
else
action
=
0
;
action
=
0
;
break
;
break
;
...
@@ -439,13 +441,13 @@ static const char *_set_part_msg(update_part_msg_t *part_msg,
...
@@ -439,13 +441,13 @@ static const char *_set_part_msg(update_part_msg_t *part_msg,
break
;
break
;
case
SORTID_SHARE
:
case
SORTID_SHARE
:
if
(
!
strcasecmp
(
new_text
,
"yes"
))
{
if
(
!
strcasecmp
(
new_text
,
"yes"
))
{
part_msg
->
max_share
=
64
;
part_msg
->
max_share
=
4
;
}
else
if
(
!
strcasecmp
(
new_text
,
"no"
))
{
part_msg
->
max_share
=
1
;
}
else
if
(
!
strcasecmp
(
new_text
,
"exclusive"
))
{
}
else
if
(
!
strcasecmp
(
new_text
,
"exclusive"
))
{
part_msg
->
max_share
=
0
;
part_msg
->
max_share
=
0
;
}
else
{
}
else
if
(
!
strcasecmp
(
new_text
,
"force"
))
{
part_msg
->
max_share
=
SHARED_FORCE
|
64
;
part_msg
->
max_share
=
SHARED_FORCE
|
4
;
}
else
{
/* "no" */
part_msg
->
max_share
=
1
;
}
}
type
=
"share"
;
type
=
"share"
;
break
;
break
;
...
@@ -1733,9 +1735,9 @@ extern GtkListStore *create_model_part(int type)
...
@@ -1733,9 +1735,9 @@ extern GtkListStore *create_model_part(int type)
model
=
gtk_list_store_new
(
2
,
G_TYPE_STRING
,
G_TYPE_INT
);
model
=
gtk_list_store_new
(
2
,
G_TYPE_STRING
,
G_TYPE_INT
);
gtk_list_store_append
(
model
,
&
iter
);
gtk_list_store_append
(
model
,
&
iter
);
gtk_list_store_set
(
model
,
&
iter
,
gtk_list_store_set
(
model
,
&
iter
,
0
,
"
yes
"
,
0
,
"
force
"
,
1
,
SORTID_SHARE
,
1
,
SORTID_SHARE
,
-
1
);
-
1
);
gtk_list_store_append
(
model
,
&
iter
);
gtk_list_store_append
(
model
,
&
iter
);
gtk_list_store_set
(
model
,
&
iter
,
gtk_list_store_set
(
model
,
&
iter
,
0
,
"no"
,
0
,
"no"
,
...
@@ -1743,9 +1745,14 @@ extern GtkListStore *create_model_part(int type)
...
@@ -1743,9 +1745,14 @@ extern GtkListStore *create_model_part(int type)
-
1
);
-
1
);
gtk_list_store_append
(
model
,
&
iter
);
gtk_list_store_append
(
model
,
&
iter
);
gtk_list_store_set
(
model
,
&
iter
,
gtk_list_store_set
(
model
,
&
iter
,
0
,
"
force
"
,
0
,
"
yes
"
,
1
,
SORTID_SHARE
,
1
,
SORTID_SHARE
,
-
1
);
-
1
);
gtk_list_store_append
(
model
,
&
iter
);
gtk_list_store_set
(
model
,
&
iter
,
0
,
"exclusive"
,
1
,
SORTID_SHARE
,
-
1
);
break
;
break
;
case
SORTID_GROUPS
:
case
SORTID_GROUPS
:
break
;
break
;
...
...
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