Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
b=22455 fix the problem in get_param with option "-N"
[fs/lustre-release.git]
/
lustre
/
utils
/
lustre_cfg.c
diff --git
a/lustre/utils/lustre_cfg.c
b/lustre/utils/lustre_cfg.c
index
4b527d0
..
9079242
100644
(file)
--- a/
lustre/utils/lustre_cfg.c
+++ b/
lustre/utils/lustre_cfg.c
@@
-647,10
+647,10
@@
static void clean_path(char *path)
}
struct param_opts {
}
struct param_opts {
- int only_path;
- int show_path;
- int show_type;
- int recursive;
+ int only_path
:1
;
+ int show_path
:1
;
+ int show_type
:1
;
+ int recursive
:1
;
};
static int listparam_cmdline(int argc, char **argv, struct param_opts *popt)
};
static int listparam_cmdline(int argc, char **argv, struct param_opts *popt)
@@
-766,6
+766,7
@@
static int getparam_cmdline(int argc, char **argv, struct param_opts *popt)
popt->show_path = 1;
popt->only_path = 0;
popt->show_type = 0;
popt->show_path = 1;
popt->only_path = 0;
popt->show_type = 0;
+ popt->recursive = 0;
while ((ch = getopt(argc, argv, "nNF")) != -1) {
switch (ch) {
while ((ch = getopt(argc, argv, "nNF")) != -1) {
switch (ch) {
@@
-905,6
+906,7
@@
static int setparam_cmdline(int argc, char **argv, struct param_opts *popt)
popt->show_path = 1;
popt->only_path = 0;
popt->show_type = 0;
popt->show_path = 1;
popt->only_path = 0;
popt->show_type = 0;
+ popt->recursive = 0;
while ((ch = getopt(argc, argv, "n")) != -1) {
switch (ch) {
while ((ch = getopt(argc, argv, "n")) != -1) {
switch (ch) {