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>
Mon, 10 Dec 2012 21:41:41 +0000 (16:41 -0500)
commit54c2151408f30fab8b62a51e02d196cd6b8360f2
tree0676a43bd23bc3cb89b4ea7a04b714662e49bc4c
parent6989d71b0f8046b23c49299914ca1928d3122f73
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>
Signed-off-by: Bob Glossman <bogl@whamcloud.com>
Change-Id: Ia05e588e1a28abd3057274b38684057ecc887f5b
Reviewed-on: http://review.whamcloud.com/2794
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/dir.c
lustre/quota/quota_ctl.c
lustre/quota/quota_master.c