LLAPI_FID2PATH_AT(3)

NAME
llapi_fid2path_at - resolve a File Identifier to a pathname

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_fid2path_at(int mnt_fd, const struct lu_fid *fid, char *path,
                      int pathlen, long long *recno, int *linkno);

DESCRIPTION
llapi_fid2path_at() stores the pathname corresponding to the given File Identifier into path. The lookup is performed relative to the filesystem referenced by mnt_fd. If recno or linkno are non-NULL, they are used to select and return a specific directory entry or hardlink of the FID.

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

ERRORS

-ENOMEM
    Not enough memory to process the request.

AVAILABILITY
llapi_fid2path_at() is part of the lustre(7) user application interface library since release 2.14.50

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