git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f34ffa
)
s3: Test short reads in the build farm
author
Volker Lendecke
<vl@samba.org>
Mon, 14 Sep 2009 01:21:30 +0000
(
03:21
+0200)
committer
Volker Lendecke
<vl@samba.org>
Mon, 14 Sep 2009 05:13:22 +0000
(07:13 +0200)
source3/modules/vfs_aio_fork.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_aio_fork.c
b/source3/modules/vfs_aio_fork.c
index 4468fe097f001098b9beaa2afe5a477b3a68a657..c725fa6b9061ea74ec882e67b208a3e6d81df362 100644
(file)
--- 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(