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
LU-11239 lfs: fix mirror resync error handling
[fs/lustre-release.git]
/
lustre
/
utils
/
liblustreapi_nodemap.c
diff --git
a/lustre/utils/liblustreapi_nodemap.c
b/lustre/utils/liblustreapi_nodemap.c
index
5c2bea7
..
5e25fff
100644
(file)
--- a/
lustre/utils/liblustreapi_nodemap.c
+++ b/
lustre/utils/liblustreapi_nodemap.c
@@
-24,18
+24,18
@@
* Author: Joshua Walgenbach <jjw@iu.edu>
*/
* Author: Joshua Walgenbach <jjw@iu.edu>
*/
+#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <libcfs/libcfs.h>
-#include <lustre/lustreapi.h>
-#include "lustreapi_internal.h"
+#include <libcfs/util/param.h>
int llapi_nodemap_exists(const char *nodemap)
{
int llapi_nodemap_exists(const char *nodemap)
{
- char mapname[PATH_MAX + 1];
+ glob_t param;
+ int rc;
-
snprintf(mapname, sizeof(mapname)
, "nodemap/%s", nodemap);
-
- return
get_param(mapname, NULL, 0)
;
+
rc = cfs_get_param_paths(¶m
, "nodemap/%s", nodemap);
+ cfs_free_param_data(¶m);
+ return
rc != 0 ? 1 : 0
;
}
}