X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=server.c;h=27356c67d70f742110a0932a9fbb35486179e352;hb=d79db1222039e906dd49ae290daa59701f4e2385;hp=2bf74b255965c03ec7bf4074ea5d8e10ba4e46c7;hpb=61b29c20eb4b1d374636d5325fb56c0fa9a574ad;p=fio.git diff --git a/server.c b/server.c index 2bf74b25..27356c67 100644 --- a/server.c +++ b/server.c @@ -23,8 +23,6 @@ #include "crc/crc16.h" #include "lib/ieee754.h" -#include "fio_version.h" - int fio_net_port = FIO_NET_PORT; int exit_backend = 0; @@ -624,9 +622,7 @@ static int handle_probe_cmd(struct fio_net_cmd *cmd) #ifdef FIO_BIG_ENDIAN probe.bigendian = 1; #endif - probe.fio_major = FIO_MAJOR; - probe.fio_minor = FIO_MINOR; - probe.fio_patch = FIO_PATCH; + strncpy((char *) probe.fio_version, fio_version_string, sizeof(probe.fio_version)); probe.os = FIO_OS; probe.arch = FIO_ARCH; @@ -675,6 +671,7 @@ static int handle_send_eta_cmd(struct fio_net_cmd *cmd) je->elapsed_sec = cpu_to_le64(je->elapsed_sec); je->eta_sec = cpu_to_le64(je->eta_sec); je->nr_threads = cpu_to_le32(je->nr_threads); + je->is_pow2 = cpu_to_le32(je->is_pow2); fio_net_send_cmd(server_fd, FIO_NET_CMD_ETA, je, size, &tag, NULL); free(je);