lsm_fs_resize(3)

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

πŸ’– lsm_fs_resize β€” bestie we're resizing a file system πŸ’–

okay so real talk, this is lsm_fs_resize(3) from the Libstoragemgmt C API Manual and it does literally exactly one thing but it does it so well. sit down, grab a strawberry, let's go πŸ“


✨ NAME ✨

lsm_fs_resize β€” resizes a file system. that's it. that's the whole job. main character behavior fr πŸ’…


🌸 SYNOPSIS 🌸

int lsm_fs_resize (lsm_connect *conn, lsm_fs *fs, uint64_t
new_size_bytes, lsm_fs **rfs, char **job_id, lsm_flag flags);

like. look at that signature. it's giving "i know exactly what i'm doing" ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • conn β€” a valid connection. no connection, no resize, no vibes. valid only, bestie.
  • fs β€” pointer of lsm_fs to re-size. yes it's that file system. the one you picked.
  • new_size_bytes β€” uint64_t. the new size of the file system, in bytes. and listen β€” the actual size might end up bigger than what you asked for, because it gets based on the array rounding to block size. so don't come for her if it's a little thicc, that's just the math 🌈
  • rfs β€” output pointer of the updated lsm_fs. it might be NULL if the storage system supports asynchronous action on this. so like, don't be shocked. it's not ghosting you, it's just async 😭
  • job_id β€” output pointer of string. if the storage system supports asynchronous action on this, a job will be created and you can track it via lsm_job_status_fs_get. it's NULL if the storage system does not support asynchronous action on this. so either you get a lil tracker or you get nothing, no in between πŸ’€
  • flags β€” reserved for future use, must be LSM_CLIENT_FLAG_RSVD. periodt. don't get creative with it.

πŸ’œ VERSION πŸ’œ

1.0 β€” she's been here a minute and she's thriving ✨


πŸŽ€ DESCRIPTION πŸŽ€

Resize the specified file system. iconic. no notes. that is the entire description and honestly? respect 🫢


πŸ‘‘ CAPABILITY πŸ‘‘

LSM_CAP_FS_RESIZE

if the storage system doesn't have this, bestie, it's not happening. check first. iykyk πŸ’…


🌈 RETURN 🌈

error code as enumerated by lsm_error_number. here's the whole roster, no skips:

  • LSM_ERR_OK β€” on success. we love to see it. slay πŸ’–
  • LSM_ERR_JOB_STARTED β€” a job is started. please check the job output pointer. she's off doing her thing in the background, keep an eye on her πŸ‘€
  • LSM_ERR_INVALID_ARGUMENT β€” when any argument is NULL or not a valid lsm_connect pointer or invalid flags. something in the group chat is wrong and it's probably the flags πŸ™ˆ
  • LSM_ERR_NOT_FOUND_FS β€” when file system not found. she's not here. she left. no forwarding address 😭
  • LSM_ERR_NOT_ENOUGH_SPACE β€” pool does not have enough space. the pool is broke, respectfully. we've all been there πŸ’€
  • LSM_ERR_POOL_NOT_READY β€” pool is not ready for volume resizing. she needs a minute. let her lock in 🧚
  • LSM_ERR_NO_STATE_CHANGE β€” requested size if identical to current size. you asked for exactly what you already have. the audacity. the commitment to nothing πŸ”₯
  • LSM_ERR_NO_SUPPORT β€” not supported. not today, not ever, not with that storage system πŸ’”
real one warning: LSM_ERR_NO_STATE_CHANGE means your requested size was identical to the current size β€” no glow-up happened, nothing changed, and that's on the request being a carbon copy of the status quo. πŸ’…

🌟 SEE ALSO 🌟

lsm_job_status_fs_get β€” go check that job if you got a job_id, bestie, it's right there in the arguments and it's right there in the return codes. full circle moment ⭐


and that's the page!! written by the Libstoragemgmt girlies, dated February 2026, living under the lsm_fs_resize name in section 3 of the Libstoragemgmt C API Manual. go resize something responsibly, queen πŸ‘‘βœ¨

πŸ“¦ where this page comes from