From: Jens Axboe Date: Tue, 4 Oct 2011 07:00:40 +0000 (+0200) Subject: client: probe command support X-Git-Tag: fio-1.99~40 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=2e03b4b2a072b79946b0ee651dff38273868473a;p=fio.git client: probe command support Signed-off-by: Jens Axboe --- diff --git a/client.c b/client.c index 0a93be0c..b82c322c 100644 --- a/client.c +++ b/client.c @@ -366,6 +366,14 @@ static void handle_eta(struct fio_net_cmd *cmd) display_thread_status(je); } +static void handle_probe(struct fio_net_cmd *cmd) +{ + struct cmd_probe_pdu *probe = (struct cmd_probe_pdu *) cmd->payload; + + log_info("Probe: %s: %u.%u.%u\n", probe->hostname, probe->fio_major, + probe->fio_minor, probe->fio_patch); +} + static int handle_client(struct fio_client *client) { struct fio_net_cmd *cmd; @@ -398,6 +406,10 @@ static int handle_client(struct fio_client *client) handle_eta(cmd); free(cmd); break; + case FIO_NET_CMD_PROBE: + handle_probe(cmd); + free(cmd); + break; default: log_err("fio: unknown client op: %d\n", cmd->opcode); free(cmd);