lsm_job_status_get(3)
β¨ lsm_job_status_get β¨
okay bestie, so we're in the Libstoragemgmt C API Manual and today's main character is lsm_job_status_get(3) π
she's the one you call when you just wanna know how's my job doing without asking for a whole data dump back. lowkey the chillest little function in the whole library.
πΈ NAME πΈ
lsm_job_status_get β check on the status of a job with no data returned.
like... just vibes and a status, no receipts π«Ά
π SYNOPSIS π
int lsm_job_status_get (lsm_connect *conn, const char *job_id,
lsm_job_status *status, uint8_t *percent_complete, lsm_flag flags);
π ARGUMENTS π
connβ a valid connection, bestie. gotta be legit or she's not talking to you.job_idβ aString. it's the job id, iykyk. the little name tag your job's been wearing this whole time.statusβ output pointer oflsm_job_status. she writes the answer here. the possible values are literally:LSM_JOB_COMPLETEβ job complete, no error. we ate and left no crumbs β¨LSM_JOB_ERRORβ job complete but with an error. not the vibe πLSM_JOB_INPROGRESSβ job is still in progress. she's cooking, give her a minute π
percent_completeβ output pointer ofuint8_t. percent job complete. domain0..100, so don't come at her with 137, she will not know what to do with that.flagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. like, that's the only accepted value, periodt.
π VERSION π
1.0 β she's been iconic since day one, no cap.
π¦ DESCRIPTION π¦
Check on the status of a job β no data, or just ignore the data that comes back on completion. that's it. that's the whole function. you want the status, not the whole story, and honestly? respect π«Ά
β RETURN β
error code as enumerated by lsm_error_number. the way this function hands you a whole enum instead of just being normal π here's the rundown:
LSM_ERR_OKβ on success. slay.LSM_ERR_INVALID_ARGUMENTβ when any argument isNULL, or it's not a validlsm_connectpointer, or the flags are invalid. basically she clocked you πLSM_ERR_NOT_FOUND_JOBβ when the job is not found. that job is gone gone π
ngl, ifjob_iddoesn't exist you're gettingLSM_ERR_NOT_FOUND_JOBand there's no cute workaround, that's just the truth fr fr.
kisses, and good luck out there with your jobs π β this was the Libstoragemgmt C API Manual, page lsm_job_status_get(3), in the lsm_job_status_get edition, dated February 2026. mwah, go check on your jobs bestie π§π
π¦ 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