![]() | |||||||||||||
Messages in this thread Patch in this message |
Jan Kasprzak <kas@informatics.muni.cz> writes: > > The image (FC2-i386-DVD.iso) has 4370640896 bytes. The FTP server is native > x86_64 binary, not a 32-bit one. sys_sendfile limits itself dumbly to 2GB even on 64bit architectures. This patch should fix it on x86-64, although other 64bit ports may need a similar patch. Just removing the limit in read_write is not easy, because it would need fixes in all the 32bit emulation layers. -Andi diff -u linux-2.6.6-amd64/include/asm-x86_64/unistd.h-o linux-2.6.6-amd64/include/asm-x86_64/unistd.h --- linux-2.6.6-amd64/include/asm-x86_64/unistd.h-o 2004-05-09 14:30:09.000000000 +0200 +++ linux-2.6.6-amd64/include/asm-x86_64/unistd.h 2004-05-19 11:27:00.000000000 +0200 @@ -98,7 +98,7 @@ __SYSCALL(__NR_getpid, sys_getpid) #define __NR_sendfile 40 -__SYSCALL(__NR_sendfile, sys_sendfile) +__SYSCALL(__NR_sendfile, sys_sendfile64) #define __NR_socket 41 __SYSCALL(__NR_socket, sys_socket) #define __NR_connect 42 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 14:03 [from the cache] ©2003-2008 | |||||||||||||