1lsm_job_status_fs_get(3) Libstoragemgmt C API Manual lsm_job_status_fs_get(3)
2
3
4
6 lsm_job_status_fs_get - Check on the status of a job with lsm_fs re‐
7 turned.
8
10 int lsm_job_status_fs_get (lsm_connect *conn, const char *job_id,
11 lsm_job_status *status, uint8_t *percent_complete, lsm_fs **fs,
12 lsm_flag flags);
13
15 conn Valid connection pointer
16
17 job_id String. Job to check
18
19 status Output pointer of lsm_job_status. Possible values are: *
20 LSM_JOB_COMPLETE
21 Job complete with no error. * LSM_JOB_ERROR
22 Job complete with error. * LSM_JOB_INPROGRESS
23 Job is still in progress.
24
25 percent_complete
26 Output pointer of uint8_t. Percent job complete. Domain
27 0..100.
28
29 fs Output pointer of lsm_fs for completed operation. Returned
30 value must be freed with a call to lsm_fs_record_free.
31
32 flags Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
33
35 1.0
36
38 Check on the status of a job and return the fs information when com‐
39 plete.
40
42 Error code as enumerated by 'lsm_error_number'.
43 * LSM_ERR_OK
44 On success.
45 * LSM_ERR_INVALID_ARGUMENT
46 When any argument is NULL or not a valid lsm_connect pointer
47 or invalid flags.
48 * LSM_ERR_NOT_FOUND_JOB
49 When job not found.
50
51
52
53November 2021 lsm_job_status_fs_get lsm_job_status_fs_get(3)