client: rename send_file() to fio_send_file()
authorJens Axboe <axboe@fb.com>
Mon, 28 Dec 2015 23:16:06 +0000 (16:16 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 28 Dec 2015 23:16:06 +0000 (16:16 -0700)
AIX apparently has a symbol clash.

Signed-off-by: Jens Axboe <axboe@fb.com>
client.c

index df13254a39f0ba2517c85b737b311899e590a254..6c2a1ef3989e54ad39a41918c870bad301d9bc39 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1485,8 +1485,8 @@ static void sendfile_reply(int fd, struct cmd_sendfile_reply *rep,
        fio_net_send_cmd(fd, FIO_NET_CMD_SENDFILE, rep, size, &tag, NULL);
 }
 
-static int send_file(struct fio_client *client, struct cmd_sendfile *pdu,
-                    uint64_t tag)
+static int fio_send_file(struct fio_client *client, struct cmd_sendfile *pdu,
+                        uint64_t tag)
 {
        struct cmd_sendfile_reply *rep;
        struct stat sb;
@@ -1636,7 +1636,7 @@ int fio_handle_client(struct fio_client *client)
                }
        case FIO_NET_CMD_SENDFILE: {
                struct cmd_sendfile *pdu = (struct cmd_sendfile *) cmd->payload;
-               send_file(client, pdu, cmd->tag);
+               fio_send_file(client, pdu, cmd->tag);
                break;
                }
        case FIO_NET_CMD_JOB_OPT: {