From: anserper Date: Tue, 30 Sep 2008 11:56:18 +0000 (+0000) Subject: Branch b1_8_gate X-Git-Tag: v1_7_110~1^56 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ba4243619b2387433ebd4091c83bf6aee4a86940;p=fs%2Flustre-release.git Branch b1_8_gate b=17059 i=ZhiYong Tian i=Johann Lombardi Always build quota support with client --- diff --git a/lustre/quota/quota_ctl.c b/lustre/quota/quota_ctl.c index fb06078..900f1ce 100644 --- a/lustre/quota/quota_ctl.c +++ b/lustre/quota/quota_ctl.c @@ -66,6 +66,7 @@ #include #include "quota_internal.h" +#ifdef HAVE_QUOTA_SUPPORT #ifdef __KERNEL__ int mds_quota_ctl(struct obd_export *exp, struct obd_quotactl *oqctl) { @@ -253,6 +254,7 @@ adjust: RETURN(rc); } #endif /* __KERNEL__ */ +#endif int client_quota_ctl(struct obd_export *exp, struct obd_quotactl *oqctl) { @@ -310,9 +312,12 @@ int lov_quota_ctl(struct obd_export *exp, struct obd_quotactl *oqctl) int i, rc = 0; ENTRY; - if (oqctl->qc_cmd != Q_QUOTAON && oqctl->qc_cmd != Q_QUOTAOFF && - oqctl->qc_cmd != Q_GETOQUOTA && oqctl->qc_cmd != Q_INITQUOTA && - oqctl->qc_cmd != Q_SETQUOTA && oqctl->qc_cmd != Q_FINVALIDATE) { + if (oqctl->qc_cmd != LUSTRE_Q_QUOTAON && + oqctl->qc_cmd != LUSTRE_Q_QUOTAOFF && + oqctl->qc_cmd != Q_GETOQUOTA && + oqctl->qc_cmd != Q_INITQUOTA && + oqctl->qc_cmd != LUSTRE_Q_SETQUOTA && + oqctl->qc_cmd != Q_FINVALIDATE) { CERROR("bad quota opc %x for lov obd", oqctl->qc_cmd); RETURN(-EFAULT); }