From: Tomohiro Kusumi Date: Sun, 5 Aug 2018 16:30:14 +0000 (-0700) Subject: client: support --status-interval option in client/server mode X-Git-Tag: fio-3.9~46 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=b87ed299820c26e8c4271294b0c5037e8d0a3d4a client: support --status-interval option in client/server mode This fixes "FIO client/server periodic stats" for non JSON output (the reporter is using JSON output). https://www.spinics.net/lists/fio/msg07204.html Mark -L/--status-interval option with FIO_CLIENT_FLAG, so that the command line string is sent to the server side. The client can now control the server to periodically show status, and each status is sent to the client via fio_server_text_output() (FIO_NET_CMD_TEXT socket event) in log_info_buf(). Reported-by: Mark Beierl Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index ede0a8b9..06f69719 100644 --- a/init.c +++ b/init.c @@ -258,7 +258,7 @@ static struct option l_opts[FIO_NR_OPTIONS] = { { .name = (char *) "status-interval", .has_arg = required_argument, - .val = 'L', + .val = 'L' | FIO_CLIENT_FLAG, }, { .name = (char *) "trigger-file",