Date: Sat, 4 May 2002 21:44:46 +0200 (CEST) From: BOUWSMA Beery <freebsd-user@netscum.dyndns.dk> To: freebsd-stable@freebsd.org Cc: Attila Nagy <bra@fsn.hu> Subject: Re: nwfs + ftpd Message-ID: <200205041944.g44Jiki00425@beerswilling.netscum.dyndns.dk> References: <14021901502.20020423150106@fc.kiev.ua> <Pine.LNX.4.44.0204231547320.24266-100000@scribble.fsn.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205041944.g44Jiki00425>