OS Manuals

llapi_path2fid(3)

llapi_path2fid - translate a path name to a File Identifier

LLAPI_PATH2FID(3) Lustre Library Functions LLAPI_PATH2FID(3)

llapi_path2fid - translate a path name to a File Identifier

#include <lustre/lustreapi.h>
int llapi_path2fid(const char *path, struct lu_fid *fid);

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.

returns 0 on success or a negative errno value on failure.

An invalid argument was specified.
path does not reside on a Lustre filesystem.
path does not exist.

llapi_path2fid() is part of the lustre(7) user application interface library since release 2.4.0

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

lustre 2.17.60-r0 · enterprise-packages · ingested 2026-10-22