Fix crash with absurdly but not impossibly deeply nested device stacks

Use the proper PATH_MAX for the max path for disk util, and use
snprintf() to avoid potentially overwriting it.

Modified by Jens to return NULL instead of exiting.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
client/server: fixup missing TRIM conversions

Signed-off-by: Jens Axboe <axboe@kernel.dk>
smalloc: alloc failure cleanups

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

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

If this is set, then fio will sum and display just a single set
of statistics for any IO type. By default, fio accounts and reports
each data direction separately.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Add support for idletime profiling

Idletime profiling allows a benchmark to run while filling the
idle cycles on the server, hence giving you some metric of how
much pressure the system is under. This is useful to be able
to profile and compare changes in a setup or driver, for instance.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure: add SCHED_IDLE check

We can't consider it always available on Linux. It fails on
Debian 6.x, for instance.

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

Signed-off-by: Jens Axboe <axboe@kernel.dk>
net engine: implement option "nodelay" for TCP sockets

With disks, O_DIRECT effectively bypasses all buffering/caching mechanisms and
ensures that the I/O is going directly to the disk. Since TCP is a streaming
protocol (like disk I/O), it also has a buffering mechanism. As with disks, it
is sometimes desirable to bypass buffering. To that end, we can use
TCP_NODELAY, which transmits the packet as soon as data is assembled,
regardless of whether it occupies a full frame.

Signed-off-by: Steven Noonan <snoonan@amazon.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
net: fix compile warning on Windows (and others)

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Add empty <netinet/tcp.h> for Windows

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Fix bugs in [v]snprintf usage

When calling snprintf, supply the full buffer size instead of
one byte less.

When using the returned length from vsnprintf for logging, don't write
more than the actual buffer size (minus one for the trailing \0), in
case the formatted string was truncated.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
windows: fix typo in <netinet/tcp.h> header

Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure: add TCP_NODELAY check

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Merge branch 'master' into gfio

Conflicts:
	Makefile
	client.c
	configure
	fio.c
	fio.h
	server.c
	server.h

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