lsm_fs_ch...dependency(3)

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

πŸ’– 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 of lsm_fs. this is the file system we're interrogating.
  • files β€” Pointer of lsm_string_list. Only check on specific files if defined. If NULL, 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 be LSM_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 is NULL or not a valid lsm_connect pointer 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 pass NULL for files, 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