s3/smb2_read: Better fallback for incorrectly configured sendfile setups
authorAnoop C S <anoopcs@redhat.com>
Tue, 10 Jan 2017 13:30:30 +0000 (13:30 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 10 Jan 2017 23:49:22 +0000 (00:49 +0100)
commit3a864fc952edaa96d2ee20254a3e9c90d29fe28c
tree251dcbf93f7cb4ed13d44868bc39da643f5a9582
parente84e44ce923e5dc7529bb813e10a2890528a4ab0
s3/smb2_read: Better fallback for incorrectly configured sendfile setups

When "use sendfile" is enabled but not supported by the underlying VFS
module then fallback to normal copy and print out a warning for the
admin.

Pair-Programmed-With: Guenther Deschner <gd@samba.org>
Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_read.c