lsm_fs_ss_delete(3)
π lsm_fs_ss_delete β from the Libstoragemgmt C API Manual
okay bestie, buckle up, we're deleting a snapshot today and honestly? iconic behavior. this one lives in section 3 of the Libstoragemgmt C API Manual, so it's a library function, not a command you type in your shell. iykyk π«Ά
β¨ NAME β¨
lsm_fs_ss_delete β Deletes a snapshot. yes. that's the whole job. she deletes, she slays, she leaves. π
πΈ SYNOPSIS πΈ
int lsm_fs_ss_delete (lsm_connect *conn, lsm_fs *fs, lsm_fs_ss *ss, char
**job, lsm_flag flags);
five arguments. no cap. let's go through them one by one like a group chat roll call π
π¦ ARGUMENTS π¦
connβ a Valid connection. like, it has to actually be valid. don't be out here passing vibes. β¨fsβ Pointer oflsm_fs. that's your file system, the whole point of the operation.ssβ Pointer oflsm_fs_ssto delete. this is the snapshot. the main character of this function. she's getting deleted. πjobβ Output pointer of string. okay so if your storage system supports asynchronous action on this, a job gets created and you can track it vialsm_job_status_get. and if the storage system does not support asynchronous action on this? then it'sNULL. no job, no tracking, just done. lowkey efficient fr frflagsβ Reserved for future use, must beLSM_CLIENT_FLAG_RSVD. like, you don't get to freestyle here bestie. it's reserved. put the right flag. π
π VERSION π
1.0 β she's been here since 1.0 and she's still serving.
π₯ DESCRIPTION π₯
Deletes the specified file system snapshot. that's it. that's the tea. β one snapshot, gone, bye bye, no notes. π
π CAPABILITY π
LSM_CAP_FS_SNAPSHOT_DELETE
if your storage system has this capability, you're good to go. if it doesn'tβ¦ vibe check failed, sorry babe π
β RETURN β
Error code as enumerated by lsm_error_number. here's the whole roster, no skipping, we don't gatekeep:
LSM_ERR_OK- On success. we ate. π
LSM_ERR_JOB_STARTED- A job is started. Please check the
joboutput pointer. like actually check it, don't just leave it sitting there π«Ά
- A job is started. Please check the
LSM_ERR_INVALID_ARGUMENT- When any argument is
NULLor not a validlsm_connectpointer or invalid flags. basically: something was sus. not in a fun way. π
- When any argument is
LSM_ERR_NOT_FOUND_FS- When file system not found. she's not here. nobody's home. π
LSM_ERR_NOT_FOUND_FS_SS- When file system snapshot not found. you're trying to delete a snapshot that doesn't exist bestie. respectfully, what are we doing π
LSM_ERR_NO_SUPPORT- Not supported. the storage system said "no thank you" and honestly we respect the boundary.
lowkey reminder: always check that return value.LSM_ERR_OKis the dream,LSM_ERR_JOB_STARTEDmeans go look at yourjobpointer, and anything else is the universe telling you to double-check your arguments. π§
and that's the whole page!! written by the Libstoragemgmt C API Manual, February 2026 edition, and this little function is filed under lsm_fs_ss_delete β see you in the next one, stay hydrated, keep your pointers valid πβ¨π
π¦ 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