projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0922d61
)
Enlarge probe version field
author
Jens Axboe
<axboe@kernel.dk>
Mon, 16 Apr 2012 09:44:48 +0000
(11:44 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 16 Apr 2012 09:49:05 +0000
(11:49 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
server.c
patch
|
blob
|
blame
|
history
server.h
patch
|
blob
|
blame
|
history
diff --git
a/server.c
b/server.c
index 1487d80a46945c329b595c5f36d3b2221e8b7179..169f50ad2a190386258deea14a0009c6ef975227 100644
(file)
--- a/
server.c
+++ b/
server.c
@@
-405,7
+405,7
@@
static int handle_probe_cmd(struct fio_net_cmd *cmd)
#ifdef FIO_BIG_ENDIAN
probe.bigendian = 1;
#endif
- str
cpy((char *) probe.fio_version, fio_version_string
);
+ str
ncpy((char *) probe.fio_version, fio_version_string, sizeof(probe.fio_version)
);
probe.os = FIO_OS;
probe.arch = FIO_ARCH;
diff --git
a/server.h
b/server.h
index d62eeb01ed51a582d940bcf9f570e3fafd2ac1cc..494a40a9499a21c8f0aeee49f7cb0ed43243e89c 100644
(file)
--- a/
server.h
+++ b/
server.h
@@
-78,7
+78,7
@@
struct cmd_du_pdu {
struct cmd_probe_pdu {
uint8_t hostname[64];
uint8_t bigendian;
- uint8_t fio_version[
8
];
+ uint8_t fio_version[
32
];
uint8_t os;
uint8_t arch;
uint8_t bpp;