Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
eb553c25
Commit
eb553c25
authored
22 years ago
by
Robert Read
Browse files
Options
Downloads
Patches
Plain Diff
* print a message when a duplicate mds or lov name is used
parent
cbaef60d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lustre/utils/lmc
+10
-1
10 additions, 1 deletion
lustre/utils/lmc
with
10 additions
and
1 deletion
lustre/utils/lmc
+
10
−
1
View file @
eb553c25
...
@@ -113,6 +113,10 @@ def error(*args):
...
@@ -113,6 +113,10 @@ def error(*args):
print
"
Error:
"
,
msg
print
"
Error:
"
,
msg
sys
.
exit
(
1
)
sys
.
exit
(
1
)
def
warning
(
*
args
):
msg
=
string
.
join
(
map
(
str
,
args
))
print
"
Warning:
"
,
msg
#
#
# manage names and uuids
# manage names and uuids
# need to initialize this by walking tree to ensure
# need to initialize this by walking tree to ensure
...
@@ -481,6 +485,8 @@ def add_mds(gen, lustre, options, args):
...
@@ -481,6 +485,8 @@ def add_mds(gen, lustre, options, args):
error
(
"
--mds requires a --node argument
"
)
error
(
"
--mds requires a --node argument
"
)
mds_name
=
new_name
(
options
[
'
mds
'
])
mds_name
=
new_name
(
options
[
'
mds
'
])
if
mds_name
!=
options
[
'
mds
'
]:
warning
(
"
name:
"
,
options
[
'
mds
'
],
"
already used. using:
"
,
mds_name
)
devname
=
args
[
0
]
devname
=
args
[
0
]
if
len
(
args
)
>
1
:
if
len
(
args
)
>
1
:
size
=
args
[
1
]
size
=
args
[
1
]
...
@@ -585,7 +591,10 @@ def add_lov(gen, lustre, options, args):
...
@@ -585,7 +591,10 @@ def add_lov(gen, lustre, options, args):
if
len
(
args
)
<
4
:
if
len
(
args
)
<
4
:
usage
()
usage
()
name
=
options
[
'
lov
'
]
name
=
new_name
(
options
[
'
lov
'
])
if
name
!=
options
[
'
lov
'
]:
warning
(
"
name:
"
,
options
[
'
lov
'
],
"
already used. using:
"
,
name
)
mds_name
=
args
[
0
]
mds_name
=
args
[
0
]
stripe_sz
=
args
[
1
]
stripe_sz
=
args
[
1
]
stripe_count
=
args
[
2
]
stripe_count
=
args
[
2
]
...
...
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