possibly tmpfs bug

View: New views
3 Messages — Rating Filter:   Alert me  

possibly tmpfs bug

by Wojciech Puchar-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

repeatable

put something on tmpfs filesystem, then download it to other machine using
ftp (server is ftpd on first machine). no errors, download is fine, but
you get rubbish - simply data from wrong places in memory.

using rcp works. most probably ftpd uses sendfile, while rcp does not
_______________________________________________
freebsd-hackers@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@..."

possibly tmpfs bug - part 2

by Wojciech Puchar-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

works even over localhost

[wojtek@wojtek /tmp]$ cp /bin/sh .
[wojtek@wojtek /tmp]$ ftp localhost
Trying ::1...
Connected to localhost.
220 wojtek.tensor.gdynia.pl FTP server (Version 6.00LS) ready.
Name (localhost:wojtek):
331 Password required for wojtek.
Password:
230 User wojtek logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> get sh sh2
local: sh2 remote: sh
229 Entering Extended Passive Mode (|||59220|)
550 sh: No such file or directory.
ftp> cd /tmp
250 CWD command successful.
ftp> get sh sh2
local: sh2 remote: sh
229 Entering Extended Passive Mode (|||63477|)
150 Opening BINARY mode data connection for 'sh' (114688 bytes).
100% |***********************************************************|   112
KB   56.87 MB/s    00:00 ETA
226 Transfer complete.
114688 bytes received in 00:00 (51.91 MB/s)
ftp> ^D
221 Goodbye.
[wojtek@wojtek /tmp]$ cmp sh sh2
sh sh2 differ: char 1, line 1

_______________________________________________
freebsd-hackers@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@..."

Re: possibly tmpfs bug

by Mikolaj Golub-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Fri, 3 Jul 2009 16:07:56 +0200 (CEST) Wojciech Puchar wrote:

 WP> repeatable

 WP> put something on tmpfs filesystem, then download it to other machine
 WP> using ftp (server is ftpd on first machine). no errors, download is
 WP> fine, but you get rubbish - simply data from wrong places in memory.

 WP> using rcp works. most probably ftpd uses sendfile, while rcp does not

Yes, this is sendfile problem. It has been reported.

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/127213

--
Mikolaj Golub
_______________________________________________
freebsd-hackers@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@..."