Whamcloud - gitweb
LU-3383 utils: typo in lfs print_quota() function
authorPatrick Valentin <patrick.valentin@bull.net>
Fri, 24 May 2013 12:14:20 +0000 (14:14 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Aug 2013 05:50:32 +0000 (01:50 -0400)
commit1b5d9b2386e6195f58ff9eb7993311505d8e9b90
tree7d0cfe8b68aa52d6ca3a8356befc968f306219e0
parent58fd145d3c9432da8c1eda6ff20ee7b92ef7f3c1
LU-3383 utils: typo in lfs print_quota() function

In the print_quota() function of 'lfs quota' command, the following
sequence is to determine if the inode grace time is expired:
         if (dqb->dqb_btime > now) {
                 iover = 2;
The test must be done on dqb_itime (inode time), instead of
dqb_btime (data time).

Signed-off-by: Patrick Valentin <patrick.valentin@bull.net>
Change-Id: I1aa9dc9c25ba219ea2272165d21895220a9ef9a7
Reviewed-on: http://review.whamcloud.com/6444
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lfs.c