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-1842 quota: don't setup qsd for standalone MGS
[fs/lustre-release.git]
/
lustre
/
quota
/
qsd_lib.c
diff --git
a/lustre/quota/qsd_lib.c
b/lustre/quota/qsd_lib.c
index
c1ba0c3
..
277791b
100644
(file)
--- a/
lustre/quota/qsd_lib.c
+++ b/
lustre/quota/qsd_lib.c
@@
-450,9
+450,14
@@
struct qsd_instance *qsd_init(const struct lu_env *env, char *svname,
{
struct qsd_thread_info *qti = qsd_info(env);
struct qsd_instance *qsd;
{
struct qsd_thread_info *qti = qsd_info(env);
struct qsd_instance *qsd;
- int rc;
+ int rc
, type, idx
;
ENTRY;
ENTRY;
+ /* only configure qsd for MDT & OST */
+ type = server_name2index(svname, &idx, NULL);
+ if (type != LDD_F_SV_TYPE_MDT && type != LDD_F_SV_TYPE_OST)
+ RETURN(NULL);
+
/* allocate qsd instance */
OBD_ALLOC_PTR(qsd);
if (qsd == NULL)
/* allocate qsd instance */
OBD_ALLOC_PTR(qsd);
if (qsd == NULL)