1 .TH llapi_open_by_fid 3 "2022-11-08" "Lustre User API"
3 llapi_open_by_fid \- open a file descriptor from a File Identifier
6 .B #include <lustre/lustreapi.h>
8 .BI "int llapi_open_by_fid(const char *" mntpath ", struct lu_fid *" fid ", int " oflag ");"
9 .BI "int llapi_open_by_fid_at(int " dir_fd ", struct lu_fid *" fid ", int " oflag ");"
13 .BR llapi_open_by_fid()
14 opens a file descriptor in the filesystem mountpoint referenced by
16 for the file identified by
18 using the open file flags in
24 .BR llapi_open_by_fid_at()
25 opens a file descriptor on
27 in the filesystem referenced by the open file descriptor
29 This is similar to the
30 .IR open_by_handle_at (3)
31 system call that can open files by their NFS file handle. If
35 then the open is performed against the local working directory.
38 returns file descriptor number or a negative errno value on failure.
42 An invalid argument was specified.
45 No memory was available during operation.
47 .BR llapi_fid_parse (3),
48 .BR llapi_fid2path (3),
49 .BR llapi_path2fid (3),
51 .BR open_by_handle_at (3)