lsm_volume_delete(3)
π lsm_volume_delete β bestie edition π
okay so this is lsm_volume_delete(3) from the Libstoragemgmt C API Manual, and she's here to help you yeet a volume into the void. buckle up, because there's a lil bit of prep work before you're allowed to do that. π
β¨ NAME β¨
lsm_volume_delete β Delete a volume. that's it. that's the whole job. she deletes. π
πΈ SYNOPSIS πΈ
int lsm_volume_delete (lsm_connect *conn, lsm_volume *volume, char
**job, lsm_flag flags);
π¦ ARGUMENTS π¦
connβ a validlsm_connectpointer. like, actually valid, bestie, we're checking. πvolumeβ pointer to thelsm_volumethat's getting deleted. rip to her fr fr. π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 doesn't support asynchronous action on this. so like, sometimes there's a job, sometimes there's just vibes. π€·flagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. no touching, no customizing, it's not that girl yet. π
π VERSION π
1.0
π₯ DESCRIPTION π₯
Deletes a volume/LUN β and heads up, its data is lost! π like, gone gone. no undo button, no recycle bin, no "wait actually". periodt.
If the specified volume is masked to any access_group, it cannot be deleted. so before you come for her, you may wanna use lsm_access_groups_granted_to_volume and lsm_volume_unmask before lsm_volume_delete. unmask first, then delete. that's the order. π«Ά
Also, if the specified volume has child dependency, it cannot be deleted either. you may use lsm_volume_child_dependency and lsm_volume_child_dependency_delete before lsm_volume_delete. handle the dependents first or she's not going anywhere, iykyk. π
seriously though β data loss is not a vibe. double, triple, quadruple check before you run this. β οΈ
π CAPABILITY π
LSM_CAP_VOLUME_DELETE
β RETURN β
error code as enumerated by lsm_error_number. here's the whole roster, no skips:
LSM_ERR_OKβ on success. slay! πLSM_ERR_JOB_STARTEDβ a job is started. please check thejoboutput pointer. she's running in the background, bestie. πββοΈLSM_ERR_INVALID_ARGUMENTβ when any argument isNULLor not a validlsm_connectpointer or invalid flags. πLSM_ERR_NOT_FOUND_VOLUMEβ when volume not found. where is she. πLSM_ERR_POOL_NOT_READYβ pool is not ready. give her a minute. π΄LSM_ERR_NO_SUPPORTβ not supported. πLSM_ERR_HAS_CHILD_DEPENDENCYβ specified volume has child dependencies. she has responsibilities, she can't just leave. π
k that's the whole page, you ate that. mwah. π
this was Libstoragemgmt C API Manual, version 1.0, dated February 2026 β and yeah, lsm_volume_delete(3) is literally the same name twice in the footer, she's her own icon. β¨ bye bestie, go delete responsibly! ππ¦
π¦ 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