Whamcloud - gitweb
LU-10705 utils: add "lfs find --blocks" 93/31393/4
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 23 Feb 2018 07:34:22 +0000 (00:34 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Mar 2018 17:37:01 +0000 (17:37 +0000)
commitc043f460253684b69d1afec5f4976dc9a5f5838b
treee320e644c5eb872c3106b63c1b502ca10ba23140
parent305548c41a00e189262abdd27fa00f5f1dd5a16a
LU-10705 utils: add "lfs find --blocks"

Add support for "lfs find --blocks|-b <block>" to be able to find
files with the specified number of allocated blocks (in kilobytes or
other specified units). This is distinct from "--size <size>" since
that doesn't properly check the space used for sparse files.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I7d48f919d95242c11ef7d3075ecc3f7e963ebbe5
Reviewed-on: https://review.whamcloud.com/31393
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/doc/lfs-find.1
lustre/include/lustre/lustreapi.h
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c