From owner-freebsd-stable Sat May 4 12:45:11 2002 Delivered-To: freebsd-stable@freebsd.org Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NetScum.dyndns.dk (dclient217-162-169-6.hispeed.ch [217.162.169.6]) by hub.freebsd.org (Postfix) with ESMTP id EE07F37B404 for ; Sat, 4 May 2002 12:45:01 -0700 (PDT) Received: from beerswilling.netscum.dyndns.dk (dcf77-zeit.netscum.dyndns.dk [172.27.72.27] (may be forged)) by dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NetScum.dyndns.dk (8.11.6/8.11.6) with ESMTP id g44Jikh00426 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified FAIL); Sat, 4 May 2002 21:44:51 +0200 (CEST) (envelope-from bounce@dcf77-zeit.netscum.dyndns.dk) Received: (from root@localhost) by beerswilling.netscum.dyndns.dk (8.11.6/8.11.6) id g44Jiki00425; Sat, 4 May 2002 21:44:46 +0200 (CEST) (envelope-from bounce@dcf77-zeit.netscum.dyndns.dk) Date: Sat, 4 May 2002 21:44:46 +0200 (CEST) Message-Id: <200205041944.g44Jiki00425@beerswilling.netscum.dyndns.dk> From: BOUWSMA Beery Cc: Attila Nagy To: freebsd-stable@freebsd.org Subject: Re: nwfs + ftpd References: <14021901502.20020423150106@fc.kiev.ua> Organization: Men not wearing any pants that dont shave X-Hacked: via telnet to your port 25, what else? X-Internet-Access-Provided-By: faster Cabal Modem for a change! X-NetScum: Yes X-One-And-Only-Real-True-Fluffy: No Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG A little while back, you wrote... > > When I "get" file, I get a memory dump, not > > the real content of the file, though the > > length is the same ;) and I got difficulties > I think this is the same issue with NULLFS and UNIONFS. (the first is > corrected) > See my previous mails on this topic. You mean messages from around Mar 2001, probably? This sounds very much like what I just discovered a week or so ago, and was all ready to report to this list, full of details and all... > I think your problem can easily be solved: http://cvsweb.freebsd.org/ > Take a look at ftpd.c where the mmap->sendfile change has been occured and > switch back to the mmap method. The thing I noticed was that my multi-unionfs-mounted collection was delivering corrupted files not only with ftp, but also with httpd (apache). I was delivering mp3 files and playing them on the fly, and sometimes I could partially play the mp3 files streamed via httpd, but with plenty o' problems. If I understand you right, this had been a problem with nullfs-mounted filesystems, but is no longer, while it is still a unionfs-mounted-fs problem, as I've observed. I haven't checked though... Since both ftpd and httpd deliver incorrect data, if I wanted to keep delivering unionfs-concatenated collections, it sounds like I'd need to patch apache as well or override the `configure' detection of sendfile, or use a different httpd... I'll probably take the easy way out, and simply create a collection by some other means than unionfs, rather than rebuild ftpd/httpd, though I may play a bit to see if -current has this problem, and ponder how it gets to be a problem with unionfs and sendfile, not that I stand any chance of fixing unionfs to work... (Well, the truth is, I patched ftpd as you described (from rev 1.72 back to 1.71) which seems to work fine, plus I rebuilt Apache while specifying --with-sendfile=no, which also seems to work great... At least, until the unionfs sendfile() access is fixed to work...) thanks, barry bouwsma To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message