lsm_job_status_ss_get(3)
π lsm_job_status_ss_get β bestie edition π
okay so this one lives in the Libstoragemgmt C API Manual, and it's literally your go-to for checking on a job and grabbing the snapshot set it made. very "are we there yet" but make it β¨infrastructureβ¨
πΈ NAME πΈ
lsm_job_status_ss_get β check on the status of a job with lsm_fs_ss returned.
like. the whole point. the assignment, if you will. π
π¦ SYNOPSIS π¦
int lsm_job_status_ss_get (lsm_connect *conn, const char *job,
lsm_job_status *status, uint8_t *percent_complete, lsm_fs_ss **ss,
lsm_flag flags);
π ARGUMENTS π
connβ a valid connection pointer, bestie. no fake ones, no NULLs, we check.jobβ a string. it's the job id you wanna check on. the little name tag of the task.statusβ output pointer oflsm_job_status. the possible values are, and I quote, a whole vibe:LSM_JOB_COMPLETEβ job complete with no error. ate and left no crumbs. πLSM_JOB_ERRORβ job complete with error. π it tried.LSM_JOB_INPROGRESSβ job is still in progress. it's giving "loadingβ¦" energy, be patient.
percent_completeβ output pointer ofuint8_t. percent job complete, domain0..100. so like, how done are we. very main-character-progress-bar.ssβ output pointer oflsm_fs_ssfor the completed operation. and listen: the returned value must be freed with a call tolsm_fs_ss_record_free. do not ghost it. it will leak and you will be sad. π«Άflagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. don't get creative, the future hasn't happened yet. π
β VERSION β
1.0 β the classic. iconic. no notes.
π DESCRIPTION π
Check on the status of a job and return the snapshot information when it's complete. that's it, that's the whole thing. you ask "hey how's that job doing", and when it's done it hands you the snapshot info too. two birds, one extremely efficient system call. π
π₯ RETURN π₯
Error code as enumerated by lsm_error_number. the lineup:
LSM_ERR_OKβ on success. slay. β¨LSM_ERR_INVALID_ARGUMENTβ when any argument isNULL, or not a validlsm_connectpointer, or the flags are invalid. basically "girl what did you pass me". πLSM_ERR_NOT_FOUND_JOBβ when the job is not found. it's not here. it never was. move on. π
heads up bestie:ssis an output pointer, so if you don't calllsm_fs_ss_record_freeon what comes back, that memory is just out there, unattended, in the wild. free it. for me. π₯Ί
that's the whole page fr fr β written up in the Libstoragemgmt C API Manual, version lsm_job_status_ss_get(3), dated February 2026. mwah. go forth and check your jobs, queen. πππ¦
π¦ 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