summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_aio_fork.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-09-14 03:21:30 +0200
committerVolker Lendecke <vl@samba.org>2009-09-14 07:13:22 +0200
commit0f65d335023a4f8a2874c45029c16430e4a4d8be (patch)
tree4a3b5e80c1d215266f8fdcb4f54bb386081bb8ec /source3/modules/vfs_aio_fork.c
parent1f34ffa0caae5e3a3ca843491987646afad35686 (diff)
downloadsamba-0f65d335023a4f8a2874c45029c16430e4a4d8be.tar.gz
samba-0f65d335023a4f8a2874c45029c16430e4a4d8be.tar.bz2
samba-0f65d335023a4f8a2874c45029c16430e4a4d8be.zip
s3: Test short reads in the build farm
Diffstat (limited to 'source3/modules/vfs_aio_fork.c')
-rw-r--r--source3/modules/vfs_aio_fork.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c
index 4468fe097f..c725fa6b90 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(