*/
uint16_t cmd_crc16; /* cmd checksum */
uint16_t pdu_crc16; /* payload checksum */
- uint8_t payload[0]; /* payload */
+ uint8_t payload[]; /* payload */
};
struct fio_net_int_cmd {
- struct fio_net_cmd cmd;
struct flist_head list;
struct timeval tv;
uint64_t saved_tag;
+ struct fio_net_cmd cmd;
};
enum {
- FIO_SERVER_VER = 8,
+ FIO_SERVER_VER = 9,
FIO_SERVER_MAX_PDU = 1024,
struct cmd_single_line_pdu {
uint16_t len;
- uint8_t text[0];
+ uint8_t text[];
};
struct cmd_line_pdu {
uint16_t lines;
- struct cmd_single_line_pdu options[0];
+ struct cmd_single_line_pdu options[];
};
struct cmd_start_pdu {
uint32_t jobs;
+ uint32_t stat_outputs;
};
struct cmd_end_pdu {
extern int fio_handle_clients(void);
extern int fio_client_add(const char *, void **);
extern void fio_client_add_cmd_option(void *, const char *);
+extern void fio_client_add_ini_file(void *, const char *);
extern int fio_recv_data(int sk, void *p, unsigned int len);
extern int fio_send_data(int sk, const void *p, unsigned int len);