lsm_fs_create(3)
π lsm_fs_create β the "make me a whole new file system" page π
okay bestie, welcome to the lsm_fs_create(3) glow-up β¨ this one lives in the Libstoragemgmt C API Manual and it's giving "let's manifest a brand new file system" energy. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
lsm_fs_create β creates a new file system π
πΈ SYNOPSIS πΈ
int lsm_fs_create (lsm_connect *conn, lsm_pool *pool, const char *name,
uint64_t size_bytes, lsm_fs **fs, char **job, lsm_flag flags);
π¦ ARGUMENTS π¦
connβ a valid connection. like, an actual one. no fake ones allowed πpoolβ a pointer to anlsm_pool. this is the pool you're pulling from.nameβ string. a human-recognizable name. heads up though: certain storage systems might alter it or straight up ignore it π so don't get too attached.size_bytesβuint64_t. the size of your new file system, in bytes. lowkey important: the actual size might end up bigger than what you asked for, because it gets based on array rounding to block size. so don't be shocked bestie, that's just how the blocks round β¨fsβ output pointer oflsm_fs. it'll beNULLif the storage system supports asynchronous action on this. and listen β the returned value must be freed withlsm_fs_record_free. don't leave it hanging, that's not the vibe πjobβ output pointer of string. if the storage system supports asynchronous action on this, a job gets created and you can track it vialsm_job_status_fs_get. it'sNULLif the storage system doesn't support async on this. no job, no tracking, no problem.flagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. periodt. don't try anything else π«
π VERSION π
1.0 β the classic, the icon, the blueprint π
π DESCRIPTION π
Creates a new file system for NFS or CIFS share. that's it, that's the whole serve. you asked, it delivers, main character energy π«Ά
β CAPABILITY β
LSM_CAP_FS_CREATE
like yes, this is literally the capability you need for this to even be a thing π«
π₯ RETURN π₯
LSM_ERR_OK on success, LSM_ERR_JOB_STARTED if async.
LSM_ERR_OK- On success. we love a happy ending π
LSM_ERR_JOB_STARTED- A job is started. Please check the 'job' output pointer. yes, that
jobpointer. go look at it π
- A job is started. Please check the 'job' output pointer. yes, that
LSM_ERR_INVALID_ARGUMENT- When any argument is
NULLor not a validlsm_connectpointer or invalid flags. basically: something in there was not it π
- When any argument is
LSM_ERR_NOT_FOUND_POOL- When pool not found. where is she. where did she go π
LSM_ERR_NOT_ENOUGH_SPACE- Pool does not have enough space. the math wasn't mathing, bestie π
LSM_ERR_POOL_NOT_READY- Pool is not ready for file system creation. she needs a minute. let her breathe π§
LSM_ERR_NO_SUPPORT- Not supported. respectfully, no π
ngl, if you get an error back, actually read it before you spiral β every one of these is telling you exactly what's wrong π
and that's the whole page, bestie! this was lsm_fs_create from the Libstoragemgmt C API Manual, version 1.0, dated February 2026 πΈ go forth and create file systems responsibly, and remember: free your lsm_fs records. mwah πβ¨
π¦ where this page comes from
- fedora 43: libstoragemgmt-devel 1.10.3-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstoragemgmt-devel 1.10.3-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms