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
68bd9e5d
Commit
68bd9e5d
authored
15 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
add remove block for bluegene systems and removed alter grid for bluegene systems
parent
0672ce31
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sview/block_info.c
+7
-0
7 additions, 0 deletions
src/sview/block_info.c
src/sview/sview.c
+3
-1
3 additions, 1 deletion
src/sview/sview.c
with
10 additions
and
1 deletion
src/sview/block_info.c
+
7
−
0
View file @
68bd9e5d
...
@@ -147,6 +147,8 @@ static display_data_t options_data_block[] = {
...
@@ -147,6 +147,8 @@ static display_data_t options_data_block[] = {
TRUE
,
ADMIN_PAGE
},
TRUE
,
ADMIN_PAGE
},
{
G_TYPE_STRING
,
BLOCK_PAGE
,
"Put block in free state"
,
{
G_TYPE_STRING
,
BLOCK_PAGE
,
"Put block in free state"
,
TRUE
,
ADMIN_PAGE
},
TRUE
,
ADMIN_PAGE
},
{
G_TYPE_STRING
,
BLOCK_PAGE
,
"Remove block"
,
TRUE
,
ADMIN_PAGE
},
{
G_TYPE_STRING
,
JOB_PAGE
,
"Jobs"
,
TRUE
,
BLOCK_PAGE
},
{
G_TYPE_STRING
,
JOB_PAGE
,
"Jobs"
,
TRUE
,
BLOCK_PAGE
},
{
G_TYPE_STRING
,
PART_PAGE
,
"Partitions"
,
TRUE
,
BLOCK_PAGE
},
{
G_TYPE_STRING
,
PART_PAGE
,
"Partitions"
,
TRUE
,
BLOCK_PAGE
},
{
G_TYPE_STRING
,
NODE_PAGE
,
"Base Partitions"
,
TRUE
,
BLOCK_PAGE
},
{
G_TYPE_STRING
,
NODE_PAGE
,
"Base Partitions"
,
TRUE
,
BLOCK_PAGE
},
...
@@ -766,6 +768,11 @@ extern int update_state_block(GtkDialog *dialog,
...
@@ -766,6 +768,11 @@ extern int update_state_block(GtkDialog *dialog,
"in an error state?"
,
"in an error state?"
,
blockid
);
blockid
);
block_msg
.
state
=
RM_PARTITION_ERROR
;
block_msg
.
state
=
RM_PARTITION_ERROR
;
}
else
if
(
!
strcasecmp
(
"Remove block"
,
type
))
{
snprintf
(
tmp_char
,
sizeof
(
tmp_char
),
"Are you sure you want to remove block %s?"
,
blockid
);
block_msg
.
state
=
RM_PARTITION_NAV
;
}
else
{
}
else
{
snprintf
(
tmp_char
,
sizeof
(
tmp_char
),
snprintf
(
tmp_char
,
sizeof
(
tmp_char
),
"Are you sure you want to put block %s "
"Are you sure you want to put block %s "
...
...
This diff is collapsed.
Click to expand it.
src/sview/sview.c
+
3
−
1
View file @
68bd9e5d
...
@@ -410,7 +410,9 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook)
...
@@ -410,7 +410,9 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook)
" </menu>"
" </menu>"
" <menu action='options'>"
" <menu action='options'>"
" <menuitem action='grid'/>"
" <menuitem action='grid'/>"
#ifndef HAVE_BG
" <menuitem action='grid_specs'/>"
" <menuitem action='grid_specs'/>"
#endif
" <menuitem action='interval'/>"
" <menuitem action='interval'/>"
" <separator/>"
" <separator/>"
" <menuitem action='admin'/>"
" <menuitem action='admin'/>"
...
@@ -502,7 +504,7 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook)
...
@@ -502,7 +504,7 @@ static GtkWidget *_get_menubar_menu(GtkWidget *window, GtkWidget *notebook)
{
"manual"
,
GTK_STOCK_HELP
,
"_Manual"
,
"<control>m"
},
{
"manual"
,
GTK_STOCK_HELP
,
"_Manual"
,
"<control>m"
},
{
"grid_specs"
,
GTK_STOCK_EDIT
,
"Set Grid _Properties"
,
{
"grid_specs"
,
GTK_STOCK_EDIT
,
"Set Grid _Properties"
,
"<control>p"
,
"Change Grid Properties"
,
"<control>p"
,
"Change Grid Properties"
,
G_CALLBACK
(
change_grid_popup
)}
G_CALLBACK
(
change_grid_popup
)}
,
};
};
GtkActionEntry
admin_entries
[]
=
{
GtkActionEntry
admin_entries
[]
=
{
...
...
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