Fix issue #23: use fallocate() to create fileio backstores
Fix issue #23: use fallocate() to create fileio backstores

Python 3.3 provides the fallocate() system call which is better for
allocating disk space than ftruncate(). ftruncate() sets the file size
to the requested size but does not reserve the blocks in the file
system. Unlike ftruncate(), fallocate() fails if there is not enough
free space.

Moreover, this patch improves error handling when the file cannot be
opened or when the requested size is too large to be converted to a
long int.

Signed-off-by: Christophe Vu-Brugier <1930e27f67e1e10d51770b88cb06d386f1aa46ae@yahoo.fr>

cloud4life/targetcli-fb,agrover/targetcli-fb,cvubrugier/targetcli-fb