Whamcloud - gitweb
LU-16251 obdclass: fill jobid in a safe way
authorLei Feng <flei@whamcloud.com>
Wed, 19 Oct 2022 04:10:23 +0000 (12:10 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 11 Nov 2022 09:37:43 +0000 (09:37 +0000)
commit8cc2a35cff7ed7c1d328062af17cba5b0b0c55fd
treef705ebad903d09813f5cf5f189157590794990ff
parent18387a4d126d38bdf195e4fc09e82eee3f7483be
LU-16251 obdclass: fill jobid in a safe way

jobid_interpret_string() does not fill jobid in an atomic way.
So in lustre_get_jobid() give it a buffer first, then copy the
buffer to jobid as a whole.

Lustre-change: https://review.whamcloud.com/48915
Lustre-commit: 9a0a89520e8b57bd63a9343fe3cdc56c61c41f6d

Signed-off-by: Lei Feng <flei@whamcloud.com>
Change-Id: Ib8f6aaa93df31867982a0d142f33d7374a27234f
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49081
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/obdclass/jobid.c