Update the Windows installer

Update the EULA copyright year to 2013, auto-generate the product ID,
remove the comment field and allow per-user installs.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Fix copy/paste error in windowsaio register/unregister function names.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Enable forced 32-bit build on Windows

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile: fixup init.c dependency

Signed-off-by: Jens Axboe <axboe@kernel.dk>
windowsaio: fix file header format and improve error reporting.

Use the same file header format as other engines.
Remove the copyright line.
Add calls to log_err to improve error reporting.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Add --build-32bit-win switch to configure --help output.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Handle percentile lists with higher precision that 2 digits

We cap the output at %2.2f right now, that's not always enough.
Make the parser check and store the precision required to
output the list correctly.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Cleanup the percentile output formatting

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Handle normal output wrapping of the percentile list

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Get rid of fallocate on Windows

Fallocate is only useful if it is a fast operation, helping the
file system allocate and setup meta data for the given size.
So don't punt to zero filling the entire thing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Windows: fix sysconf(_SC_PHYS_PAGES).

sysconf(_SC_PHYS_PAGES) was returning the number of bytes of memory
instead of the number of pages. Also improve some error messages in
sysconf(). Update os_phys_mem() to use sysconf().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Windows: fix mlock, remove ftruncate and fix error handling.

Functions in posix.c need to use win_to_posix_err to convert errors from
Windows API calls to their equivalent POSIX error code so perror etc.
work: move it into posix.c and add the prototype to posix.h.

Fix error handling so -1 is always returned on error and errno is set.

Fix mlock to work with sizes greater than about 1MB: the working set size
needs to be increased for the new allocation.

Remove ftruncate from posix.c, since MinGW already provides it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Fix crash and precision of ETA with zones

If zonesize was bigger than zoneskip, we could encounter a divide by
zero when calculating the number of bytes.

Additionally, the math was just wrong for most cases of zone settings.
Improve that.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat: fix wrong type used for 32-bit compiles

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Fix zones for numjobs=x, where x > 1

In the options fixup, we auto-set open_files to 1 if it hasn't been set.
So any duplicated jobs will clear the zone. Fixup the check to properly
check for > 1 open files.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makfile: use LINK for the link phase

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/log: include minmax.h for min()

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

Conflicts:
	Makefile
	configure
	fio.h

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