lsm_volum...cy_delete(3)
π NAME π
lsm_volume_child_dependency_delete β ok so bestie, this one deletes all the child dependencies of the volume you point at. Like, every single one. No cap. π¦
β¨ SYNOPSIS β¨
int lsm_volume_child_dependency_delete (lsm_connect *conn, lsm_volume
*volume, char **job, lsm_flag flags);
π ARGUMENTS π
connβ a valid connection, periodt. Gotta be a real one.volumeβ a pointer to anlsm_volume. That's the one whose children we're about to yeet.jobβ output pointer of string. If the storage system supports asynchronous action on this, a job gets created and you can track it vialsm_job_status_get. It'sNULLif the storage system does not support asynchronous action on this. So basically: check it, don't assume. πflagsβ reserved for future use, so it literally must beLSM_CLIENT_FLAG_RSVD. Not vibes. Must be.
π VERSION π
1.0
πΈ DESCRIPTION πΈ
So here's the tea: you're instructing the storage system to remove all child dependencies of the specified volume β and the way it does that is by duplicating the required storage before breaking the replication relationship. The way it just handles the copy first and then the breakup? Iconic behaviour honestly. π
π CAPABILITY π
LSM_CAP_VOLUME_CHILD_DEPENDENCY_RM
π₯ RETURN π₯
Error code as enumerated by lsm_error_number. Here's the whole roster, no skipping:
LSM_ERR_OKβ on success. Slay. β¨LSM_ERR_JOB_STARTEDβ a job is started, so please go check thejoboutput pointer. It's right there bestie, look at it.LSM_ERR_INVALID_ARGUMENTβ when any argument isNULL, or it's not a validlsm_connectpointer, or the flags are invalid, or thelsm_volumepointer is invalid. Basically something in the group chat is not passing the vibe check.LSM_ERR_NOT_FOUND_VOLUMEβ when the volume is not found. Can't delete the children of a volume that isn't there, bestie. πLSM_ERR_NO_STATE_CHANGEβ when the volume is not a replication source. No source, no child dependencies, nothing to change.LSM_ERR_NO_SUPPORTβ not supported. π
Heads up: these are error codes from the lsm_error_number enum β treat them as the real deal, not decorative.
ok that's the whole page, you ate that fr fr π«Ά this was from the Libstoragemgmt C API Manual, version vibes from February 2026 β go forth and delete responsibly, 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