Whamcloud - gitweb
LU-4028 quota: fix output of 'lfs quota' 12/10412/2
authorNiu Yawei <yawei.niu@intel.com>
Wed, 27 Nov 2013 03:27:01 +0000 (22:27 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 27 May 2014 15:45:55 +0000 (15:45 +0000)
commit499a4627b70d8b5fabd7e4cf2119a5c99bed4282
tree8aebebc3fa71ec7c5c286f92867a36f05b417399
parentac76646e4b9fe0e49a9dca8aed3b221d176a39cd
LU-4028 quota: fix output of 'lfs quota'

Fix the output of 'lfs quota' when '-h' option is specified:
- total allocated block limit should be converted after calculation;
- show 1~3 digit after the decimal point;

Lustre-commit: 69dda0cf5fb34a1a7ff93468ca1c155dd3a53060
Lustre-change: http://review.whamcloud.com/8407

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ibed84a73b87cf741c9122216dc8c45f3a33a78d8
Reviewed-on: http://review.whamcloud.com/10412
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-quota.sh
lustre/utils/lfs.c