Whamcloud - gitweb
LU-14398 lfs: use llapi_fid2path_at() in lfs_fid2path() 07/41407/4
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 3 Feb 2021 20:17:11 +0000 (14:17 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 6 Mar 2021 02:35:33 +0000 (02:35 +0000)
commit2e3d236f8c998248b0a37c99c94cece7e82188f7
tree48c2e923cb78d833f5ef031831ea613f4141d6b3
parent0d30fcca8a6ba5c791ca5c006e10bc268231b0e2
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.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: If851e4ce95f87d3188b644eb4a345ba3cfca530d
Reviewed-on: https://review.whamcloud.com/41407
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs-fid2path.1
lustre/utils/lfs.c