Whamcloud - gitweb
LU-14398 llapi: simplify llapi_fid2path() 05/41405/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 3 Feb 2021 18:33:26 +0000 (12:33 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 08:23:11 +0000 (08:23 +0000)
commit4cfe77df6f2499effa1644e6ad5a594abb11be23
tree792a235a029ce53053bc8ff90052d3d65fb271f4
parent3117913e21adb941e0ef3467ff7588d5e5fbc6e4
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.

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