init: force fallocate_mode to none when fallocate is unsupported
authorSitsofe Wheeler <sitsofe@yahoo.com>
Thu, 27 Jul 2017 04:50:41 +0000 (05:50 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Thu, 27 Jul 2017 05:30:16 +0000 (06:30 +0100)
commitd27f75b8ac13a4056cc8ef09b56de9dd184a2ad1
tree07931654d7c2fb0f478322f3d46bd1edf056d7e9
parent007c7be9101ff6dee3ddc6d9a0be44d0b054eb1e
init: force fallocate_mode to none when fallocate is unsupported

Commit 2c3e17be ("filesetup: add native fallocate") broke fio on Windows
because fallocate_mode wound up being set to 0 on platforms without any
type of fallocate. Work around this by forcing fallocate_mode to
FIO_FALLOCATE_NONE on such platforms.

This should address the issue mention in the mail
http://www.spinics.net/lists/fio/msg06085.html ("The commit 'filesetup:
add native fallocate' breaks on Cygwin").

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
init.c