bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mv fails with "Too many open files" when moving _many_ files


From: Paul Eggert
Subject: Re: mv fails with "Too many open files" when moving _many_ files
Date: Sun, 17 Oct 2004 22:21:18 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

address@hidden (Bob Proulx) writes:

> I am unable to reproduce the problem locally.

I think your attempt didn't capture all the relevant parts of the bug.

Here's how I reproduced it, both with coreutils 5.2.1 and with CVS
coreutils.  On my host, /tmp and /home are different file systems;
this is a crucial part of the bug.

   ulimit -n 1024
   cd /home/eggert/junk
   mkdir foo /tmp/foo
   cd foo
   for f in $(seq 1 1500); do mkdir $f; touch $f/f; done
   mv * /tmp/foo

The output is:

mv: cannot create regular file `/tmp/foo/566/f': Too many open files
mv: cannot create regular file `/tmp/foo/567/f': Too many open files
mv: cannot create regular file `/tmp/foo/568/f': Too many open files
...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]