storage_backend: Fix issue with allocation of 0 length volume
storage_backend: Fix issue with allocation of 0 length volume

Commit id '532fef36' added a call to fallocate() and some error
handling based on whether or not the function existed. This new
call resulted in libvirt-cim/cimtest failures when attempting to
create a volume with "0" (zero) allocation value. The failure is
logged as:

Oct  9 07:51:33 localhost libvirtd[8030]: cannot allocate 0 bytes in
file '/var/lib/libvirt/images/cimtest-vol.img': Invalid argument

This can also be seen with virsh vol-create-as:

error: Failed to create vol test
error: cannot allocate 0 bytes in file '/home/vm-images/test': Invalid
argument

error: Failed to create vol test
error: cannot allocate 0 bytes in file '/home/vm-images/test': Invalid
argument

It turns out fallocate() will return EINVAL when the incoming 'len'
(or allocation) value is 0 (or less).

fabianfreyer/libvirt,nertpinx/libvirt,rlaager/libvirt,libvirt/libvirt,agx/libvirt,rlaager/libvirt,nertpinx/libvirt,rlaager/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,elmarco/libvirt,shugaoye/libvirt,taget/libvirt,jardasgit/libvirt,cbosdo/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt,VenkatDatta/libvirt,taget/libvirt,datto/libvirt,shugaoye/libvirt,eskultety/libvirt,olafhering/libvirt,jardasgit/libvirt,nertpinx/libvirt,cbosdo/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,elmarco/libvirt,elmarco/libvirt,zippy2/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,jfehlig/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,olafhering/libvirt,eskultety/libvirt,cbosdo/libvirt,elmarco/libvirt,zippy2/libvirt,agx/libvirt,nertpinx/libvirt,olafhering/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,rlaager/libvirt,jardasgit/libvirt,agx/libvirt,rlaager/libvirt,jfehlig/libvirt,datto/libvirt,taget/libvirt,taget/libvirt,libvirt/libvirt,crobinso/libvirt,libvirt/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,crobinso/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,eskultety/libvirt,datto/libvirt,elmarco/libvirt,zippy2/libvirt,andreabolognani/libvirt,jardasgit/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain,crobinso/libvirt,agx/libvirt,zippy2/libvirt,andreabolognani/libvirt,agx/libvirt,datto/libvirt,eskultety/libvirt,andreabolognani/libvirt,taget/libvirt,olafhering/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,libvirt/libvirt,VenkatDatta/libvirt,cbosdo/libvirt