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
add cvsignore to tests/mpi
[fs/lustre-release.git]
/
lustre
/
liblustre
/
lutil.c
diff --git
a/lustre/liblustre/lutil.c
b/lustre/liblustre/lutil.c
index
0de50cf
..
ba0fd2f
100644
(file)
--- a/
lustre/liblustre/lutil.c
+++ b/
lustre/liblustre/lutil.c
@@
-77,14
+77,14
@@
void *inter_module_get(char *arg)
return ldlm_namespace_cleanup;
else if (!strcmp(arg, "ldlm_replay_locks"))
return ldlm_replay_locks;
return ldlm_namespace_cleanup;
else if (!strcmp(arg, "ldlm_replay_locks"))
return ldlm_replay_locks;
-#ifdef HAVE_QUOTA_SUPPORT
- else if (!strcmp(arg, "osc_quota_interface"))
- return &osc_quota_interface;
else if (!strcmp(arg, "mdc_quota_interface"))
return &mdc_quota_interface;
else if (!strcmp(arg, "mdc_quota_interface"))
return &mdc_quota_interface;
+ else if (!strcmp(arg, "lmv_quota_interface"))
+ return &lmv_quota_interface;
+ else if (!strcmp(arg, "osc_quota_interface"))
+ return &osc_quota_interface;
else if (!strcmp(arg, "lov_quota_interface"))
return &lov_quota_interface;
else if (!strcmp(arg, "lov_quota_interface"))
return &lov_quota_interface;
-#endif
else
return NULL;
}
else
return NULL;
}
@@
-129,6
+129,7
@@
void liblustre_init_random()
if (syscall(SYS_read, _rand_dev_fd,
&seed, sizeof(seed)) == sizeof(seed)) {
ll_srand(seed[0], seed[1]);
if (syscall(SYS_read, _rand_dev_fd,
&seed, sizeof(seed)) == sizeof(seed)) {
ll_srand(seed[0], seed[1]);
+ syscall(SYS_close, _rand_dev_fd);
return;
}
syscall(SYS_close, _rand_dev_fd);
return;
}
syscall(SYS_close, _rand_dev_fd);