Whamcloud - gitweb
LU-5170 utils: add lfs df -H for decimal units 71/41271/3
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 20 Jan 2021 00:48:28 +0000 (17:48 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 10 Mar 2021 08:03:13 +0000 (08:03 +0000)
commit7b720df1fbd4136cd1ab8f3fefefd3971b2f7031
treea66575c8b65c0cb6f323d05e74aeb85237096da7
parenta71382df0204fe2cd465eba3873574118f46622b
LU-5170 utils: add lfs df -H for decimal units

Running "lfs df -ih" prints a base-two suffix for inode counts,
which is somewhat unintuitive (e.g. 100000 becomes 97.2K inodes).
While this is consistent with upstream "df", it also has a "-H"
option to print the output with decimal suffixes.

Add the -H/--si option to "lfs df" also.

Document the 'f' (flash) and 'N' (noprecreate) flags for "lfs df".

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I06b8df4ae2940107720e57013bf187b3473ebbe5
Reviewed-on: https://review.whamcloud.com/41271
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs-df.1
lustre/utils/lfs.c