lsm_fs_ch...cy_delete(3)
π lsm_fs_child_dependency_delete β the one where we yeet a filesystem's whole child-dependency situation π
okay so bestie, this one lives in the Libstoragemgmt C API Manual (manual name, noted, love that for us) and it's filed under lsm_fs_child_dependency_delete(3). Let's get into it β¨
πΈ SYNOPSIS πΈ
int lsm_fs_child_dependency_delete (lsm_connect *conn, lsm_fs *fs,
lsm_string_list *files, char **job, lsm_flag flags);
that's the whole vibe. four args and a flag, no cap π«Ά
π ARGUMENTS π
connβ a Valid connection. like, it has to actually be valid, we're not playing games here πfsβ Point oflsm_fsto remove dependencies for. this is the filesystem whose children we're about to un-depend (yes that's a word now).filesβ Pointer oflsm_string_list. Only work on specific files if defined. IfNULL, just work on all files in this file system. so: give it a list and it's picky, give itNULLand it does everything β¨jobβ Output pointer of string. If storage system support asynchronous action on this, a job will be created and could be tracked vialsm_job_status_get.NULLif storage system does not support asynchronous action on this. so check it, bestie πflagsβ Reserved for future use, must beLSM_CLIENT_FLAG_RSVD. don't get creative with it, it's literally reserved π
π VERSION π
1.0 β vintage but iconic, she's been here a minute π
π¦ DESCRIPTION π¦
Deletes child dependencies by duplicating the required storage to remove. that's the whole move. we copy the storage we need, then the dependencies go poof π
β οΈ NOTE β οΈ
This could take a long time to complete based on dependencies. like, go make a snack, hydrate, touch some grass β it'll be here when you get back ππ
π CAPABILITY π
these are the capability flags you're looking for, no cap:
LSM_CAP_FS_CHILD_DEPENDENCY_RMLSM_CAP_FS_CHILD_DEPENDENCY_RM_SPECIFIC_FILES
π RETURN π
Error code as enumerated by lsm_error_number. here's the full menu, don't skip any:
LSM_ERR_OKβ On success. slay, we ate πLSM_ERR_JOB_STARTEDβ A job is started. Please check thejoboutput pointer. main character energy, it's doing its own thing now π₯LSM_ERR_NOT_FOUND_FSβ When file system not found. it's giving "who? never heard of her" πLSM_ERR_NO_STATE_CHANGEβ When file system has no child dependency. nothing to delete, nothing changed, we simply sat there π§
okay that's the whole page, you're basically a filesystem dependency expert now β
this gorgeous little manual is from the Libstoragemgmt C API Manual, version February 2026 β ty for coming to my ted talk, 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