Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cc5d54
)
* Added check that network parses OK in llmount.c
author
eeb
<eeb>
Mon, 21 Mar 2005 18:07:54 +0000
(18:07 +0000)
committer
eeb
<eeb>
Mon, 21 Mar 2005 18:07:54 +0000
(18:07 +0000)
lustre/utils/llmount.c
patch
|
blob
|
history
diff --git
a/lustre/utils/llmount.c
b/lustre/utils/llmount.c
index
2195ceb
..
65ace13
100644
(file)
--- a/
lustre/utils/llmount.c
+++ b/
lustre/utils/llmount.c
@@
-287,6
+287,11
@@
int parse_options(char *options, struct lustre_mount_data *lmd, int *flagp)
*opteq = '\0';
if (!strcmp(opt, "nettype")) {
lmd->lmd_nal = ptl_name2nal(opteq + 1);
+ if (lmd->lmd_nal < 0) {
+ fprintf(stderr, "%s: can't parse NET "
+ "%s\n", progname, opteq + 1);
+ return (1);
+ }
} else if(!strcmp(opt, "cluster_id")) {
if (ptl_parse_nid(&cluster_id, opteq+1) != 0) {
fprintf(stderr, "%s: can't parse NID "