Whamcloud - gitweb
LU-805 quota: lfs quota doesn't print grace time correctly
authorNiu Yawei <niu@whamcloud.com>
Tue, 8 Nov 2011 13:07:05 +0000 (05:07 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Mar 2012 03:56:55 +0000 (23:56 -0400)
commitfb46538ed943f8d9612ec05d6e97a8ed10e248fe
tree37310506086be7c432c4ffd2ac4403dee41235d3
parentdcf1b2e6e2f22935f823cb7610b33b8f9c3ef155
LU-805 quota: lfs quota doesn't print grace time correctly

Lustre always trigger grace time when the allocated qunit exceeding
softlimit, however, user tools 'lfs quota' only print grace time
when the total usage greater than softlimit, so sometimes user can't
tell if the softlimit is already exceeded from 'lfs quota' output.

This patch changes the 'lfs quota' to use the data get from kernel
instead of comparing usage with softlimit.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Ia564c803ca33b2cf925759b6a6e4e4df2692f28d
Reviewed-on: http://review.whamcloud.com/1674
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lfs.c