LLAPI_LAYOUT_COMP_FLAGS_CLEAR(3)
π¦ LLAPI_LAYOUT_COMP_FLAGS_CLEAR(3) β the flags trilogy, bestie edition β¨
okay so this is a Lustre Library Functions page, and the header's honestly giving β¨mysteryβ¨ because it says LLAPI_LAYO...P_FLAGS_GET(3) with the little dots and everything. it's the llapi_layout_comp_flags_* family, and today we're doing all three of them together because they're a package deal, fr fr. π
π NAME
llapi_layout_comp_flags_get, llapi_layout_comp_flags_set, llapi_layout_comp_flags_clear β get, set or clear the flags of a layout component.
like. the whole squad. getting, setting, clearing. it's giving full-service. π«Ά
β¨ SYNOPSIS
#include <lustre/lustreapi.h>
int llapi_layout_comp_flags_get(const struct llapi_layout *layout,
uint32_t *flags);
int llapi_layout_comp_flags_set(struct llapi_layout *layout,
uint32_t flags);
int llapi_layout_comp_flags_clear(struct llapi_layout *layout,
uint32_t flags);
note the const on the get version btw, because reading is a chill, non-destructive activity and the compiler knows. character development. π
πΈ DESCRIPTION
so what even ARE these flags? they're there to tell you the status of the component. and here's the tea: right now only LCME_FL_INIT is supported, which means the OST objects of that component have been initialized. that's it. that's the whole flag buffet. one (1) flag. no cap. π
on to the three icons themselves:
llapi_layout_comp_flags_get(3)β grabs the flags off the layout and tucks them safely intoflags. reading, not touching. the respectful one. πllapi_layout_comp_flags_set(3)β sets the flags you specify onto the layout. main character energy, it's making changes. π₯llapi_layout_comp_flags_clear(3)β clears the flags you specify from the layout. not me removing things with absolutely zero remorse. π
π RETURN VALUES
0β slay. success. everything worked. π-1β an error occurred (and in that case,errnogets set appropriately, so go peek at it if you want the receipts).
bestie, always check the return value.-1is a vibe check failure, okay? don't ignore theerrno. π
π ERRORS
EINVALβ an invalid argument was specified. somebody handed these functions something nonsense and they're not about it. π
β AVAILABILITY
llapi_layout_comp_flags_get(), llapi_layout_comp_flags_set() and llapi_layout_comp_flags_clear() are part of the lustre(7) user application interface library since release 2.10.0. so if you're on something olderβ¦ yeah. upgrade era. π§
π SEE ALSO
go read those next, i promise it's worth it. β¨
and that's the page, babes π this one's from the Lustre User API and it's dated 2024-08-27 β congrats on finishing, you're literally so smart for reading a whole manpage, periodt. ππ¦π
π¦ 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