| LLAPI_PATH2FID(3) | Lustre Library Functions | LLAPI_PATH2FID(3) |
NAME
llapi_path2fid - translate a path name to a File Identifier
SYNOPSIS
#include <lustre/lustreapi.h>
int llapi_path2fid(const char *path, struct lu_fid *fid);
DESCRIPTION
llapi_path2fid() stores the Lustre file identifier (FID) for the file or directory named by path into fid. The fid may be then be passed to other llapi_ functions that expect the struct lu_fid data type.
RETURN VALUES
returns 0 on success or a negative errno value on failure.
ERRORS
AVAILABILITY
llapi_path2fid() is part of the lustre(7) user application interface library since release 2.4.0
SEE ALSO
llapi_fd2fid(3), llapi_fid2path(3), llapi_layout_get_by_fid(3), llapi_path2parent(3), llapi_layout(7), lustreapi(7)
| 2024-08-28 | Lustre User API |