[LU-16786] Replace open call to WANT_FD with llapi_root_path_open() Created: 01/May/23  Updated: 19/Jul/23  Resolved: 19/Jul/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Improvement Priority: Minor
Reporter: Arshad Hussain Assignee: Arshad Hussain
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

Replace open call to WANT_FD with newly added API llapi_root_path_open()

Example: A call to WANT_FD like below

if (path_or_device[0] == '/')
        rc = get_root_path(WANT_FD, NULL, &mnt_fd,
                           (char *)path_or_device, -1, NULL, NULL);
else
        rc = get_root_path(WANT_FD, (char *)path_or_device,
                   &mnt_fd, NULL, -1, NULL, NULL);

Will get replace by llapi_root_path_open()

rc = llapi_root_path_open((char *)path_or_device, &mnt_fd);

The changes are done under:

lustre/utils/liblustreapi_fid.c
lustre/utils/liblustreapi_hsm.c
lustre/utils/liblustreapi_pcc.c 


 Comments   
Comment by Gerrit Updater [ 19/Jul/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50764/
Subject: LU-16786 utils: Replace open call to WANT_FD
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 7154244354e3275f6a68f7581f7cfe9ef0a6507c

Comment by Peter Jones [ 19/Jul/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:29:59 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.