Whamcloud - gitweb
LU-13197 misc: handle large files with filefrag 39/37439/6
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 5 Feb 2020 03:54:03 +0000 (20:54 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 24 May 2020 16:05:22 +0000 (16:05 +0000)
commitbd3c5a11044c9427066a0b2a3122787a269ddeb0
tree30b66a66626a0f0411a071f9a5ed74aa20ac97cf
parent4eaf6ab403bbcab0036938ad1a6b9ec6d69734a0
LU-13197 misc: handle large files with filefrag

Avoid overflowing the column-width calc when printing files over 4B blocks.

Document the availability of [KMG] suffixes for the "-b <blocksize>" option.
The blocksize is limited to at most 1GiB blocksize to avoid shifting all of
the extents down to zero GB in size.  Even the use of 1GB blocksize is a bit
tenuous, but some filesystems may multi-GB extents beyond ext4.

Change-Id: I003a721a3d199b1cb8b3912236328eb80b34f0fe
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Reviewed-on: https://review.whamcloud.com/37439
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
misc/filefrag.8.in
misc/filefrag.c