summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-04-16 09:52:22 +0200
committerJens Axboe <axboe@kernel.dk>2012-04-16 09:52:22 +0200
commit0922d61ffe92cf10a563d7168decec84ab7a0d16 (patch)
tree44d43309e5bcdec40127454ed8cfb9f225c7b75d
parent075fa7bb64317a785892da060d6f0caf20822f18 (diff)
downloadfio-0922d61ffe92cf10a563d7168decec84ab7a0d16.tar.gz
Get rid of fio_version.h
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--client.c4
-rw-r--r--fio_version.h8
-rw-r--r--init.c2
-rwxr-xr-xos/windows/install.wxs2
-rw-r--r--server.c6
-rw-r--r--server.h6
6 files changed, 6 insertions, 22 deletions
diff --git a/client.c b/client.c
index ee6765ed..0ce7a6eb 100644
--- a/client.c
+++ b/client.c
@@ -816,9 +816,9 @@ static void handle_probe(struct fio_client *client, struct fio_net_cmd *cmd)
sprintf(bit, "%d-bit", probe->bpp * 8);
- log_info("hostname=%s, be=%u, %s, os=%s, arch=%s, fio=%u.%u.%u\n",
+ log_info("hostname=%s, be=%u, %s, os=%s, arch=%s, fio=%s\n",
probe->hostname, probe->bigendian, bit, os, arch,
- probe->fio_major, probe->fio_minor, probe->fio_patch);
+ probe->fio_version);
if (!client->name)
client->name = strdup((char *) probe->hostname);
diff --git a/fio_version.h b/fio_version.h
deleted file mode 100644
index 34b57844..00000000
--- a/fio_version.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef FIO_VERSION_H
-#define FIO_VERSION_H
-
-#define FIO_MAJOR 2
-#define FIO_MINOR 0
-#define FIO_PATCH 7
-
-#endif
diff --git a/init.c b/init.c
index 1eea800c..3865d099 100644
--- a/init.c
+++ b/init.c
@@ -23,8 +23,6 @@
#include "lib/getopt.h"
-#include "fio_version.h"
-
const char fio_version_string[] = FIO_VERSION;
#define FIO_RANDSEED (0xb1899bedUL)
diff --git a/os/windows/install.wxs b/os/windows/install.wxs
index d3d683e7..18091bee 100755
--- a/os/windows/install.wxs
+++ b/os/windows/install.wxs
@@ -10,7 +10,7 @@
<Product Id="*"
Codepage="1252" Language="1033"
Manufacturer="fio" Name="FIO"
- UpgradeCode="{2338A332-5511-43cf-b9BD-5C60496CCFCC}" Version="$(env.FIO_MAJOR).$(env.FIO_MINOR).$(env.FIO_PATCH)">
+ UpgradeCode="{2338A332-5511-43cf-b9BD-5C60496CCFCC}" Version="$(env.FIO_VERSION)">
<Package
Comments="Contact: Your local administrator"
Description="Flexible IO Tester"
diff --git a/server.c b/server.c
index 33f69ef6..1487d80a 100644
--- a/server.c
+++ b/server.c
@@ -22,8 +22,6 @@
#include "crc/crc16.h"
#include "lib/ieee754.h"
-#include "fio_version.h"
-
int fio_net_port = 8765;
int exit_backend = 0;
@@ -407,9 +405,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;
+ strcpy((char *) probe.fio_version, fio_version_string);
probe.os = FIO_OS;
probe.arch = FIO_ARCH;
diff --git a/server.h b/server.h
index 27da94f2..d62eeb01 100644
--- a/server.h
+++ b/server.h
@@ -36,7 +36,7 @@ struct fio_net_int_cmd {
};
enum {
- FIO_SERVER_VER = 6,
+ FIO_SERVER_VER = 7,
FIO_SERVER_MAX_PDU = 1024,
@@ -78,9 +78,7 @@ struct cmd_du_pdu {
struct cmd_probe_pdu {
uint8_t hostname[64];
uint8_t bigendian;
- uint8_t fio_major;
- uint8_t fio_minor;
- uint8_t fio_patch;
+ uint8_t fio_version[8];
uint8_t os;
uint8_t arch;
uint8_t bpp;