LLAPI_FD2FID(3)

NAME
llapi_fd2fid - return Lustre File Identifier for open file descriptor

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_fd2fid(int fd, struct lu_fid *fid);

DESCRIPTION
llapi_fd2fid() retrieves the File Identifier corresponding to the given open file descriptor fd and stores it in fid.

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

ERRORS

-ENOTTY
    Path does not reside on a Lustre filesystem.

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

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