Linux за българи: Форуми

Linux секция за напреднали => Хардуерни и софтуерни проблеми => Темата е започната от: Uvigii в Apr 21, 2006, 14:06



Титла: Proftp
Публикувано от: Uvigii в Apr 21, 2006, 14:06
Здравейте,
проблемът се състои в това, че при сваляне размерът (и съдържанието) на файловете се променя. Някакви идеи от къде може да идва проблема ?
Дистрибуцията е  Дебиан 3.1
Ядрото е 2.6.14.3

Какво съм констатирал до момента:
* Проблемът съществува при всички тествани версии на ПроФТПд (1.2.10 и 1.3.0) както компилирани от мен така и бинарни т.е. проблемът не е тук.
* Проблемът според мен е свързан с Дебиан-а (който почти не познавам) тъй като с това ядро и други дистрибуции всичко работи нормално.

примерна сесия
Примерен код
Connected to localhost.
220 ProFTPD 1.3.0 Server (Test)
Name (localhost:u): u
331 Password required for u.
Password:
230 User u logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
-rw-r--r--   1 root     root       164468 Apr 21 09:02 tar
226 Transfer complete.
ftp> binary
200 Type set to I
ftp> get tar tar2
local: tar2 remote: tar
200 PORT command successful
150 Opening BINARY mode data connection for tar (164468 bytes)
226 Transfer complete.
1072496 bytes received in 0.01 secs (118385.8 kB/s)


xferlog
Примерен код
Fri Apr 21 09:04:45 2006 0 localhost 164468 /home/u/tar b _ o r u ftp 1 * c


и последното което най-много ме притеснява е :
Примерен код
transmit_sendfile() error, reverting to normal data transmission: [75] Value too large for defined data type


Благодаря предварително за всички отговори .


Титла: Proftp
Публикувано от: Uvigii в May 06, 2006, 15:00
Цитат
3. sendfile()

sendfile() is a system call which streamlines the copying of data between the disk and the tcp socket. The call copied from the page cache directly rather than requiring a kernel -> user space -> kernel space copy for every read() and write() call. Generally the advantages are only felt on heavily loaded servers. The call is supported in ProFTPD for Linux and FreeBSD.

    There appear to be a number of problems with sendfile() particularly with the directives and features which require accurate determination of filesize. Such as the Rate* functions and downloading large files, the best advice at the moment appears to be to disable sendfile by default ( --disable-sendfile ).

   Sendfile() also appears to be the source of a number of file corruption problems.