fio.git
12 years agoMerge branch 'master' into client-server
Jens Axboe [Wed, 12 Oct 2011 07:47:25 +0000 (09:47 +0200)]
Merge branch 'master' into client-server

Conflicts:
init.c
io_u.c
os/windows/install.wxs
os/windows/version.h

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFix bad random offset generation for file map
Jens Axboe [Wed, 12 Oct 2011 07:42:33 +0000 (09:42 +0200)]
Fix bad random offset generation for file map

If OS_RAND_MAX and FRAND_MAX are different, then ensure that
we use the right one. If not, our lookup cache could be outside
the allowed range, thus causing a segfault by indexing
f->file_map beyond end of the array.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFix off-by-one in jobs_eta allocation
Jens Axboe [Wed, 12 Oct 2011 07:20:34 +0000 (09:20 +0200)]
Fix off-by-one in jobs_eta allocation

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: cleanup bit printing
Jens Axboe [Tue, 11 Oct 2011 13:07:23 +0000 (15:07 +0200)]
client: cleanup bit printing

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: include 32/64-bit in probe
Jens Axboe [Tue, 11 Oct 2011 12:30:06 +0000 (14:30 +0200)]
server: include 32/64-bit in probe

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient/server: fix ptr <-> uint64_t casting warnings on 32-bit builds
Jens Axboe [Tue, 11 Oct 2011 12:25:08 +0000 (14:25 +0200)]
client/server: fix ptr <-> uint64_t casting warnings on 32-bit builds

Not actually a bug, but gcc complains.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: dec sum_stat_clients if one a client is disconnected
Jens Axboe [Tue, 11 Oct 2011 12:20:22 +0000 (14:20 +0200)]
client: dec sum_stat_clients if one a client is disconnected

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: display summed total of all clients when all stats have been received
Jens Axboe [Tue, 11 Oct 2011 12:08:33 +0000 (14:08 +0200)]
client: display summed total of all clients when all stats have been received

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: error handling fixes
Jens Axboe [Tue, 11 Oct 2011 10:16:32 +0000 (12:16 +0200)]
server: error handling fixes

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: assume PID is dead on ESRCH
Jens Axboe [Tue, 11 Oct 2011 09:45:35 +0000 (11:45 +0200)]
server: assume PID is dead on ESRCH

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient/server: track and handle command timeouts
Jens Axboe [Tue, 11 Oct 2011 08:15:51 +0000 (10:15 +0200)]
client/server: track and handle command timeouts

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFio 1.99.4 fio-1.99.4
Jens Axboe [Mon, 10 Oct 2011 19:30:42 +0000 (21:30 +0200)]
Fio 1.99.4

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: fread() - check <= 0 return value
Jens Axboe [Mon, 10 Oct 2011 19:16:55 +0000 (21:16 +0200)]
server: fread() - check <= 0 return value

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: duplicate arguments to "empty" clients
Jens Axboe [Mon, 10 Oct 2011 19:11:09 +0000 (21:11 +0200)]
client: duplicate arguments to "empty" clients

Now you can do:

fio --client=host1 --client=host2 --arg1 --arg2 --arg3

and arg1,2,3 are passed to both clients. If you do:

fio --client=host1 --arg1 --client=host2 --arg2 --arg3

then arg1 is passed to host1, while arg2,3 are passed to host2.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: improve pidfile and log handling
Jens Axboe [Mon, 10 Oct 2011 17:51:26 +0000 (19:51 +0200)]
server: improve pidfile and log handling

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: write pid file for backgrounded server to specified file
Jens Axboe [Mon, 10 Oct 2011 13:28:58 +0000 (15:28 +0200)]
server: write pid file for backgrounded server to specified file

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: properly assign client eta in flight
Jens Axboe [Mon, 10 Oct 2011 12:36:07 +0000 (14:36 +0200)]
client: properly assign client eta in flight

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAbstract out and export summation of thread_stats
Jens Axboe [Mon, 10 Oct 2011 10:14:30 +0000 (12:14 +0200)]
Abstract out and export summation of thread_stats

Client side will need it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient/server: few select speedups
Jens Axboe [Mon, 10 Oct 2011 07:55:21 +0000 (09:55 +0200)]
client/server: few select speedups

Don't alloc/free when we can reuse, and don't calculate string
lengths twice.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: track pending ETA requests
Jens Axboe [Mon, 10 Oct 2011 06:56:18 +0000 (08:56 +0200)]
client: track pending ETA requests

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoinit: typo, remove -> remote.
Jens Axboe [Mon, 10 Oct 2011 06:33:18 +0000 (08:33 +0200)]
init: typo, remove -> remote.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient/server: request ETA instead of having the server send it automatically
Jens Axboe [Sun, 9 Oct 2011 19:54:10 +0000 (21:54 +0200)]
client/server: request ETA instead of having the server send it automatically

Also changes the 'serial' of the command to a tag, that's passed
back and forth for commands that need to use it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: sum running ETA of jobs
Jens Axboe [Sun, 9 Oct 2011 10:19:08 +0000 (12:19 +0200)]
client: sum running ETA of jobs

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: fix jobs_eta conversion typo
Jens Axboe [Sun, 9 Oct 2011 10:13:39 +0000 (12:13 +0200)]
client: fix jobs_eta conversion typo

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoUpdate TODO
Jens Axboe [Sat, 8 Oct 2011 19:50:01 +0000 (21:50 +0200)]
Update TODO

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAdd protocol support for an arbitrary number of command line arguments
Jens Axboe [Sat, 8 Oct 2011 19:07:29 +0000 (21:07 +0200)]
Add protocol support for an arbitrary number of command line arguments

Make it more efficient as well, don't pass a lot of potentially
padded space, pass only the exact amount required.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFix Windows issue with socklen_t
Bruce Cran [Sat, 8 Oct 2011 16:51:22 +0000 (18:51 +0200)]
Fix Windows issue with socklen_t

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFix compile on FreeBSD
Bruce Cran [Sat, 8 Oct 2011 16:50:34 +0000 (18:50 +0200)]
Fix compile on FreeBSD

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: used hostname passed back in probe as log prefix
Jens Axboe [Fri, 7 Oct 2011 14:35:56 +0000 (16:35 +0200)]
client: used hostname passed back in probe as log prefix

It's better than the connect name/IP/sock.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFio 1.99.3 fio-1.99.3
Jens Axboe [Fri, 7 Oct 2011 11:41:00 +0000 (13:41 +0200)]
Fio 1.99.3

1.99.2 had a few silly bugs, tag 1.99.3 since I wont be working
on this for the next few days.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoMakefile: use -O3 by default
Jens Axboe [Fri, 7 Oct 2011 11:31:23 +0000 (13:31 +0200)]
Makefile: use -O3 by default

Should be safe.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFix warning when clang is used as the compiler
Jens Axboe [Fri, 7 Oct 2011 11:26:27 +0000 (13:26 +0200)]
Fix warning when clang is used as the compiler

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoMakefile: move -rdynamic to linking flag
Jens Axboe [Fri, 7 Oct 2011 11:24:16 +0000 (13:24 +0200)]
Makefile: move -rdynamic to linking flag

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: pretty up probe output
Jens Axboe [Fri, 7 Oct 2011 11:11:14 +0000 (13:11 +0200)]
client: pretty up probe output

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: properly configure port without argument
Jens Axboe [Fri, 7 Oct 2011 11:19:28 +0000 (13:19 +0200)]
server: properly configure port without argument

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: don't clear client->addr after it's been set
Jens Axboe [Fri, 7 Oct 2011 11:04:05 +0000 (13:04 +0200)]
client: don't clear client->addr after it's been set

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: ensure to set proper port
Jens Axboe [Fri, 7 Oct 2011 10:55:14 +0000 (12:55 +0200)]
server: ensure to set proper port

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoPass arch/os in probe
Jens Axboe [Fri, 7 Oct 2011 10:47:57 +0000 (12:47 +0200)]
Pass arch/os in probe

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: fix mem leak
Jens Axboe [Fri, 7 Oct 2011 10:23:34 +0000 (12:23 +0200)]
client: fix mem leak

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoPoll server idle loop any time the main status thread sleeps
Jens Axboe [Fri, 7 Oct 2011 10:16:19 +0000 (12:16 +0200)]
Poll server idle loop any time the main status thread sleeps

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFio 1.99.2 fio-1.99.2
Jens Axboe [Fri, 7 Oct 2011 08:18:51 +0000 (10:18 +0200)]
Fio 1.99.2

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: increase default max pdu length to 1024
Jens Axboe [Fri, 7 Oct 2011 08:12:47 +0000 (10:12 +0200)]
server: increase default max pdu length to 1024

It was set low to 64 to debug issues with fragmentation and
defragmentation of packages. Bump version to 3 as well since
this breaks the protocol with older clients.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: remove leftover debug printf()
Jens Axboe [Fri, 7 Oct 2011 08:11:05 +0000 (10:11 +0200)]
client: remove leftover debug printf()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoSplit version into separate include fio
Jens Axboe [Fri, 7 Oct 2011 08:10:18 +0000 (10:10 +0200)]
Split version into separate include fio

Include it from the Windows version file, at least we only have
to update the version in two places now instead of three.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoRemember to clear client cookie
Jens Axboe [Fri, 7 Oct 2011 08:07:22 +0000 (10:07 +0200)]
Remember to clear client cookie

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: fix bad interpretation of local socket binding
Jens Axboe [Fri, 7 Oct 2011 08:03:44 +0000 (10:03 +0200)]
server: fix bad interpretation of local socket binding

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoUnify client/server argument
Jens Axboe [Fri, 7 Oct 2011 08:00:51 +0000 (10:00 +0200)]
Unify client/server argument

Add documentation as well for client/server.
Get rid of name hash for clients, just pass a cookie back and forth.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: fix += -> + typo
Jens Axboe [Thu, 6 Oct 2011 19:33:29 +0000 (21:33 +0200)]
server: fix += -> + typo

We don't want to free inside the range...

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoUpdate TODO
Jens Axboe [Thu, 6 Oct 2011 19:30:10 +0000 (21:30 +0200)]
Update TODO

Add error handling note, remove bind note (that's done).

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoRemember to close sockets on error
Jens Axboe [Thu, 6 Oct 2011 19:27:10 +0000 (21:27 +0200)]
Remember to close sockets on error

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAdd support for client/server connection over unix domain sockets
Jens Axboe [Thu, 6 Oct 2011 19:24:13 +0000 (21:24 +0200)]
Add support for client/server connection over unix domain sockets

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agonet: support for unix domain sockets
Jens Axboe [Thu, 6 Oct 2011 18:08:53 +0000 (20:08 +0200)]
net: support for unix domain sockets

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: add hashes for fd/name lookups
Jens Axboe [Thu, 6 Oct 2011 10:37:50 +0000 (12:37 +0200)]
client: add hashes for fd/name lookups

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAdd jhash (Jenkins hash) and use that for file names
Jens Axboe [Thu, 6 Oct 2011 10:37:10 +0000 (12:37 +0200)]
Add jhash (Jenkins hash) and use that for file names

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoCorrectly handle multiple clients for various command line arguments
Jens Axboe [Thu, 6 Oct 2011 07:18:20 +0000 (09:18 +0200)]
Correctly handle multiple clients for various command line arguments

Now this works:

fio -C host1 --cmdhelp=ioengine -C host2 --cmdhelp=ioengine

etc.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoOnly print usage() on error
Jens Axboe [Thu, 6 Oct 2011 07:01:22 +0000 (09:01 +0200)]
Only print usage() on error

If we did some command line argument (like version), then don't
print the usage.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFio 1.99.1 fio-1.99.1
Jens Axboe [Wed, 5 Oct 2011 20:14:31 +0000 (22:14 +0200)]
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>
12 years agoserver: quit on !block and backend exit
Jens Axboe [Wed, 5 Oct 2011 20:05:37 +0000 (22:05 +0200)]
server: quit on !block and backend exit

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: require poll before fio_net_recv_cmd()
Jens Axboe [Wed, 5 Oct 2011 19:58:45 +0000 (21:58 +0200)]
server: require poll before fio_net_recv_cmd()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: improve handling of multiple clients
Jens Axboe [Wed, 5 Oct 2011 19:00:56 +0000 (21:00 +0200)]
client: improve handling of multiple clients

Don't serialize around reading from one of them.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: disconnect on read failure
Jens Axboe [Wed, 5 Oct 2011 18:45:37 +0000 (20:45 +0200)]
client: disconnect on read failure

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: send quit if we don't add a job
Jens Axboe [Wed, 5 Oct 2011 18:41:06 +0000 (20:41 +0200)]
server: send quit if we don't add a job

Otherwise the client gets stuck.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: ensure that cmd line arguments are always run
Jens Axboe [Wed, 5 Oct 2011 18:31:30 +0000 (20:31 +0200)]
client: ensure that cmd line arguments are always run

Even if they don't create a job, like --version etc.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoparser: always use the fio logging instead of stderr/stdout
Jens Axboe [Wed, 5 Oct 2011 18:30:24 +0000 (20:30 +0200)]
parser: always use the fio logging instead of stderr/stdout

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: check and error out on exceeding number of command line args to pass
Jens Axboe [Wed, 5 Oct 2011 15:35:15 +0000 (17:35 +0200)]
client: check and error out on exceeding number of command line args to pass

Also cleanup up the handling of them, using a flag to know which
options to handle locally vs remotely.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoEscape minus signs in manpage to fix lintian warning:
Martin Steigerwald [Wed, 5 Oct 2011 09:41:54 +0000 (11:41 +0200)]
Escape minus signs in manpage to fix lintian warning:

I: fio: hyphen-used-as-minus-sign usr/share/man/man1/fio.1.gz:934

see:
http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoEscape minus signs in manpage to fix lintian warning:
Martin Steigerwald [Wed, 5 Oct 2011 09:41:54 +0000 (11:41 +0200)]
Escape minus signs in manpage to fix lintian warning:

I: fio: hyphen-used-as-minus-sign usr/share/man/man1/fio.1.gz:934

see:
http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFix for hosed end-of-run log numbers
Jens Axboe [Wed, 5 Oct 2011 12:07:07 +0000 (14:07 +0200)]
Fix for hosed end-of-run log numbers

For queued IO workloads, we complete the pending count in one
go at the end of the run. But the completion time isn't updated,
so we end up getting a lot of tail log entries that are identical
if the timing is against us.

Fix this by only accounting the first of the last batch of ios.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAdd support for write_iops_log
Jens Axboe [Wed, 5 Oct 2011 12:02:22 +0000 (14:02 +0200)]
Add support for write_iops_log

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoMove endian support out of server.h
Jens Axboe [Wed, 5 Oct 2011 10:40:49 +0000 (12:40 +0200)]
Move endian support out of server.h

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoEndian sanity check
Jens Axboe [Wed, 5 Oct 2011 10:39:06 +0000 (12:39 +0200)]
Endian sanity check

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoclient: prefix server text messages with <hostname>
Jens Axboe [Wed, 5 Oct 2011 09:55:08 +0000 (11:55 +0200)]
client: prefix server text messages with <hostname>

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFix warnings about unused fwrite() return value
Jens Axboe [Wed, 5 Oct 2011 09:50:47 +0000 (11:50 +0200)]
Fix warnings about unused fwrite() return value

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFio 1.99 fio-1.99
Jens Axboe [Wed, 5 Oct 2011 08:29:34 +0000 (10:29 +0200)]
Fio 1.99

Now that network functionality is mostly done, tag a pre 2.0 version
as 1.99.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoRemove float conversion from TODO
Jens Axboe [Wed, 5 Oct 2011 08:29:21 +0000 (10:29 +0200)]
Remove float conversion from TODO

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFio 1.59 fio-1.59
Jens Axboe [Wed, 5 Oct 2011 08:28:11 +0000 (10:28 +0200)]
Fio 1.59

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAdd IEEE 754 test case
Jens Axboe [Wed, 5 Oct 2011 08:25:54 +0000 (10:25 +0200)]
Add IEEE 754 test case

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoRe-enable -O2 optimization
Jens Axboe [Wed, 5 Oct 2011 08:14:19 +0000 (10:14 +0200)]
Re-enable -O2 optimization

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agot/stest: add log.o smaller helper
Jens Axboe [Wed, 5 Oct 2011 08:14:03 +0000 (10:14 +0200)]
t/stest: add log.o smaller helper

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoPrint usage if no arguments are given
Jens Axboe [Wed, 5 Oct 2011 07:56:53 +0000 (09:56 +0200)]
Print usage if no arguments are given

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoMerge branch 'master' into client-server
Jens Axboe [Wed, 5 Oct 2011 07:55:28 +0000 (09:55 +0200)]
Merge branch 'master' into client-server

Conflicts:
init.c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoDon't overwrite -t timeout setting in fill_def_thread()
Jens Axboe [Wed, 5 Oct 2011 07:54:30 +0000 (09:54 +0200)]
Don't overwrite -t timeout setting in fill_def_thread()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoChange network transmitted doubles to fio_fp64_t IEEE 754 type
Jens Axboe [Wed, 5 Oct 2011 07:51:58 +0000 (09:51 +0200)]
Change network transmitted doubles to fio_fp64_t IEEE 754 type

Encode and decode when transferring over the network.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAdd IEEE 754 pack and unpack helpers
Jens Axboe [Wed, 5 Oct 2011 06:43:47 +0000 (08:43 +0200)]
Add IEEE 754 pack and unpack helpers

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoRemove endianness TODO, should be done now
Jens Axboe [Tue, 4 Oct 2011 22:38:04 +0000 (00:38 +0200)]
Remove endianness TODO, should be done now

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAIX fixes
Jens Axboe [Tue, 4 Oct 2011 22:16:11 +0000 (00:16 +0200)]
AIX fixes

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAssume AIX is big endian
Jens Axboe [Tue, 4 Oct 2011 21:54:28 +0000 (23:54 +0200)]
Assume AIX is big endian

Probably lots of PPC boxes on AIX out there than Intel...

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoAdd fio_socklen_t
Jens Axboe [Tue, 4 Oct 2011 21:50:28 +0000 (23:50 +0200)]
Add fio_socklen_t

HPUX decides to be different yet again, add an OS typedef
to handle this instead of ifdefs in the code.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agolog: don't use vsyslog
Jens Axboe [Tue, 4 Oct 2011 21:46:22 +0000 (23:46 +0200)]
log: don't use vsyslog

AIX/HPUX don't have it at least, and since we use a crappy
fixed length buffer anyway, just use syslog().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: portability fixups
Jens Axboe [Tue, 4 Oct 2011 21:35:02 +0000 (23:35 +0200)]
server: portability fixups

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoFinalize (?) byte swap/endian stuff
Jens Axboe [Tue, 4 Oct 2011 21:31:00 +0000 (23:31 +0200)]
Finalize (?) byte swap/endian stuff

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: log locally if connection isn't up yet
Jens Axboe [Tue, 4 Oct 2011 15:32:16 +0000 (17:32 +0200)]
server: log locally if connection isn't up yet

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoGeneric endianness typo
Jens Axboe [Tue, 4 Oct 2011 14:02:51 +0000 (16:02 +0200)]
Generic endianness typo

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoUpdate TODO
Jens Axboe [Tue, 4 Oct 2011 13:11:44 +0000 (15:11 +0200)]
Update TODO

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: cast sockaddr_in for accept()
Jens Axboe [Tue, 4 Oct 2011 13:07:43 +0000 (15:07 +0200)]
server: cast sockaddr_in for accept()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: log where connection is coming from
Jens Axboe [Tue, 4 Oct 2011 13:06:42 +0000 (15:06 +0200)]
server: log where connection is coming from

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoserver: fix sk typo and add endian type to probe
Jens Axboe [Tue, 4 Oct 2011 13:00:30 +0000 (15:00 +0200)]
server: fix sk typo and add endian type to probe

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoNeed signal.h for sigaction()
Jens Axboe [Tue, 4 Oct 2011 12:50:21 +0000 (14:50 +0200)]
Need signal.h for sigaction()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoMore endianness for platforms
Jens Axboe [Tue, 4 Oct 2011 12:45:20 +0000 (14:45 +0200)]
More endianness for platforms

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 years agoWider endianness support
Jens Axboe [Tue, 4 Oct 2011 12:30:33 +0000 (14:30 +0200)]
Wider endianness support

Signed-off-by: Jens Axboe <axboe@kernel.dk>