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:
e940143
)
some minor changes in lsd upcall.
author
ericm
<ericm>
Mon, 13 Jun 2005 17:45:26 +0000
(17:45 +0000)
committer
ericm
<ericm>
Mon, 13 Jun 2005 17:45:26 +0000
(17:45 +0000)
lustre/utils/lsd_upcall.c
patch
|
blob
|
history
diff --git
a/lustre/utils/lsd_upcall.c
b/lustre/utils/lsd_upcall.c
index
a1fc338
..
9e1f640
100644
(file)
--- a/
lustre/utils/lsd_upcall.c
+++ b/
lustre/utils/lsd_upcall.c
@@
-282,6
+282,16
@@
int parse_perm(__u32 *perm, char *str)
return 0;
}
return 0;
}
+int parse_nid(ptl_nid_t *nidp, char *nid_str)
+{
+ if (!strcmp(nid_str, "*")) {
+ *nidp = PTL_NID_ANY;
+ return 0;
+ }
+
+ return ptl_parse_nid(nidp, nid_str);
+}
+
int get_one_perm(FILE *fp, struct lsd_permission *perm)
{
char nid_str[256], perm_str[256];
int get_one_perm(FILE *fp, struct lsd_permission *perm)
{
char nid_str[256], perm_str[256];
@@
-298,7
+308,7
@@
again:
if (rc != 2)
return -1;
if (rc != 2)
return -1;
- if (p
tl_p
arse_nid(&perm->nid, nid_str))
+ if (parse_nid(&perm->nid, nid_str))
return -1;
if (parse_perm(&perm->perm, perm_str))
return -1;
if (parse_perm(&perm->perm, perm_str))