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

2004-10-21 Thread Jim Meyering
My patch of Monday (2004-10-18) was wrong. Here's a fix that introduces fewer bugs. I've added a test for the cross-partition mv failure and another that makes rm fail with Monday's patch. 2004-10-21 Jim Meyering <[EMAIL PROTECTED]> * tests/mv/leak-fd: New file. * tests/mv/Make

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

2004-10-18 Thread Jim Meyering
Cyril Bouthors <[EMAIL PROTECTED]> wrote: ... > Please also note that mv does not fail when "too many open files" > messages occur, it just keep on warning for each file (~9000 warnings > in the initial example) and does not move anything. True. Neither mv nor rm exit immediately when they encoun

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

2004-10-18 Thread Cyril Bouthors
On 18 Oct 2004, [EMAIL PROTECTED] wrote: > Thanks a lot for that report. You are welcome. > It is indeed a bug. Thanks for the fix. Please also note that mv does not fail when "too many open files" messages occur, it just keep on warning for each file (~9000 warnings in the initial example) an

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

2004-10-18 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: > 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 >

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

2004-10-18 Thread Jim Meyering
Cyril Bouthors <[EMAIL PROTECTED]> wrote: > I'm having problems when moving everything from a directory that > contains 10852 top level directories and a total of ~30+ files and > subdirectories with this command: Thanks a lot for that report. It is indeed a bug. Here's the fix: Plug

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

2004-10-17 Thread Bob Proulx
Paul Eggert wrote: > [EMAIL PROTECTED] (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. You have sharp eyes! > Here's how I reproduced it Very good! Bob __

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

2004-10-17 Thread Paul Eggert
[EMAIL PROTECTED] (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

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

2004-10-17 Thread Bob Proulx
Cyril Bouthors wrote: > I'm having problems when moving everything from a directory that > contains 10852 top level directories and a total of ~30+ files and > subdirectories with this command: > > # mv * ../../../webalizer-clients/ > > It fails with: > > mv: cannot create regular file > `.

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

2004-10-17 Thread Cyril Bouthors
Hi, I'm having problems when moving everything from a directory that contains 10852 top level directories and a total of ~30+ files and subdirectories with this command: # mv * ../../../webalizer-clients/ It fails with: mv: cannot create regular file `../../../webalizer-clients/bouthors/us