s3: Test short reads in the build farm
[sfrench/samba-autobuild/.git] / source3 / modules / vfs_aio_fork.c
index 4468fe097f001098b9beaa2afe5a477b3a68a657..c725fa6b9061ea74ec882e67b208a3e6d81df362 100644 (file)
@@ -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(