1 .TH llapi_fid_to_handle 3 "2022-11-08" "Lustre User API"
3 llapi_fid_to_handle \- allocate an NFS handle for File Identifier
6 .B #include <lustre/lustreapi.h>
8 .BI "int llapi_fid_to_handle(struct file_handle **" handle ", struct lu_fid *" fid ");"
12 .BR llapi_fid_to_handle()
15 for the File Identifier given by
18 .BR open_by_handle_at (2).
19 This is similar to the
20 .BR name_to_handle_at (2)
21 function, and is useful for Lustre-specific tools and interfaces. While the
22 .BR llapi_fid_to_handle (3)
23 function does not requre root access itself, the
24 .BR open_by_handle_at (2)
27 require root access since this bypasses all pathname-derived file access
29 The memory allocated for
31 and returned to the caller must be freed with
35 returns 0 on success or a negative errno on failure.
39 No memory was available for allocating
43 .BR llapi_fid_parse (3),
44 .BR llapi_fid2path (3),
45 .BR llapi_path2fid (3),
47 .BR name_to_handle (2)
48 .BR open_by_handle_at (2)