Whamcloud - gitweb
LU-11407 tgt: cleanup job_stats output printing 39/48539/2
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 13 Sep 2022 18:30:05 +0000 (11:30 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 26 Sep 2022 16:57:34 +0000 (16:57 +0000)
commit56c0d6316fbf29eac019f5a7c823199592027b25
treedc914f103209755e7b2ccfe1ed6eba28da7256e4
parent320252bb6030d44dd7376e6da8db357883747114
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.  We can't use the kernel "%*pE"
escape format, because that doesn't have any option to escape
printable characters like quotes or regular spaces.

Lustre-change: https://review.whamcloud.com/37764
Lustre-commit: 338381574b643da064e90e44d75be85d1be3a93c

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If6a0bc4276fae03305f94e8c85d8f109913ebbe5
Reviewed-by: Ben Evans <beevans@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-on: https://review.whamcloud.com/48539
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/lprocfs_jobstats.c
lustre/tests/sanity.sh