Re: khttpd and tmpfs don't get along?

Dan Kegel
2002-05-22T19:16:19Z

Christoph Hellwig wrote:
>
> On Tue, May 21, 2002 at 06:40:02PM -0700, Dan Kegel wrote:
> > I've found that khttpd tends to oops when used with tmpfs.
> > The oops tracebacks are not especially informative.
> > So far, I've only verified this with ppc, but I should be
> > able to verify it with x86 soon.
>
> That's because it abuses do_generic_file_read. It' the same design mistake
> that also makes loop fail on tmpfs - do_generic_file_read should never have
> been exported from filemap.c..

I see. Guess I should finally test that tmpfs/loop patch, eh? :-)

I just now crashed Red Hat 7.3 on x86 SMP by compiling in khttpd
and serving files out of a tmpfs. It crashed with or without my
earlier patch (http://www.kegel.com/linux/khttpd/khttpd-unbork.patch)
that fixes khttpd crashes with other filesystems.
Guess it wasn't a bug in linuxppc_2_4_devel after all.

I am now switching to ramfs instead of tmpfs to hold my documentroot,
and that should be the end of my khttpd problems.
(There is no disk on the embedded ppc system I'm using, so I have
to use one ram filesystem or another.)
- Dan