lsm_fs_resize(3)
π 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 oflsm_fsto 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 updatedlsm_fs. it might beNULLif 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 vialsm_job_status_fs_get. it'sNULLif 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 beLSM_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 thejoboutput pointer. she's off doing her thing in the background, keep an eye on her πLSM_ERR_INVALID_ARGUMENTβ when any argument isNULLor not a validlsm_connectpointer 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
- 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