diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-14 13:24:07 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-14 13:24:07 -0700 |
commit | 5464ce6df678a6ce3022f4a30fd9553996cefb69 (patch) | |
tree | 86982aa8eda44b0de296f46171fdebb9a4be8597 /source3/modules/vfs_aio_fork.c | |
parent | 72fcc6344f1ddfece4dd41790fc1add9c6d2c0f7 (diff) | |
parent | 3dd404abad878fa7e760ba50ce84fc80b82ea159 (diff) | |
download | samba-5464ce6df678a6ce3022f4a30fd9553996cefb69.tar.gz samba-5464ce6df678a6ce3022f4a30fd9553996cefb69.tar.bz2 samba-5464ce6df678a6ce3022f4a30fd9553996cefb69.zip |
Merge branch 'master' of /home/tridge/samba/git/combined
Diffstat (limited to 'source3/modules/vfs_aio_fork.c')
-rw-r--r-- | source3/modules/vfs_aio_fork.c | 3 |
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( |