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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 8 Dec 2014 09:16:13 +0000 (10:16 +0100)
commit1a128c4b44aa33760803d2326eca5dcd5a48cb8a
tree2873f759b31d1341aa5c5e0d8dd31914ecce6940
parent5b5546b28a401d7cc77402455b62ea5f69753499
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