Date: Thu, 27 Dec 2001 04:48:57 -0800 (PST) From: <sheldonh@FreeBSD.org> To: dgl@visi.com, sheldonh@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/31692: 2872-or-less-byte ftp binary transfer from smbfs share produces garbage Message-ID: <200112271248.fBRCmvi14792@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: 2872-or-less-byte ftp binary transfer from smbfs share produces garbage
State-Changed-From-To: open->feedback
State-Changed-By: sheldonh
State-Changed-When: Thu Dec 27 04:45:13 PST 2001
State-Changed-Why:
First, try a recent RELENG_4 and confirm that the problem persists.
Then, my guess would be sendfile() ickiness. We can prove this by
forcing the use of the old method instead of sendfile().
In ftpd.c, in send_data(), find the first occurrence of
if (isreg) {
and insert
goto oldway;
immediately before it. This will skip the sendfile() method. If that
solves the problem, we know it's odd sendfile() interaction with
smbfs (or possibly all remote filesystem types). If so, it'd
be interesting to see whether the same behaviour is observed with
NFS instead of smbfs.
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31692
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112271248.fBRCmvi14792>
