Whamcloud - gitweb
LU-847 quota: client retrieve quota usage directly
authorNiu Yawei <niu@whamcloud.com>
Fri, 21 Oct 2011 08:30:46 +0000 (01:30 -0700)
committerJohann Lombardi <johann@whamcloud.com>
Thu, 29 Mar 2012 13:31:06 +0000 (09:31 -0400)
commitb7a894819868636e8212b1948cc486a2f43e9c7c
tree37aa18c871e3acff0c878759a9be335666b3e480
parentd1399bd1c1e7523721518079836e4e0fe1b07316
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 collect disk
usage by itself.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Change-Id: I35526c453033809d2f23b1806b4783f5011e3fa2
Reviewed-on: http://review.whamcloud.com/1570
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/llite/dir.c