lsm_fs_create(3)

πŸ“¦
version 1.10.3 Β· 3 versions
, in fedora 43, fedora 44

πŸ’– 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 an lsm_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 of lsm_fs. it'll be NULL if the storage system supports asynchronous action on this. and listen β€” the returned value must be freed with lsm_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 via lsm_job_status_fs_get. it's NULL if the storage system doesn't support async on this. no job, no tracking, no problem.
  • flags β€” reserved for future use, must be LSM_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 job pointer. go look at it πŸ‘€
  • LSM_ERR_INVALID_ARGUMENT
    • When any argument is NULL or not a valid lsm_connect pointer or invalid flags. basically: something in there was not it πŸ’€
  • 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