Whamcloud - gitweb
filefrag: minor usability improvements
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 10 Mar 2021 22:47:15 +0000 (15:47 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 2 Apr 2021 20:04:38 +0000 (16:04 -0400)
commit612358c193cee465de99000c009a84a4cf371f9a
tree3975471c550ba61590f83803d9bdb6fbdc918c49
parentb5bdc0432f064c10db6bb6fa1b5f370b3c1f0f2c
filefrag: minor usability improvements

Add '-V' to filefrag to print the installed version of the tool.

If '-V' is used twice, print out the list of supported FIEMAP flags.
This can be used to check if filefrag understands a specific feature.

Include FIEMAP in the error message printed when filefrag cannot
get the file layout. Since FIEMAP is commonly available and tried
first, it should also be mentioned in the error message unless it
was requested to only run FIBMAP.

Update filefrag.1.in man page to cover the new -V option.

Fix a formatting error with the recently added '-P' options, and
include '-E' and '-P' in the SYNOPSIS section.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Lustre-bug-id: https://jira.whamcloud.com/browse/LU-11848
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Change-Id: Ib126bdd70efa1775aef6db761f54e27a593ebbe5
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/filefrag.8.in
misc/filefrag.c