Internal error: No more virtual file handles

Frédéric L. W. Meunier 0 at pervalidus.net
Sat Sep 14 04:04:50 UTC 2002


On Fri, 13 Sep 2002, Pavel Roskin wrote:

> > > I made a mistake with lndir(1) and it ended in an infinite
> > > loop creating subdirectories. I then tried to remove them.
> > > The subject says it all. After the error is displayed I press
> > > Enter and it hangs.
> >
> > I see it's in vfs.c. Can I just increase MAX_VFS_FILES ?
>
> You can try, of course.  It's currently 100, which should be
> more than enough.  I think that something is wrong with the
> logic if more complex trees require more filehandles.

I see it fails if there are too many subdirectories (>=101 ?)
and you try to remove them, what happened with my lndir(1). It
probably created ~10000 or more.

> Do you have a script to recreate that structure?  Can you
> describe in more details what you did?

No, but to reproduce I just did

mkdir -p a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/y/x/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/y/x/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/y/x/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/y/x/z/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/y/x/z

and tried to remove everything from a/.

rm -rf worked.

-- 
0 at pervalidus.{net, {dyndns.}org}




More information about the mc-devel mailing list