s3: smbd: Fix *allocate* calls to follow POSIX error return convention.
authorJeremy Allison <jra@samba.org>
Fri, 5 Dec 2014 23:34:12 +0000 (15:34 -0800)
committerJeremy Allison <jra@samba.org>
Sun, 7 Dec 2014 23:33:06 +0000 (00:33 +0100)
commitcc1f91cec627cb3e4fc89b96aae1e7e4c539cd1c
tree78e4f38db55a0c275e6cd9980cfa361062619215
parentc9235deee0fc49c99cfaf2329b7af526d9dd12d0
s3: smbd: Fix *allocate* calls to follow POSIX error return convention.

Fix vfs_allocate_file_space(), vfs_slow_fallocate(),
vfs_fill_sparse() to follow the -1,errno convention
for errors.

Standardize on the -1,errno convention.

Reported by Jones <jones.kstw@gmail.com> who provided the
initial patch. This patch tested and confirmed working
by him as well.

https://bugzilla.samba.org/show_bug.cgi?id=10982

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
source3/smbd/vfs.c