Whamcloud - gitweb
LU-14398 llapi: simplify llapi_fid2path()
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 3 Feb 2021 18:33:26 +0000 (12:33 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 6 Mar 2021 20:43:54 +0000 (20:43 +0000)
commitedd5d41f775843e037d8def80526c87eaba0fd19
treef01242ffa83f85e95bd48c39aac59f6e52b01a00
parentb2d006f91d7366cf74328bab46b669d49dbcc9a7
LU-14398 llapi: simplify llapi_fid2path()

Simplify llapi_fid2path(). Remove the fid_is_sane() check. Remove the
call to root_ioctl() and use get_root_path() directly.

Lustre-commit: 4cfe77df6f2499effa1644e6ad5a594abb11be23
Lustre-change: https://review.whamcloud.com/41405

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ib70b8c9e239c77da8b46408de8341fc8aaf4d1c3
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41862
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/liblustreapi_fid.c
lustre/utils/lustreapi_internal.h