From 2e03b4b2a072b79946b0ee651dff38273868473a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 4 Oct 2011 09:00:40 +0200 Subject: [PATCH] client: probe command support Signed-off-by: Jens Axboe --- client.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- 2.25.1