Whamcloud - gitweb
LU-1182 ofd: add space accounting support
authorJohann Lombardi <johann@whamcloud.com>
Mon, 25 Jun 2012 23:57:54 +0000 (01:57 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 29 Jun 2012 22:00:09 +0000 (18:00 -0400)
commit52c95d51f1906d4d838dec3419e39457a8e17824
tree7ba1f42355814ad7af0ca32a4d498542e2bd8246
parentc03783fce46ae0b40db0680388df6e2d6fca5008
LU-1182 ofd: add space accounting support

Add space accounting support to OFD. This is done by calling into the
lquota library which looks up space usage via the accounting objects.
Report success on quotacheck, quotaon & quotaoff for the time being,
otherwise space accounting can't be tested with current MDT stack
which requires quotacheck to be run for space accounting to be
enabled.

Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Change-Id: I442f3d1bcc9e7c95bb3f505f7a00665419d0f517
Reviewed-on: http://review.whamcloud.com/3186
Tested-by: Hudson
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ofd/lproc_ofd.c
lustre/ofd/ofd_obd.c