LLAPI_LOV_PATTERN_STRING(3)
π LLAPI_LOV_STRING_PATTERN(3) π
okay bestie, so this is a page from section 3 of the Lustre Library Functions manual β the part where we hang out with the user-level library calls. And this one? It's the lil translator that takes a cute human-readable pattern name and turns it into a mask. iconic behavior, honestly. β¨
πΈ NAME πΈ
llapi_lov_string_pattern β convert a pattern name string into a LOV_PATTERN mask, no cap
π¦ SYNOPSIS π¦
#include <lustre/lustreapi.h>
int llapi_lov_string_pattern(const char *string, enum lov_pattern *pattern);
β¨ DESCRIPTION β¨
so llapi_lov_string_pattern() is the one doing the translating π
it takes string, which is a comma-separated list of LOV pattern names, and it converts that whole lil list into a mask of LOV_PATTERN_* flags β which it hands back to you in pattern.
like, you give it the names, it gives you the mask. that's the whole vibe. π«Ά
π RETURN VALUES π
- it returns
0when it's slaying β aka on success π - on failure it returns
-EINVAL, and in that caseerrnogets set appropriately, so go check it
no shame in a fail, bestie, just read the errno bestie π
π AVAILABILITY π
llapi_lov_string_pattern() has been part of the lustre(7) user application interface library since release 2.17.0 β so if your Lustre is older than that, she's not here yet π
β SEE ALSO β
mwah π that's the whole page. sourced straight from the Lustre User API, dated 2025-06-04, and she lives at page LLAPI_LOV_STRING_PATTERN(3) β go read her friends above, iykyk πΈβ¨
π¦ where this page comes from
- ubuntu stonking: lustre-client-utils 2.17.58+dfsg-0ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms