lsm_fs_delete(3)
π lsm_fs_delete β bestie's guide to the Libstoragemgmt C API Manual π
okay so. welcome to lsm_fs_delete(3), a manual page from the Libstoragemgmt C API Manual and literally one of the most "are you SURE" functions in the whole library. it deletes a file system. the whole thing. all of it. we're gonna walk through it together because I refuse to let you rawdog this call, bestie π«Ά
β¨ NAME β¨
lsm_fs_delete β deletes a file system. that's it. that's the vibe. π
π¦ SYNOPSIS π¦
int lsm_fs_delete (lsm_connect *conn, lsm_fs *fs, char **job, lsm_flag flags);
πΈ ARGUMENTS πΈ
connβ a valid connection. like, actually valid. no funny business.fsβ the pointer of thelsm_fsthat is to be deleted. your main character. about to exit stage left.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.flagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. that's the whole rule. don't get creative with it π
β VERSION β
1.0
π₯ DESCRIPTION π₯
Deletes a file system and its data is lost! not "moved to trash". not "recoverable in 30 days". lost. say it with me. π
and it's not just the file system, bestie, it's the whole extended friend group:
- when the file system has snapshot attached, all its snapshot will be deleted also.
- when the file system is exported, all its exports will be deleted also.
if the specified file system is has child dependency, it cannot be deleted. nope. not happening. the way it will just refuse you π. so you may use lsm_fs_child_dependency and lsm_fs_child_dependency_delete before lsm_fs_delete β clean up your little dependency situations first, then come back and do the deed. iykyk.
fr fr: this is a destructive call. read the paragraph above twice. then read it again. then call it.
π CAPABILITY π
LSM_CAP_FS_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.LSM_ERR_INVALID_ARGUMENTβ when any argument isNULLor not a validlsm_connectpointer or invalid flags.LSM_ERR_NOT_FOUND_FSβ when file system not found. it's giving "who?"LSM_ERR_POOL_NOT_READYβ pool is not ready.LSM_ERR_NO_SUPPORTβ not supported.LSM_ERR_HAS_CHILD_DEPENDENCYβ specified volume has child dependencies. (yes, it says volume, we're all just living here.)
that's the whole page, bestie π go forth, pass LSM_CLIENT_FLAG_RSVD, and maybe double-check those child dependencies first. this has been the Libstoragemgmt C API Manual page lsm_fs_delete(3), from the lsm_fs_delete source, dated February 2026. 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