1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * lustre/quota/quota_interface.c
6 * Copyright (c) 2001-2005 Cluster File Systems, Inc.
8 * This file is part of Lustre, http://www.lustre.org.
10 * No redistribution or use is permitted outside of Cluster File Systems, Inc.
14 # define EXPORT_SYMTAB
16 #define DEBUG_SUBSYSTEM S_MDS
19 # include <linux/version.h>
20 # include <linux/module.h>
21 # include <linux/init.h>
22 # include <linux/fs.h>
23 # include <linux/jbd.h>
24 # include <linux/ext3_fs.h>
25 # if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
26 # include <linux/smp_lock.h>
27 # include <linux/buffer_head.h>
28 # include <linux/workqueue.h>
29 # include <linux/mount.h>
31 # include <linux/locks.h>
33 #else /* __KERNEL__ */
34 # include <liblustre.h>
37 #include <obd_class.h>
38 #include <lustre_mds.h>
39 #include <lustre_dlm.h>
40 #include <lustre_cfg.h>
42 #include <lustre_fsfilt.h>
43 #include <lustre_quota.h>
44 #include <lprocfs_status.h>
45 #include "quota_internal.h"
50 /* quota proc file handling functions */
52 int lprocfs_rd_bunit(char *page, char **start, off_t off, int count,
55 struct obd_device *obd = (struct obd_device *)data;
58 return snprintf(page, count, "%lu\n",
59 obd->u.obt.obt_qctxt.lqc_bunit_sz);
61 EXPORT_SYMBOL(lprocfs_rd_bunit);
63 int lprocfs_rd_iunit(char *page, char **start, off_t off, int count,
66 struct obd_device *obd = (struct obd_device *)data;
69 return snprintf(page, count, "%lu\n",
70 obd->u.obt.obt_qctxt.lqc_iunit_sz);
72 EXPORT_SYMBOL(lprocfs_rd_iunit);
74 int lprocfs_wr_bunit(struct file *file, const char *buffer,
75 unsigned long count, void *data)
77 struct obd_device *obd = (struct obd_device *)data;
81 rc = lprocfs_write_helper(buffer, count, &val);
85 if (val % QUOTABLOCK_SIZE ||
86 val <= obd->u.obt.obt_qctxt.lqc_btune_sz)
89 obd->u.obt.obt_qctxt.lqc_bunit_sz = val;
92 EXPORT_SYMBOL(lprocfs_wr_bunit);
94 int lprocfs_wr_iunit(struct file *file, const char *buffer,
95 unsigned long count, void *data)
97 struct obd_device *obd = (struct obd_device *)data;
101 rc = lprocfs_write_helper(buffer, count, &val);
105 if (val <= obd->u.obt.obt_qctxt.lqc_itune_sz)
108 obd->u.obt.obt_qctxt.lqc_iunit_sz = val;
111 EXPORT_SYMBOL(lprocfs_wr_iunit);
113 int lprocfs_rd_btune(char *page, char **start, off_t off, int count,
114 int *eof, void *data)
116 struct obd_device *obd = (struct obd_device *)data;
117 LASSERT(obd != NULL);
119 return snprintf(page, count, "%lu\n",
120 obd->u.obt.obt_qctxt.lqc_btune_sz);
122 EXPORT_SYMBOL(lprocfs_rd_btune);
124 int lprocfs_rd_itune(char *page, char **start, off_t off, int count,
125 int *eof, void *data)
127 struct obd_device *obd = (struct obd_device *)data;
128 LASSERT(obd != NULL);
130 return snprintf(page, count, "%lu\n",
131 obd->u.obt.obt_qctxt.lqc_itune_sz);
133 EXPORT_SYMBOL(lprocfs_rd_itune);
135 int lprocfs_wr_btune(struct file *file, const char *buffer,
136 unsigned long count, void *data)
138 struct obd_device *obd = (struct obd_device *)data;
140 LASSERT(obd != NULL);
142 rc = lprocfs_write_helper(buffer, count, &val);
146 if (val <= QUOTABLOCK_SIZE * MIN_QLIMIT || val % QUOTABLOCK_SIZE ||
147 val >= obd->u.obt.obt_qctxt.lqc_bunit_sz)
150 obd->u.obt.obt_qctxt.lqc_btune_sz = val;
153 EXPORT_SYMBOL(lprocfs_wr_btune);
155 int lprocfs_wr_itune(struct file *file, const char *buffer,
156 unsigned long count, void *data)
158 struct obd_device *obd = (struct obd_device *)data;
160 LASSERT(obd != NULL);
162 rc = lprocfs_write_helper(buffer, count, &val);
166 if (val <= MIN_QLIMIT ||
167 val >= obd->u.obt.obt_qctxt.lqc_iunit_sz)
170 obd->u.obt.obt_qctxt.lqc_itune_sz = val;
173 EXPORT_SYMBOL(lprocfs_wr_itune);
176 #define GROUP_QUOTA 2
178 #define MAX_STYPE_SIZE 5
179 int lprocfs_rd_type(char *page, char **start, off_t off, int count,
180 int *eof, void *data)
182 struct obd_device *obd = (struct obd_device *)data;
183 char stype[MAX_STYPE_SIZE + 1] = "";
184 int type = obd->u.obt.obt_qctxt.lqc_atype;
185 LASSERT(obd != NULL);
188 strcpy(stype, "off");
190 if (type & USER_QUOTA)
192 if (type & GROUP_QUOTA)
196 /* append with quota version on MDS */
197 if (!strcmp(obd->obd_type->typ_name, LUSTRE_MDS_NAME)) {
199 lustre_quota_version_t version;
201 rc = mds_quota_get_version(obd, &version);
206 case LUSTRE_QUOTA_V1:
209 case LUSTRE_QUOTA_V2:
217 return snprintf(page, count, "%s\n", stype);
219 EXPORT_SYMBOL(lprocfs_rd_type);
221 static int auto_quota_on(struct obd_device *obd, int type,
222 struct super_block *sb, int is_master)
224 struct obd_quotactl *oqctl;
225 struct lvfs_run_ctxt saved;
229 LASSERT(type == USRQUOTA || type == GRPQUOTA || type == UGQUOTA);
231 /* quota already turned on */
232 if (obd->u.obt.obt_qctxt.lqc_status)
235 OBD_ALLOC_PTR(oqctl);
239 oqctl->qc_type = type;
240 oqctl->qc_cmd = Q_QUOTAON;
241 oqctl->qc_id = QFMT_LDISKFS;
243 push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
248 /* turn on cluster wide quota */
249 rc = mds_admin_quota_on(obd, oqctl);
251 CDEBUG(rc == -ENOENT ? D_QUOTA : D_ERROR,
252 "auto-enable admin quota failed. rc=%d\n", rc);
256 /* turn on local quota */
257 rc = fsfilt_quotactl(obd, sb, oqctl);
259 CDEBUG(rc == -ENOENT ? D_QUOTA : D_ERROR,
260 "auto-enable local quota failed. rc=%d\n", rc);
262 mds_quota_off(obd, oqctl);
264 obd->u.obt.obt_qctxt.lqc_status = 1;
267 pop_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
273 int lprocfs_wr_type(struct file *file, const char *buffer,
274 unsigned long count, void *data)
276 struct obd_device *obd = (struct obd_device *)data;
277 struct obd_device_target *obt = &obd->u.obt;
280 char stype[MAX_STYPE_SIZE + 1] = "";
281 LASSERT(obd != NULL);
283 if (count > MAX_STYPE_SIZE)
286 if (copy_from_user(stype, buffer, count))
289 for (i = 0 ; i < count ; i++) {
299 /* quota version specifiers */
301 if (strcmp(obd->obd_type->typ_name, LUSTRE_MDS_NAME))
304 rc = mds_quota_set_version(obd, LUSTRE_QUOTA_V1);
306 CDEBUG(D_QUOTA, "failed to set quota v1! %d\n", rc);
311 if (strcmp(obd->obd_type->typ_name, LUSTRE_MDS_NAME))
314 rc = mds_quota_set_version(obd, LUSTRE_QUOTA_V2);
316 CDEBUG(D_QUOTA, "could not set quota v2! %d\n", rc);
320 default : /* just skip stray symbols like \n */
325 obt->obt_qctxt.lqc_atype = type;
330 if (!strcmp(obd->obd_type->typ_name, LUSTRE_MDS_NAME))
331 auto_quota_on(obd, type - 1, obt->obt_sb, 1);
332 else if (!strcmp(obd->obd_type->typ_name, LUSTRE_OST_NAME))
333 auto_quota_on(obd, type - 1, obt->obt_sb, 0);
339 EXPORT_SYMBOL(lprocfs_wr_type);
341 int lprocfs_filter_rd_limit(char *page, char **start, off_t off, int count,
342 int *eof, void *data)
344 struct obd_device *obd = (struct obd_device *)data;
345 LASSERT(obd != NULL);
347 return snprintf(page, count, "%lu\n",
348 obd->u.obt.obt_qctxt.lqc_limit_sz);
350 EXPORT_SYMBOL(lprocfs_filter_rd_limit);
352 int lprocfs_filter_wr_limit(struct file *file, const char *buffer,
353 unsigned long count, void *data)
355 struct obd_device *obd = (struct obd_device *)data;
357 LASSERT(obd != NULL);
359 rc = lprocfs_write_helper(buffer, count, &val);
366 obd->u.obt.obt_qctxt.lqc_limit_sz = val;
369 EXPORT_SYMBOL(lprocfs_filter_wr_limit);
373 static int filter_quota_setup(struct obd_device *obd)
376 struct obd_device_target *obt = &obd->u.obt;
379 atomic_set(&obt->obt_quotachecking, 1);
380 rc = qctxt_init(&obt->obt_qctxt, obt->obt_sb, NULL);
382 CERROR("initialize quota context failed! (rc:%d)\n", rc);
388 static int filter_quota_cleanup(struct obd_device *obd)
390 qctxt_cleanup(&obd->u.obt.obt_qctxt, 0);
394 static int filter_quota_setinfo(struct obd_export *exp, struct obd_device *obd)
396 struct obd_import *imp;
398 /* setup the quota context import */
399 spin_lock(&obd->u.obt.obt_qctxt.lqc_lock);
400 obd->u.obt.obt_qctxt.lqc_import = exp->exp_imp_reverse;
401 spin_unlock(&obd->u.obt.obt_qctxt.lqc_lock);
403 /* make imp's connect flags equal relative exp's connect flags
404 * adding it to avoid the scan export list
406 imp = exp->exp_imp_reverse;
408 imp->imp_connect_data.ocd_connect_flags |=
409 (exp->exp_connect_flags & OBD_CONNECT_QUOTA64);
411 /* start quota slave recovery thread. (release high limits) */
412 qslave_start_recovery(obd, &obd->u.obt.obt_qctxt);
416 static int filter_quota_clearinfo(struct obd_export *exp, struct obd_device *obd)
418 struct lustre_quota_ctxt *qctxt = &obd->u.obt.obt_qctxt;
420 /* when exp->exp_imp_reverse is destroyed, the corresponding lqc_import
421 * should be invalid b=12374 */
422 if (qctxt->lqc_import == exp->exp_imp_reverse) {
423 spin_lock(&qctxt->lqc_lock);
424 qctxt->lqc_import = NULL;
425 spin_unlock(&qctxt->lqc_lock);
431 static int filter_quota_enforce(struct obd_device *obd, unsigned int ignore)
435 if (!sb_any_quota_enabled(obd->u.obt.obt_sb))
439 cap_raise(current->cap_effective, CAP_SYS_RESOURCE);
441 cap_lower(current->cap_effective, CAP_SYS_RESOURCE);
446 static int filter_quota_getflag(struct obd_device *obd, struct obdo *oa)
448 struct obd_device_target *obt = &obd->u.obt;
449 int err, cnt, rc = 0;
450 struct obd_quotactl *oqctl;
453 if (!sb_any_quota_enabled(obt->obt_sb))
456 oa->o_flags &= ~(OBD_FL_NO_USRQUOTA | OBD_FL_NO_GRPQUOTA);
458 OBD_ALLOC_PTR(oqctl);
460 CERROR("Not enough memory!");
464 for (cnt = 0; cnt < MAXQUOTAS; cnt++) {
465 memset(oqctl, 0, sizeof(*oqctl));
467 oqctl->qc_cmd = Q_GETQUOTA;
468 oqctl->qc_type = cnt;
469 oqctl->qc_id = (cnt == USRQUOTA) ? oa->o_uid : oa->o_gid;
470 err = fsfilt_quotactl(obd, obt->obt_sb, oqctl);
477 /* set over quota flags for a uid/gid */
478 oa->o_valid |= (cnt == USRQUOTA) ?
479 OBD_MD_FLUSRQUOTA : OBD_MD_FLGRPQUOTA;
480 if (oqctl->qc_dqblk.dqb_bhardlimit &&
481 (toqb(oqctl->qc_dqblk.dqb_curspace) >
482 oqctl->qc_dqblk.dqb_bhardlimit))
483 oa->o_flags |= (cnt == USRQUOTA) ?
484 OBD_FL_NO_USRQUOTA : OBD_FL_NO_GRPQUOTA;
490 static int filter_quota_acquire(struct obd_device *obd, unsigned int uid,
493 struct lustre_quota_ctxt *qctxt = &obd->u.obt.obt_qctxt;
497 rc = qctxt_adjust_qunit(obd, qctxt, uid, gid, 1, 1);
498 RETURN(rc == -EAGAIN);
501 /* check whether the left quota of certain uid and uid can satisfy a write rpc
502 * when need to acquire quota, return QUOTA_RET_ACQUOTA */
503 static int filter_quota_check(struct obd_device *obd, unsigned int uid,
504 unsigned int gid, int npage)
506 struct lustre_quota_ctxt *qctxt = &obd->u.obt.obt_qctxt;
508 __u32 id[MAXQUOTAS] = { uid, gid };
510 struct qunit_data qdata[MAXQUOTAS];
514 CLASSERT(MAXQUOTAS < 4);
515 if (!sb_any_quota_enabled(qctxt->lqc_sb))
518 for (i = 0; i < MAXQUOTAS; i++) {
519 qdata[i].qd_id = id[i];
520 qdata[i].qd_flags = i;
521 qdata[i].qd_flags |= QUOTA_IS_BLOCK;
522 qdata[i].qd_count = 0;
524 qctxt_wait_pending_dqacq(qctxt, id[i], i, 1);
525 rc = compute_remquota(obd, qctxt, &qdata[i]);
526 limit = npage * CFS_PAGE_SIZE;
527 if (limit < qctxt->lqc_limit_sz )
528 limit = qctxt->lqc_limit_sz;
529 if (rc == QUOTA_RET_OK &&
530 qdata[i].qd_count < limit)
531 RETURN(QUOTA_RET_ACQUOTA);
537 static int mds_quota_init(void)
539 return lustre_dquot_init();
542 static int mds_quota_exit(void)
548 static int mds_quota_setup(struct obd_device *obd)
550 struct obd_device_target *obt = &obd->u.obt;
551 struct mds_obd *mds = &obd->u.mds;
555 mds->mds_quota_info.qi_version = LUSTRE_QUOTA_V2;
556 atomic_set(&obt->obt_quotachecking, 1);
557 /* initialize quota master and quota context */
558 sema_init(&mds->mds_qonoff_sem, 1);
559 rc = qctxt_init(&obt->obt_qctxt, obt->obt_sb, dqacq_handler);
561 CERROR("initialize quota context failed! (rc:%d)\n", rc);
567 static int mds_quota_cleanup(struct obd_device *obd)
569 qctxt_cleanup(&obd->u.obt.obt_qctxt, 0);
573 static int mds_quota_fs_cleanup(struct obd_device *obd)
575 struct mds_obd *mds = &obd->u.mds;
579 /* close admin quota files */
580 down(&mds->mds_qonoff_sem);
581 for (i = 0; i < MAXQUOTAS; i++) {
582 if (mds->mds_quota_info.qi_files[i]) {
583 filp_close(mds->mds_quota_info.qi_files[i], 0);
584 mds->mds_quota_info.qi_files[i] = NULL;
587 up(&mds->mds_qonoff_sem);
590 #endif /* __KERNEL__ */
592 struct osc_quota_info {
593 struct list_head oqi_hash; /* hash list */
594 struct client_obd *oqi_cli; /* osc obd */
595 unsigned int oqi_id; /* uid/gid of a file */
596 short oqi_type; /* quota type */
599 spinlock_t qinfo_list_lock = SPIN_LOCK_UNLOCKED;
601 static struct list_head qinfo_hash[NR_DQHASH];
602 /* SLAB cache for client quota context */
603 cfs_mem_cache_t *qinfo_cachep = NULL;
605 static inline int hashfn(struct client_obd *cli, unsigned long id, int type)
606 __attribute__((__const__));
608 static inline int hashfn(struct client_obd *cli, unsigned long id, int type)
610 unsigned long tmp = ((unsigned long)cli>>6) ^ id;
611 tmp = (tmp * (MAXQUOTAS - type)) % NR_DQHASH;
615 /* caller must hold qinfo_list_lock */
616 static inline void insert_qinfo_hash(struct osc_quota_info *oqi)
618 struct list_head *head = qinfo_hash +
619 hashfn(oqi->oqi_cli, oqi->oqi_id, oqi->oqi_type);
621 LASSERT_SPIN_LOCKED(&qinfo_list_lock);
622 list_add(&oqi->oqi_hash, head);
625 /* caller must hold qinfo_list_lock */
626 static inline void remove_qinfo_hash(struct osc_quota_info *oqi)
628 LASSERT_SPIN_LOCKED(&qinfo_list_lock);
629 list_del_init(&oqi->oqi_hash);
632 /* caller must hold qinfo_list_lock */
633 static inline struct osc_quota_info *find_qinfo(struct client_obd *cli,
634 unsigned int id, int type)
636 unsigned int hashent = hashfn(cli, id, type);
637 struct osc_quota_info *oqi;
639 LASSERT_SPIN_LOCKED(&qinfo_list_lock);
640 list_for_each_entry(oqi, &qinfo_hash[hashent], oqi_hash) {
641 if (oqi->oqi_cli == cli &&
642 oqi->oqi_id == id && oqi->oqi_type == type)
648 static struct osc_quota_info *alloc_qinfo(struct client_obd *cli,
649 unsigned int id, int type)
651 struct osc_quota_info *oqi;
654 OBD_SLAB_ALLOC(oqi, qinfo_cachep, CFS_ALLOC_STD, sizeof(*oqi));
658 INIT_LIST_HEAD(&oqi->oqi_hash);
661 oqi->oqi_type = type;
666 static void free_qinfo(struct osc_quota_info *oqi)
668 OBD_SLAB_FREE(oqi, qinfo_cachep, sizeof(*oqi));
671 int osc_quota_chkdq(struct client_obd *cli,
672 unsigned int uid, unsigned int gid)
675 int cnt, rc = QUOTA_OK;
678 spin_lock(&qinfo_list_lock);
679 for (cnt = 0; cnt < MAXQUOTAS; cnt++) {
680 struct osc_quota_info *oqi = NULL;
682 id = (cnt == USRQUOTA) ? uid : gid;
683 oqi = find_qinfo(cli, id, cnt);
689 spin_unlock(&qinfo_list_lock);
694 int osc_quota_setdq(struct client_obd *cli,
695 unsigned int uid, unsigned int gid,
696 obd_flag valid, obd_flag flags)
704 for (cnt = 0; cnt < MAXQUOTAS; cnt++) {
705 struct osc_quota_info *oqi, *old;
707 if (!(valid & ((cnt == USRQUOTA) ?
708 OBD_MD_FLUSRQUOTA : OBD_MD_FLGRPQUOTA)))
711 id = (cnt == USRQUOTA) ? uid : gid;
712 noquota = (cnt == USRQUOTA) ?
713 (flags & OBD_FL_NO_USRQUOTA) : (flags & OBD_FL_NO_GRPQUOTA);
715 oqi = alloc_qinfo(cli, id, cnt);
717 spin_lock(&qinfo_list_lock);
719 old = find_qinfo(cli, id, cnt);
721 remove_qinfo_hash(old);
722 else if (!old && noquota)
723 insert_qinfo_hash(oqi);
725 spin_unlock(&qinfo_list_lock);
732 CERROR("not enough mem!\n");
741 int osc_quota_cleanup(struct obd_device *obd)
743 struct client_obd *cli = &obd->u.cli;
744 struct osc_quota_info *oqi, *n;
748 spin_lock(&qinfo_list_lock);
749 for (i = 0; i < NR_DQHASH; i++) {
750 list_for_each_entry_safe(oqi, n, &qinfo_hash[i], oqi_hash) {
751 if (oqi->oqi_cli != cli)
753 remove_qinfo_hash(oqi);
757 spin_unlock(&qinfo_list_lock);
762 int osc_quota_init(void)
767 LASSERT(qinfo_cachep == NULL);
768 qinfo_cachep = cfs_mem_cache_create("osc_quota_info",
769 sizeof(struct osc_quota_info),
774 for (i = 0; i < NR_DQHASH; i++)
775 INIT_LIST_HEAD(qinfo_hash + i);
780 int osc_quota_exit(void)
782 struct osc_quota_info *oqi, *n;
786 spin_lock(&qinfo_list_lock);
787 for (i = 0; i < NR_DQHASH; i++) {
788 list_for_each_entry_safe(oqi, n, &qinfo_hash[i], oqi_hash) {
789 remove_qinfo_hash(oqi);
793 spin_unlock(&qinfo_list_lock);
795 rc = cfs_mem_cache_destroy(qinfo_cachep);
796 LASSERTF(rc == 0, "couldn't destory qinfo_cachep slab\n");
803 quota_interface_t mds_quota_interface = {
804 .quota_init = mds_quota_init,
805 .quota_exit = mds_quota_exit,
806 .quota_setup = mds_quota_setup,
807 .quota_cleanup = mds_quota_cleanup,
808 .quota_check = target_quota_check,
809 .quota_ctl = mds_quota_ctl,
810 .quota_fs_cleanup =mds_quota_fs_cleanup,
811 .quota_recovery = mds_quota_recovery,
812 .quota_adjust = mds_quota_adjust,
815 quota_interface_t filter_quota_interface = {
816 .quota_setup = filter_quota_setup,
817 .quota_cleanup = filter_quota_cleanup,
818 .quota_check = target_quota_check,
819 .quota_ctl = filter_quota_ctl,
820 .quota_setinfo = filter_quota_setinfo,
821 .quota_clearinfo = filter_quota_clearinfo,
822 .quota_enforce = filter_quota_enforce,
823 .quota_getflag = filter_quota_getflag,
824 .quota_acquire = filter_quota_acquire,
825 .quota_adjust = filter_quota_adjust,
826 .quota_chkquota = filter_quota_check,
828 #endif /* __KERNEL__ */
830 quota_interface_t mdc_quota_interface = {
831 .quota_ctl = client_quota_ctl,
832 .quota_check = client_quota_check,
833 .quota_poll_check = client_quota_poll_check,
836 quota_interface_t osc_quota_interface = {
837 .quota_ctl = client_quota_ctl,
838 .quota_check = client_quota_check,
839 .quota_poll_check = client_quota_poll_check,
840 .quota_init = osc_quota_init,
841 .quota_exit = osc_quota_exit,
842 .quota_chkdq = osc_quota_chkdq,
843 .quota_setdq = osc_quota_setdq,
844 .quota_cleanup = osc_quota_cleanup,
847 quota_interface_t lov_quota_interface = {
848 .quota_check = lov_quota_check,
849 .quota_ctl = lov_quota_ctl,
853 static int __init init_lustre_quota(void)
855 int rc = qunit_cache_init();
858 PORTAL_SYMBOL_REGISTER(filter_quota_interface);
859 PORTAL_SYMBOL_REGISTER(mds_quota_interface);
860 PORTAL_SYMBOL_REGISTER(mdc_quota_interface);
861 PORTAL_SYMBOL_REGISTER(osc_quota_interface);
862 PORTAL_SYMBOL_REGISTER(lov_quota_interface);
866 static void /*__exit*/ exit_lustre_quota(void)
868 PORTAL_SYMBOL_UNREGISTER(filter_quota_interface);
869 PORTAL_SYMBOL_UNREGISTER(mds_quota_interface);
870 PORTAL_SYMBOL_UNREGISTER(mdc_quota_interface);
871 PORTAL_SYMBOL_UNREGISTER(osc_quota_interface);
872 PORTAL_SYMBOL_UNREGISTER(lov_quota_interface);
874 qunit_cache_cleanup();
877 MODULE_AUTHOR("Cluster File Systems, Inc. <info@clusterfs.com>");
878 MODULE_DESCRIPTION("Lustre Quota");
879 MODULE_LICENSE("GPL");
881 cfs_module(lquota, "1.0.0", init_lustre_quota, exit_lustre_quota);
883 EXPORT_SYMBOL(mds_quota_interface);
884 EXPORT_SYMBOL(filter_quota_interface);
885 EXPORT_SYMBOL(mdc_quota_interface);
886 EXPORT_SYMBOL(osc_quota_interface);
887 EXPORT_SYMBOL(lov_quota_interface);
888 #endif /* __KERNEL */