Whamcloud - gitweb
LU-7506 lfs: "lfs quota -h" should support petabytes output 41/17441/6
authorEmoly Liu <emoly.liu@intel.com>
Fri, 25 Dec 2015 07:28:01 +0000 (15:28 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 7 Jan 2016 00:56:07 +0000 (00:56 +0000)
commit1dbf71d8faaaf0c933f47c5d81871fe3f3fdcf43
tree971cb8ec535572f5c7b0c450def963e406b125c1
parentc683c00408bc56bb68ab44d8bd21eaceb75fe86a
LU-7506 lfs: "lfs quota -h" should support petabytes output

This patch adds human-readable petabytes output and allows to set
fraction block limit, e.g. 1.5P.
Also, it adds sanity-quota.sh test_27d to verify these new functions,
and replaces some sprintf() with snprintf() to meet the code style
requirement.

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I1dced352687e8e53988f85d2781396e647b62865
Reviewed-on: http://review.whamcloud.com/17441
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity-quota.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c