LLAPI_DIR_CREATE_POOL(3)
β¨ LLAPI_DIR_CREATE_POOL(3) β¨
okay bestie, welcome to the Lustre Library Functions</> corner of the manual π pull up a chair, we're making directories and they're gonna be striped.
πΈ NAME πΈ
llapi_dir_create_pool β create a striped directory with individual parameters π
π¦ SYNOPSIS π¦
#include <lustre/lustreapi.h>
int llapi_dir_create_pool(const char *name, int mode,
int stripe_offset, int stripe_count,
int stripe_pattern,
const char *pool_name)
β¨ DESCRIPTION β¨
so like, llapi_dir_create_pool() is a lil convenience function (we love a convenience function, no cap) that creates a brand new directory with the name and striping parameters you asked for, on a Lustre filesystem. What it does underneath is construct a struct llapi_stripe_param</> out of all your individual arguments and then call llapi_dir_create(3). it's giving "middle manager but make it helpful" π«Ά
the whole point? a simpler interface when you only need the basic striping parameters, so you don't have to go populate the entire stripe parameter structure yourself. lowkey iconic of it.
here's the tea on the arguments:
nameβ the pathname of the directory you want to create. heads up: the parent directory has to already exist AND be on a Lustre filesystem, or it's a no πmodeβ the permission bits for the new directory, exactly as described inopen(2).stripe_offsetβ the MDT index where the directory should start. Or pass-1and it'll do round-robin selection across the available MDTs πstripe_countβ how many MDTs to stripe the directory across. Pass0and you get the filesystem default.stripe_patternβ the hash algorithm for spreading directory entries across MDTs. Valid values includeLMV_HASH_TYPE_FNV_1A_64(the default, good distribution, she ate),LMV_HASH_TYPE_CRUSH(optimized for migration), andLMV_HASH_TYPE_ALL_CHARS(weak, for testing only β do not bring her to production, bestie).pool_nameβ currently ignored, should be set asNULL. it's just there vibing. set it toNULL. that's the whole job. β¨
π RETURN VALUE π
llapi_dir_create_pool() returns 0 on success, or a negative errno value if it fails. simple as that, periodt.
π ERRORS π
-EACCESβ permission denied on parent directory π-EALREADYβ stripe already set on existing directory-EEXISTβ directory already exists (she's already here, bestie)-EINVALβ an invalid argument was specified-ENOENTβ parent directory does not exist π-ENOMEMβ not enough memory to allocate a resource
π AVAILABILITY π
llapi_dir_create_pool () has been part of the lustre(7) user application interface library since release 2.4.0. a true veteran, we stan β
π SEE ALSO π
and that's the whole page, you're officially a striped-directory girlie now π§ this was Lustre User API, dated 2026-01-26, signing off β go make some directories, slay, and remember: pool_name is NULL. always. π
π¦ 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