[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/ |
| Comment by Peter Jones [ 19/Jul/23 ] |
|
Landed for 2.16 |