lsm_volum...dependency(3)

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

✨ lsm_volume_child_dependency ✨

okay bestie, welcome to the Libstoragemgmt C API Manual πŸ’– β€” yes the page header is literally lsm_volum...dependency(3) because apparently we ran out of room, it's giving truncated slay πŸ’…


🌸 NAME 🌸

lsm_volume_child_dependency β€” check whether volume has child dependencies. 🧚

tl;dr: does this volume have any baby volumes depending on it?? we're about to find out 🍼✨

πŸŽ€ SYNOPSIS πŸŽ€

int lsm_volume_child_dependency (lsm_connect *conn, lsm_volume *volume,
       uint8_t *yes, lsm_flag flags);

πŸ’œ ARGUMENTS πŸ’œ

  • conn β€” a Valid connection. like, a real one, an actual live lsm_connect. no fake ones allowed fr fr πŸ”Œ
  • volume β€” Pointer of lsm_volume. hand me the volume bestie, the actual pointer, please and thank you πŸ“¦
  • yes β€” uint8_t. 1 == Yes, 0 == No. binary king/queen/royalty behavior honestly πŸ‘‘
  • flags β€” Reserved for future use, must be LSM_CLIENT_FLAG_RSVD. do NOT freestyle this one, it's reserved, put exactly LSM_CLIENT_FLAG_RSVD and step away 🚨

πŸ¦‹ VERSION πŸ¦‹

1.0 β€” she's been 1.0 since forever and honestly? iconic, no notes ⭐


🌈 DESCRIPTION 🌈

Returns 1 if the specified volume has child dependencies, else returns 0. πŸ’–

and what is a "child dependency" you ask?? so glad you asked bestie β€” it means the specified volume is acting as the source volume of a replication. it's literally the parent in the replication situationship, the volume other volumes are copying from, main character energy fr 😭


⭐ CAPABILITY ⭐

LSM_CAP_VOLUME_CHILD_DEPENDENCY β€” check for this or the whole vibe falls apart, no cap 🫢


πŸ’€ RETURN πŸ’€

Error code as enumerated by lsm_error_number. yes, all of them, here we go: ✨

  • 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 volume. basically when something in the group chat is fake 🚩
  • LSM_ERR_NOT_FOUND_VOLUME
    • When volume not found. she's not here, she left, no forwarding address 😭
  • LSM_ERR_NO_SUPPORT
    • Not supported. the backend said "not my problem" πŸ™ˆ

reminder bestie: flags stays LSM_CLIENT_FLAG_RSVD, and every single pointer has to be valid or you get LSM_ERR_INVALID_ARGUMENT. no shortcuts, we respect the API in this house πŸ’…

and that's the whole page, you're so welcome πŸ’– this came from the Libstoragemgmt C API Manual, page lsm_volum...dependency(3), function lsm_volume_child_dependency, and the footer says February 2026. bye bestie, go check some child dependencies, slay βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from