Whamcloud - gitweb
LU-11407 tgt: cleanup job_stats output printing
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 10 Jan 2020 21:18:53 +0000 (14:18 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 10 Oct 2021 22:02:01 +0000 (22:02 +0000)
commitfd97eef32b75f47e7189a9ea333db42973ebdf3b
tree55899221bdcd23dfa896fec9d8e97561b3076b14
parentb7d3887436fd5204afe2afce79de6d48eaa0bf54
LU-11407 tgt: cleanup job_stats output printing

Escape non-printable and other special characters in the JobID
name, which may be passed from the client environment, to avoid
breaking YAML format parsing.

Lustre-change: https://review.whamcloud.com/37764
Lustre-commit: TBD (from 953c674fa9b9ae6f20e2cbdd8ed17cadd17922c9)

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If6a0bc4276fae03305f94e8c85d8f109913ebbe5
Reviewed-on: https://review.whamcloud.com/45112
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/obdclass/lprocfs_jobstats.c
lustre/tests/sanity.sh