LLAPI_LOV_PATTERN_STRING(3)

πŸ“¦ version 2.17.58, in ubuntu stonking

πŸ’– 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 0 when it's slaying β€” aka on success πŸ‘‘
  • on failure it returns -EINVAL, and in that case errno gets 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