Whamcloud - gitweb
LU-847 quota: client retrieve quota usage directly
authorNiu Yawei <niu@whamcloud.com>
Thu, 15 Sep 2011 03:36:19 +0000 (20:36 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 4 Jan 2012 15:58:42 +0000 (10:58 -0500)
commitfb7c149abff469705f7997d1b7e9f73573bd3442
treed00b807a73fda4e47b2e883fb6ba25b3bf319b3e
parent17a69cf25ed0991e04d85c259f4294dc59734e1e
LU-847 quota: client retrieve quota usage directly

Current 'lfs quota' sends getquota RPC to MDS, and MDS is responsible
for retrieving disk usage from all targets, this scheme will be
changed to client retrieving disk usage from all targets directly.

This patch addresses the compatibility issue as well: If the getquota
returned by MDS has QIF_SPACE, client just trust the disk usage
returned by MDS, otherwise, client has to issue RPCs to all OSTs to
collect disk usage by itself.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Ia94d3b3ba280d5b31d2d3c508412d662f4e95321
Reviewed-on: http://review.whamcloud.com/1382
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/llite/dir.c
lustre/quota/quota_ctl.c
lustre/quota/quota_master.c