Whamcloud - gitweb
LU-1842 quota: define quota records for glb/slv indexes
authorJohann Lombardi <johann@whamcloud.com>
Thu, 6 Sep 2012 10:54:13 +0000 (12:54 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Sep 2012 06:56:47 +0000 (02:56 -0400)
commitbd12686ac514c0379eaf2834544b7562739f11f2
treeeb5764080effe81bef99a3b291f264833cba7b12
parent801469af8c31afad1bd8aaa23b01bfc42abe45eb
LU-1842 quota: define quota records for glb/slv indexes

This patch defines lquota_glb_rec & lquota_slv_rec which are the
record which will be used with the global & slave index files.
It also introduces the global quota lu_context_key which will be used
by all quota-level handlers.
The lquota module init/exit function are now defined in lquota_lib.c
which calls the old quota init/exit function for the time being.
Finally, this patch also modifies lquotactl_slv() to collect
enforcement information.

Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Change-Id: I2b261bd8433a5e6bd64c2de2710bca32bf606122
Reviewed-on: http://review.whamcloud.com/3886
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
13 files changed:
lustre/include/dt_object.h
lustre/include/lquota.h
lustre/include/lustre/lustre_idl.h
lustre/obdclass/dt_object.c
lustre/osd-ldiskfs/osd_quota.c
lustre/osd-zfs/osd_quota.c
lustre/ptlrpc/wiretest.c
lustre/quota/lproc_quota.c
lustre/quota/lquota_internal.h
lustre/quota/lquota_lib.c
lustre/quota/quota_interface.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c