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, 4 Jan 2012 16:00:07 +0000 (11:00 -0500)
commita9b5457bc7168393803d692a016909528dc07725
treed16165305bbd7bb5e613f43616047d6def1768dc
parentfb7c149abff469705f7997d1b7e9f73573bd3442
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