From: Volker Lendecke Date: Mon, 14 Sep 2009 01:21:30 +0000 (+0200) Subject: s3: Test short reads in the build farm X-Git-Tag: talloc-2.0.1~519^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f65d335023a4f8a2874c45029c16430e4a4d8be;p=thirdparty%2Fsamba.git s3: Test short reads in the build farm --- diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 4468fe097f0..c725fa6b906 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -343,6 +343,9 @@ static void aio_child_loop(int sockfd, struct mmap_area *map) ret_struct.size = sys_pread( fd, (void *)map->ptr, cmd_struct.n, cmd_struct.offset); +#ifdef ENABLE_BUILD_FARM_HACKS + ret_struct.size = MAX(1, ret_struct.size * 0.9); +#endif } else { ret_struct.size = sys_pwrite(