lsm_job_status_fs_get(3)
π lsm_job_status_fs_get β the Libstoragemgmt C API Manual's iconic lil' job-checker π
okay bestie, gather round, because this one is the lsm_job_status_fs_get(3) page and she is serving π
β¨ NAME β¨
lsm_job_status_fs_get β check on the status of a job with lsm_fs returned. yep that's the whole vibe π¦
πΈ SYNOPSIS πΈ
int lsm_job_status_fs_get (lsm_connect *conn, const char *job_id,
lsm_job_status *status, uint8_t *percent_complete, lsm_fs **fs, lsm_flag
flags);
look at her go π six whole parameters, main character energy fr fr
π ARGUMENTS π
connβ a valid connection pointer. like, it has to actually be valid bestie, don't be out here passing nonsense πjob_idβ aString. the job you wanna check on πstatusβ output pointer oflsm_job_status. the possible values are, and I quote the vibes exactly:LSM_JOB_COMPLETEβ job complete with no error. ate and left no crumbs β¨LSM_JOB_ERRORβ job complete with error. not the slay we wanted πLSM_JOB_INPROGRESSβ job is still in progress. she's working on it, be patient π
percent_completeβ output pointer ofuint8_t. percent job complete. domain is0..100, so like, don't come at me with 200, that's not the assignment πfsβ output pointer oflsm_fsfor the completed operation. the returned value must be freed with a call tolsm_fs_record_free. yes literally, you gotta clean up after yourself, no leaving crumbs π§flagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. that's it, that's the whole rule, no improvising π₯
β VERSION β
1.0 β she's a classic, an icon, a legend π
π¦ DESCRIPTION π¦
check on the status of a job and return the fs information when complete. that's the tea β short, sweet, does exactly what it says on the tin, periodt π
π RETURN π
error code as enumerated by 'lsm_error_number'. the lineup:
LSM_ERR_OKβ on success. we love to see it πLSM_ERR_INVALID_ARGUMENTβ when any argument isNULLor not a validlsm_connectpointer or invalid flags. so like, if you passed garbage, that's on you bestie πLSM_ERR_NOT_FOUND_JOBβ when job not found. she's not here, she's booked and busy somewhere else π
anyway, that's the whole page. go forth and check those jobs, and remember: free your fs with lsm_fs_record_free, because leaving memory hanging is not the vibe π«Ά
smooches and this came from the Libstoragemgmt C API Manual, dated February 2026 β lsm_job_status_fs_get, version 1.0, forever iconic, no cap πβ¨π
π¦ 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