From e3f53a5fa5c086b685eb1f0e8d3c96780faabd49 Mon Sep 17 00:00:00 2001 From: Lei Feng Date: Tue, 28 Feb 2023 09:38:22 +0800 Subject: [PATCH] LU-16555 obdclass: quote jobid with ':' char quote jobid with ':' char even though ':' is printed literally. Fixes: 12604ac4de (LU-16555 obdclass: print more special chars for jobid) Test-Parameters: trivial Signed-off-by: Lei Feng Change-Id: I8bf642180b00f068921598c3a0ea30b4f5b99c1e --- lustre/obdclass/lprocfs_jobstats.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/obdclass/lprocfs_jobstats.c b/lustre/obdclass/lprocfs_jobstats.c index ea23327..2173f27 100644 --- a/lustre/obdclass/lprocfs_jobstats.c +++ b/lustre/obdclass/lprocfs_jobstats.c @@ -462,6 +462,9 @@ static int lprocfs_jobstats_seq_show(struct seq_file *p, void *v) joblen += 3; } else { escaped[joblen] = *c; + /* if jobid has ':', it should be quoted too */ + if (*c == ':') + quote = "\""; } } -- 1.8.3.1