Fio 1.99.1
Lots of little fixes, tag version 1.99.1. Also bump protocol version,
due to the IEEE 754 packing some of the command payloads were
changed.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/server.c b/server.c
index 6f216d5..c4a0b7e 100644
--- a/server.c
+++ b/server.c
@@ -95,7 +95,7 @@
cmd->pdu_len = le32_to_cpu(cmd->pdu_len);
switch (cmd->version) {
- case FIO_SERVER_VER1:
+ case FIO_SERVER_VER2:
break;
default:
log_err("fio: bad server cmd version %d\n", cmd->version);
@@ -229,12 +229,9 @@
int fio_net_send_simple_cmd(int sk, uint16_t opcode, uint64_t serial)
{
- struct fio_net_cmd cmd = {
- .version = __cpu_to_le16(FIO_SERVER_VER1),
- .opcode = cpu_to_le16(opcode),
- .serial = cpu_to_le64(serial),
- };
+ struct fio_net_cmd cmd;
+ fio_init_net_cmd(&cmd, opcode, NULL, 0);
fio_net_cmd_crc(&cmd);
return fio_send_data(sk, &cmd, sizeof(cmd));