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

-EINVAL
    An invalid argument was specified.

-ENOTTY
    path does not reside on a Lustre filesystem.

-ENOENT
    path does not exist.

SEE ALSO
llapi_layout_get_by_fid(3), llapi_layout(7), llapi_fid2path(3), llapi_path2parent(3), lustreapi(7)