s3: smbd: Fix *allocate* calls to follow POSIX error return convention.
commit0ad2013d90bc923d8eeb4b5ed3010224fa2d1e86
authorJeremy Allison <jra@samba.org>
Fri, 5 Dec 2014 23:34:12 +0000 (5 15:34 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 18 Dec 2014 20:30:05 +0000 (18 21:30 +0100)
treeac87ab925813f5da4ceb1e1d227a521211255494
parent339bac87b3f83a7a5c0b0c4a8285604c300521ef
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>
(cherry picked from commit cc1f91cec627cb3e4fc89b96aae1e7e4c539cd1c)
source3/smbd/vfs.c