client: support --status-interval option in client/server mode
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 5 Aug 2018 16:30:14 +0000 (09:30 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 5 Aug 2018 21:12:12 +0000 (15:12 -0600)
commitb87ed299820c26e8c4271294b0c5037e8d0a3d4a
tree446a951f9c4c5c5afc06d7b4d7f175c0a214d2ff
parent1d73ff2a4a8f02905cf338b2f0286d76d64e7c2a
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 <Mark.Beierl@dell.com>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c