lsm_fs_ch...dependency(3)
π lsm_fs_child_dependency β checking if your file system has a whole little family π
okay bestie, so this is lsm_fs_child_dependency from the Libstoragemgmt C API Manual (yes it's a C API, yes we're thriving), and it's basically the "do you have kids" question but for file systems. iconic behavior honestly.
β¨ NAME β¨
lsm_fs_child_dependency β Checks whether file system has a child dependency.
like, does this fs have dependents hanging off it or not. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
int lsm_fs_child_dependency (lsm_connect *conn, lsm_fs *fs,
lsm_string_list *files, uint8_t *yes, lsm_flag flags);
β¨ ARGUMENTS β¨
connβ Valid connection. gotta have a real one, no fake friends πfsβ Point oflsm_fs. this is the file system we're interrogating.filesβ Pointer oflsm_string_list. Only check on specific files if defined. IfNULL, just check the file system. so like, you can be nosy about specific files or just vibe-check the whole fs π«Άyesβuint8_t.1== Yes,0== No. the answer goes here, no cap.flagsβ Reserved for future use, must beLSM_CLIENT_FLAG_RSVD. don't get creative with it, bestie, it's reserved. π«
β¨ VERSION β¨
1.0 β she's a 1.0 girlie, freshly iconic. β
β¨ DESCRIPTION β¨
Returns 1 if the specified file system has child dependencies, else returns 0.
that's it. that's the tea. it's giving "simple, direct, unbothered." π₯
β¨ CAPABILITY β¨
LSM_CAP_FS_CHILD_DEPENDENCY
if this capability isn't there, the whole thing is a no. π
β¨ RETURN β¨
Error code as enumerated by lsm_error_number. here's the full roster, no skips:
LSM_ERR_OKβ On success. we ate. πLSM_ERR_INVALID_ARGUMENTβ When any argument isNULLor not a validlsm_connectpointer or invalid flags or invalid file system. basically somebody handed you something cursed. πLSM_ERR_NOT_FOUND_FSβ When file system not found. she's not in the group chat. πLSM_ERR_NO_SUPPORTβ Not supported. the feature said "not today." πΈ
ngl, if you passNULLforfiles, it just checks the file system itself β that's not a bug, that's the design, fr fr.
Libstoragemgmt C API Manual Β· February 2026 Β· lsm_fs_child_dependency
okay that's the whole page bestie, mwah, go forth and check those dependencies πβ¨ππ¦πΈπ π«Ά
π¦ 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