llapi_root_path_open(3)

NAME
llapi_root_path_open - Return open fd for a given device/path provided

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_root_path_open(const char *device, int *fd );

DESCRIPTION

llapi_root_path_open() is called with device which points to the FSNAME or complete path specifying a mountpount of Lustre filesystem. On success, fd is populated with valid descriptor.

RETURN VALUES

llapi_root_path_open() return:

>=0 on success.

<0  on failure.

SEE ALSO
lustreapi(7)