LLAPI_LAYOUT_STRIPE_COUNT_SET(3)
π llapi_layout_stripe_count_get β bestie edition π
okay so this is a page from the Lustre Library Functions manual, section 3, and it's about two lil functions: llapi_layout_stripe_count_get and llapi_layout_stripe_count_set. their whole job? getting and setting the stripe count of a Lustre file. iconic, honestly. β¨
πΈ NAME πΈ
llapi_layout_stripe_count_get, llapi_layout_stripe_count_set β get or set the stripe count of a Lustre file π¦
β¨ SYNOPSIS β¨
#include <lustre/lustreapi.h>
int llapi_layout_stripe_count_get(const struct llapi_layout *layout,
uint64_t *stripe_count);
int llapi_layout_stripe_count_set(struct llapi_layout *layout,
uint64_t stripe_count);
π DESCRIPTION π
so like. the stripe count of a Lustre file is literally the number of OSTs that get used to store the file. that's it, that's the whole vibe. it's giving "how many places are we spreading this data across". π
llapi_layout_stripe_count_get() does exactly what the name says bestie β it stores into *stripe_count the stripe count of layout. no cap. π«Ά
llapi_layout_stripe_count_set() sets the stripe count of layout to stripe_count. matching set, slay. π
and now for the special little values, because these are important:
- a stripe_count value of
LLAPI_LAYOUT_DEFAULTmeans that the default stripe count will be used. let the system cook. π - a stripe_count value of
LLAPI_LAYOUT_WIDEmeans that the file will be striped as widely as possible. go big or go home energy fr fr. π
π RETURN VALUES π
llapi_layout_stripe_count_get() and llapi_layout_stripe_count_set() return 0 on success, or -1 if an error occurred (and in that case, errno is set appropriately). so like, check that return value, bestie, don't just ignore it π
π ERRORS π
EINVALβ an invalid argument was specified. yeah. you gotta pass valid stuff. we don't do that here. π
β AVAILABILITY β
llapi_layout_stripe_count_get() and llapi_layout_stripe_count_set() is part of the lustre(7) user application interface library since release 2.7.0. so it's been around, it's established, it's not new-new. π§
π SEE ALSO π
okay that's the whole page, no notes, you're gonna do amazing with your stripe counts babe π«Ά this was the Lustre User API, dated 2024-08-27 β and yes the header/footer were doing that little truncation thing (LLAPI_LAYO...E_COUNT_GET(3)) because even manpages gotta be mysterious sometimes π mwah, go stripe something β¨πΈ
π¦ 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