LLAPI_FID2PATH(3)

NAME
llapi_fid2path - translate a File Identifier to a pathname

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_fid2path(const char *device, const char *fidstr, char *path,
                   int pathlen, long long *recno, int *linkno);

DESCRIPTION
llapi_fid2path() stores the pathname corresponding to the given File Identifier into path. The resulting pathname may then be used like any other file or directory path.

RETURN VALUES
Returns 0 on success or a negative errno value on failure.

ERRORS

-EINVAL
    An invalid argument was specified.

-ERANGE
    Contains numeric values that exceed valid values for a component.

-ENOMEM
    Not enough memory to process the request.

AVAILABILITY
llapi_fid2path() is part of the lustre(7) user application interface library since release 2.13.50

SEE ALSO
llapi_fid_parse(3), llapi_fid2path_at(3), llapi_root_path_open(3), llapi_layout(7), lustreapi(7)