filesetup: add fallocate=truncate option.
authorTrip Volpe <trip@qumulo.com>
Thu, 7 Nov 2019 23:13:48 +0000 (15:13 -0800)
committerTrip Volpe <trip@qumulo.com>
Tue, 12 Nov 2019 17:57:42 +0000 (09:57 -0800)
commit38ca5f03add887d9b7fa371fecd535c624a3031a
treed7a4268743d91db00e9b3de9e824ea09ed202cb8
parentd5c4f97458d59689c3d1a13831519617d000fb19
filesetup: add fallocate=truncate option.

Fixes #833. Provides the ability to initially "layout" the file
by ftruncating it to the desired size before performing IO. This
is mainly useful on Windows, which serializes all writes that
extend the size of a file. Using this option with a suitable
iodepth allows fio to emulate the behavior of Windows Explorer
file copy, which always truncates to the expected size before
issuing writes for performance reasons.
HOWTO
file.h
filesetup.c
fio.1
init.c
options.c
os/os.h