LLAPI_LOV_STRING_PATTERN(3)

NAME
llapi_lov_string_pattern - convert pattern name string to LOV_PATTERN mask

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_lov_string_pattern(const char *string, enum lov_pattern *pattern);

DESCRIPTION
llapi_lov_string_pattern() converts the comma-separated list of LOV pattern names in string to a mask of LOV_PATTERN_* flags returned in pattern.

RETURN VALUES
llapi_lov_string_pattern() returns 0 on success, or -EINVAL on failure (in which case, errno is set appropriately).

AVAILABILITY
llapi_lov_string_pattern() is part of the lustre(7) user application interface library since release 2.17.0

SEE ALSO
llapi_lov_pattern_string(3), lustre(7), lustreapi(7)