Whamcloud - gitweb
LU-14398 lfs: use llapi_fid2path_at() in lfs_fid2path()
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 3 Feb 2021 20:17:11 +0000 (14:17 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 6 Mar 2021 20:46:35 +0000 (20:46 +0000)
commitb9e5f0d8f61d8c7801e1193845d33678351778b3
tree352fe822bdeddc342795bbb14e8c735731135d26
parentb6e2cf6045147c311186494be00a8a444651c91c
LU-14398 lfs: use llapi_fid2path_at() in lfs_fid2path()

Use llapi_fid2path_at() in lfs_fid2path(). This avoids resolving and
opening the mount point for each FID argument passed. Make the -c,
--cur, --current option actually print the link. Add a more
descriptive long option name for this (--print-link). Update the
lfs-fid2path manpgae accordingly.

Lustre-change: https://review.whamcloud.com/41407

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: If851e4ce95f87d3188b644eb4a345ba3cfca530d
Reviewed-on: https://review.whamcloud.com/41864
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lustre/doc/lfs-fid2path.1
lustre/utils/lfs.c